js:wrap_issue

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_issue [2024/06/27 17:21] avillepreuxjs:wrap_issue [2025/01/10 16:49] (Version actuelle) avillepreux
Ligne 1: Ligne 1:
  
 <CSS> <CSS>
-.redmine-issue:before { content: ""; display: inline-block; background-image: url(https://redmine.cyanide-studio.com/favicon.ico); width: 16px; height: 16px; background-size: cover; vertical-align: middle; }+.redmine-issue:before, .redmine-issues li:before { content: ""; display: inline-block; background-image: url(https://redmine.cyanide-studio.com/favicon.ico); width: 16px; height: 16px; background-size: cover; vertical-align: middle; 
 +.redmine-issues ul { padding-inline: 0 } 
 +.redmine-issues li { list-style: none }
 </CSS> </CSS>
 +
 <JS> <JS>
  
 jQuery(() => { jQuery(() => {
  
-  jQuery(".plugin_wrap").each(function() {+  console.log("CYA BUG", "Parsing..."); 
 + 
 +  jQuery(".plugin_wrap.wrap_bug, .plugin_wrap.wrap_issue, .plugin_wrap.wrap_redmine").each(function() {
      
     var wrap = jQuery(this);     var wrap = jQuery(this);
     var id   = wrap.attr("id");     var id   = wrap.attr("id");
 +    
 +    console.log("CYA BUG", "Found ID", id);
          
     if (jQuery.isNumeric(id)) {     if (jQuery.isNumeric(id)) {
Ligne 24: Ligne 31:
  
    this.addClass("redmine-issue");    this.addClass("redmine-issue");
-          this.html(" " + id + " " + html);+          this.html(" " + id + " " + html); 
 +          console.log("CYA BUG", "Auto Redmine bug", id);
         }         }
       });       });
     }     }
   });   });
 +  
 +  console.log("CYA BUG", "Parsing...", "DONE");
 +  
 +  jQuery(".plugin_wrap.wrap_version_found_bugs").each(function() {
 +  
 +    var wrap    = jQuery(this);
 +    var version = wrap.attr("id");
 +    
 +    console.log("CYA ISSUES BY FOUND VERSION", "Found Version", version);
 +
 +      var url = "https://web.cyanide-studio.com/wikissue/?key=c85f4132505c0744ce4273e64b739f87&version_found=" + version + "&format=html";
 +      
 +      wrap.html("Please wait...");
 +
 +      jQuery.ajax({
 +
 +        url:        url,
 +        context:    wrap,
 +        async:      true,
 +        success:    function(html) {
 +
 +   this.addClass("redmine-issues");
 +          this.html("<p><strong>" + version + "</strong></p>" + html);
 +          console.log("CYA BUGS BY VERSION", "Auto Redmine bugs by found version", version);
 +        }
 +      });
 +
 +  });
 +  
 +  
 +  
 +  jQuery(".plugin_wrap.wrap_version_fixed_bugs").each(function() {
 +  
 +    var wrap    = jQuery(this);
 +    var version = wrap.attr("id");
 +    
 +    console.log("CYA ISSUES BY fixed VERSION", "fixed Version", version);
 +
 +      var url = "https://web.cyanide-studio.com/wikissue/?key=c85f4132505c0744ce4273e64b739f87&version_fixed=" + version + "&format=html";
 +      
 +      wrap.html("Please wait...");
 +
 +      jQuery.ajax({
 +
 +        url:        url,
 +        context:    wrap,
 +        async:      true,
 +        success:    function(html) {
 +
 +   this.addClass("redmine-issues");
 +          this.html("<p><strong>" + version + "</strong></p>" + html);
 +          console.log("CYA BUGS BY VERSION", "Auto Redmine bugs by fixed version", version);
 +        }
 +      });
 +
 +  });
 +  
 }); });
  
 </JS> </JS>
  
  • js/wrap_issue.1719501702.txt.gz
  • Dernière modification : 2024/06/27 17:21
  • de avillepreux