User:Locke/common.js: Difference between revisions

Want an adless experience? Log in or Create an account.
no edit summary
No edit summary
No edit summary
Line 4: Line 4:
   if ($diffMultiNotice.length > 0) {
   if ($diffMultiNotice.length > 0) {
     var $patrolAllLink = $('<a href="#">Mark all as patrolled</a>');
     var $patrolAllLink = $('<a href="#">Mark all as patrolled</a>');
     $diffMultiNotice.append('<br>').append($patrolAllLink);
     $diffMultiNotice.append('<br>[').append($patrolAllLink).append(']');


     // patrol link click handler
     // patrol link click handler
     $patrolAllLink.click(function() {
     $patrolAllLink.click(function(e) {
       var $this = $(this);
       var $this = $(this);
       // replace text with spinner
       // replace text with spinner