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

Content deleted Content added
Technical 13 (talk | contribs)
// COMPATIBILITY FOR CURRENT SETUP fix
Technical 13 (talk | contribs)
m Trying to fix backwards compatibility.
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 = .find$('a[title^="bugzilla:.trakbug-'+data.result.bugs[b].id+'"]');
title = $('.trakbug-'+data.result.bugs[b].id)
 
if(title) {
title.text( data.result.bugs[b].summary );
}
// COMPATIBILITY SECTION TOP FOR CURRENT SETUP
 
titlevar titleBACK = $('.#trakbug-'+data.result.bugs[b].id);
// COMPATIBILITY FOR CURRENT SETUP
titleBACK = $('#trakbug-'+data.result.bugs[b].id)// COMPATIBILITY FOR CURRENT SETUP
if(titleBACK) {
titleBACK.text( data.result.bugs[b].summary );
}
// COMPATIBILITY SECTION BOTTOM FOR CURRENT SETUP
 
}// COMPATIBILITY FOR CURRENT SETUP
if($item) {
//find child, if exists