17,233
edits
(Created page) |
(addPortletLink -> mw.util.addPortletLink) |
||
Line 10: | Line 10: | ||
sidebarSwitch.parentNode.removeChild(sidebarSwitch); | sidebarSwitch.parentNode.removeChild(sidebarSwitch); | ||
} | } | ||
sidebarSwitch = addPortletLink("p-cactions", "javascript:sidebarShow()", "Show Sidebar", "ca-sidebar", "Show the navigation links", "a"); | sidebarSwitch = mw.util.addPortletLink("p-cactions", "javascript:sidebarShow()", "Show Sidebar", "ca-sidebar", "Show the navigation links", "a"); | ||
} | } | ||
Line 22: | Line 22: | ||
sidebarSwitch.parentNode.removeChild(sidebarSwitch); | sidebarSwitch.parentNode.removeChild(sidebarSwitch); | ||
} | } | ||
sidebarSwitch = addPortletLink("p-cactions", "javascript:sidebarHide()", "Hide Sidebar", "ca-sidebar", "Hide the navigation links", "a"); | sidebarSwitch = mw.util.addPortletLink("p-cactions", "javascript:sidebarHide()", "Hide Sidebar", "ca-sidebar", "Hide the navigation links", "a"); | ||
} | } | ||