Difference between revisions 213087 and 383129 on guwiki

// Original code written by [[User:Ilmari Karonen]]
// Rewritten & extended by [[User:DieBuche]]. Botdetection and encoding fixer by [[User:Lupo]]
// Validation and further development [[User:Rillke]], 2011-2012
//
// Ajax-based replacement for [[MediaWiki:Quick-delete-code.js]]
//
// TODO: Fix problems with moves of videos
// TODO: Delete talk
(contracted; show full)         
         // SECURITY: prefill could contain evil jsCode. Never use it unescaped!
         // Use .val() or { value: prefill } or '<input value="' + mw.html.escape() + '" ...>
         curQuestion.val(v.prefill);
         if (v.type === 'checkbox') curQuestion.attr('checked', v.prefill).attr('style', 'margin-left: 5px');
      });
      
      if (mw.user.
anonymousisAnon()) {
         AQD.renderNode($('<div>', { id: 'ajaxDeleteAnonwarning' }), 'MediaWiki:Anoneditwarning').appendTo($AjaxDeleteContainer);
      }

      var $dialog = $('<div></div>').append($AjaxDeleteContainer).dialog({
         width: (width || 600),
         modal: true,
         title: title,
(contracted; show full)   });
} else {
   AQD.install();
}


}(jQuery, mediaWiki));
// </nowiki>