User:Dross/common.js: Difference between revisions
Appearance
No edit summary |
question mark |
||
Line 4: | Line 4: | ||
}); | }); | ||
$('#n-createcompany').onclick = window.location("//icannwiki.org/index.php?title=" + prompt("Enter COMPANY page name") + "&action=edit&preload=User:Dross/Company"); | $('#n-createcompany').onclick = window.location.href("//icannwiki.org/index.php?title=" + prompt("Enter COMPANY page name") + "&action=edit&preload=User:Dross/Company"); | ||
$('#n-createtld').onclick = window.location("//icannwiki.org/index.php?title=" + prompt("Enter TLD page name", ".com") + "&action=edit&preload=User:Dross/TLD"); | $('#n-createtld').onclick = window.location.href("//icannwiki.org/index.php?title=" + prompt("Enter TLD page name", ".com") + "&action=edit&preload=User:Dross/TLD"); |
Revision as of 21:37, 6 October 2018
$(function() {
$('#p-navigation > div ul li:last-child').after('<li id="n-createcompany"><a href="#">Create company page</a></li>');
$('#p-navigation > div ul li:last-child').after('<li id="n-createtld"><a href="#">Create TLD page</a></li>');
});
$('#n-createcompany').onclick = window.location.href("//icannwiki.org/index.php?title=" + prompt("Enter COMPANY page name") + "&action=edit&preload=User:Dross/Company");
$('#n-createtld').onclick = window.location.href("//icannwiki.org/index.php?title=" + prompt("Enter TLD page name", ".com") + "&action=edit&preload=User:Dross/TLD");