User:Technical 13/SandBox/Gadget-BugStatusUpdate.js: Difference between revisions

Content deleted Content added
Technical 13 (talk | contribs)
m Trying to fix backwards compatibility.
Technical 13 (talk | contribs)
Not sure why this suddenly quit working.
Line 50:
for(var b in data.result.bugs) {
//find the right bug to update
var $item = $('.mw-trackedTemplate')
.find('a[title^="bugzilla:'+data.result.bugs[b].id+'"]');
var title = $('.trakbug-'+data.result.bugs[b].id);
 
if(title) {
title.text( data.result.bugs[b].summary );
}
}
// COMPATIBILITY SECTION TOP FOR CURRENT SETUP
var titleBACK = $('#trakbug-'+data.result.bugs[b].id);
if(titleBACK) {
titleBACK.text( data.result.bugs[b].summary );
}
// COMPATIBILITY SECTION BOTTOM FOR CURRENT SETUP
 
if($item) {
//find child, if exists