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 8: Line 8:
     // patrol link click handler
     // patrol link click handler
     $patrolAllLink.click(function() {
     $patrolAllLink.click(function() {
      var $this = $(this);
       // replace text with spinner
       // replace text with spinner
       mw.loader.using('jquery.spinner').then(function() {
       mw.loader.using('jquery.spinner').then(function() {
         var $spinner = $.createSpinner({ size :'small', type: 'inline' });
         var $spinner = $.createSpinner({ size :'small', type: 'inline' });
         $(this).hide().after($spinner);
         $this.hide().after($spinner);
       });
       });


Line 27: Line 28:
         rvstartid: newid,
         rvstartid: newid,
         rvendid: oldid,
         rvendid: oldid,
        rvlimit: 'max',
         titles: title
         titles: title
       } ).done( function ( data ) {
       } ).done( function ( data ) {