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

Content deleted Content added
Technical 13 (talk | contribs)
 
Technical 13 (talk | contribs)
Added my name to the description at the top and added first fix... Multiple uses for the same bug on a page.
Line 1:
/*
* Bug Status Update Gadget
* Author: RobDonald MoenFortier (robmUser:Technical_13)
* Based on original code:
** Author: Rob Moen (robm)
** Source: [[mw:User:Robmoen/bugStatusUpdate.js]]
* Description:
* Finds and updates bug status templates on a page.
* Makes 1 JSONP request to Bugzilla JSON RPC api.
* Source: [[mw:User:Robmoen/bugStatusUpdate.js]]
*/
Line 50 ⟶ 52:
$item = $('.mw-trackedTemplate')
.find('a[title^="bugzilla:'+data.result.bugs[b].id+'"]');
title = $('#.trakbug-'+data.result.bugs[b].id)
 
if(title) {