User:The Transhumanist/QuickPortal.js: Difference between revisions

Content deleted Content added
add incompatibility alert
improve hover note
Line 19:
 
The "Restart portal" menu item appears when a portal base page is displayed.
Clicking on that puts the portal in edit mode. Clicking it again (Developmentor note:when Clickinga
on that when a portal is already in edit mode) will replace the portal's content with
the new portal design, same as the feature that creates a new portal above.)
 
Line 79:
if ((document.title.indexOf("/") == -1) && (document.title.indexOf("Search results") == -1)) {
//Create linked menu item on side bar menu (in toolbox section)
var menuItem1 = mw.util.addPortletLink( 'p-tb', '#', 'Restart portal', 'tb-restartportal', 'ReplaceApply withthis Basictwice to restart portal startfrom pagescratch');
// Bind click handler
$( menuItem1 ).click( function ( event ) {