User:MusikAnimal/customWatchlists.js: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 80:
}
html += "<div id='cw-overlay-new-watchlist'>" +
debugger;
html "<input +class='cw-option' "<divtype='checkbox' value='-1' id='cw-overlay-new-watchlistoption' "+(data ? "" : "style='display:block'checked")+" /><label for='cw-new-option'>New watchlist</label>" +
"<input class='cw-option' type='checkbox' value='-1text' id='cw-overlay-new-optionwatchlist-input' /><labelplaceholder='Enter forwatchlist name' "+(data ? "" : "style='cw-new-optiondisplay:block'>New")+" watchlist</label>" +
"<input type='text' id='cw-overlay-new-watchlist-input' placeholder='Enter watchlist name' />" +
"</div><button id='cw-overlay-selector-submit'>Save changes</button></div></div>";
$("body").append(html);
if(!data) $("#cw-overlay-new-watchlist-input").focus();
$("#cw-new-option").change(function() {