js:wrap_svnlog

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
js:wrap_svnlog [2024/07/05 11:09] avillepreuxjs:wrap_svnlog [2024/07/05 14:03] (Version actuelle) avillepreux
Ligne 7: Ligne 7:
 jQuery(() => { jQuery(() => {
  
-  jQuery(".plugin_wrap.svn, .plugin_wrap.svn-log").each(function() {+  jQuery(".plugin_wrap.wrap_svn, .plugin_wrap.wrap_svn-log").each(function() {
      
     var wrap = jQuery(this);     var wrap = jQuery(this);
Ligne 13: Ligne 13:
          
     var project = "xxx";     var project = "xxx";
-    if (wrap.hasClass("wrap_styx"))  project = "styx3"; +    var requested_project = "xxx"; 
-    if (wrap.hasClass("wrap_styx3")) project = "styx3"; +    if (wrap.hasClass("wrap_styx"))   { requested_project = "styx"; project = "styx3";  } 
-    if (wrap.hasClass("wrap_bb"))    project = "bb3"; +    if (wrap.hasClass("wrap_styx3"))  { requested_project = "styx3"; project = "styx3";  } 
-    if (wrap.hasClass("wrap_bb3"))   project = "bb3"; +    if (wrap.hasClass("wrap_bb"))     { requested_project = "bb"; project = "bb3";  } 
-    if (wrap.hasClass("wrap_tdf"))   project = "pcmarcade2012"; +    if (wrap.hasClass("wrap_bb3"))   { requested_project = "bb3"; project = "bb3";  } 
-    if (wrap.hasClass("wrap_pcm"))   project = "pcmarcade2012";+    if (wrap.hasClass("wrap_tdf"))   { requested_project = "tdf"; project = "pcmarcade2012";  } 
 +    if (wrap.hasClass("wrap_pcm"))   { requested_project = "pcm"; project = "pcmarcade2012"; 
 +    if (wrap.hasClass("wrap_drc"))    { requested_project = "drc"; project = "dracula";
 +    if (wrap.hasClass("wrap_dracula")) { requested_project = "dracula"; project = "dracula"; }
          
-    if (jQuery.isNumeric(id)) {+    if (jQuery.isNumeric(revision)) {
          
       var url = "https://web.cyanide-studio.com/svn/log/?project="+project+"&revision="+revision+"&embed=1&key=c85f4132505c0744ce4273e64b739f87";       var url = "https://web.cyanide-studio.com/svn/log/?project="+project+"&revision="+revision+"&embed=1&key=c85f4132505c0744ce4273e64b739f87";
  
-      jQuery.ajax({ +      jQuery.ajax({url: url, context: wrap, async: true, success: function(html) { 
- +         
-        url:        url, +   this.addClass("svn-log wrap_note"); 
-        context:    wrap, +   var src = (requested_project == project) ? project : (requested_project + "(" + project + ")"); 
-        async:      true, +          this.html(" <strong>"src + "@" + revision + "</strong><br>" + html);
-        success:    function(html) { +
- +
-   this.addClass("svn-log"); +
-          this.html(" <strong>"project + "/" + revision + "</strong><br>" + html);+
         }         }
       });       });
  • js/wrap_svnlog.1720170567.txt.gz
  • Dernière modification : 2024/07/05 11:09
  • de avillepreux