User:Cuckooman4/statustabs.js: Difference between revisions

Content deleted Content added
Cuckooman4 (talk | contribs)
Oops
m Maintenance: Replacing addPortletLink() with mw.util.addPortletLink() (mw:ResourceLoader/Migration_guide_(users)#addPortletLink)
 
(2 intermediate revisions by 2 users not shown)
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++
}