User:MusikAnimal/customWatchlists.js: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 42:
var matches = $.grep(data.query.watchlist, function(el){
var mwName = new mw.Title(el.title);
return pages.indexOf(mwName.getNamespacePrefix()+mwName.getNamegetMainText()) >= 0;
});
for(var i=0; i<matches.length; i++) {
Line 52:
var showCustomWatchlistsForm = function(appendHtml) {
var html = "<form id='custom_watchlist_form'><fieldset style='margin:20px 0px'>" +
"<legend>Custom watchlists</legend>" + appendHtml;
$("#mw-watchlist-form").after(html);
Line 73:
"<span class='closer-x' onclick=\"$('#cw-overlay').remove();\"></span>" +
"</div>" +
"<div style='padding:14px' id='cw-overlay-body'>";
for(var i=0; i < customWatchlistNames.length; i++) {