User:Cuckooman4/statustabs.js: Difference between revisions

Content deleted Content added
m Maintenance: Replacing legacy global variable (phab:T72470)
m Maintenance: Replacing addPortletLink() with mw.util.addPortletLink() (mw:ResourceLoader/Migration_guide_(users)#addPortletLink)
 
Line 13:
var i = 0
while(i < statustabs.length) {
mw.util.addPortletLink('p-cactions', mw.config.get('wgServer') + mw.config.get('wgScript') + "?title=User:" + wgUserName + "/" + statuspageurl + "&action=edit&autostatus=" + encodeURIComponent(statustabs[i]), statustabs[i], 'ca-status' + i)
i++
}