Difference between revisions 457192 and 503550 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) $tarea = $('<textarea>', { id: $input.attr('id'), style: 'height:10em; width:98%; display:none;' }); $el.unbind(); $el.fadeOut(); $input.parent().prepend( $tarea .data('v', $input.data('v')).data('parserResultNode', $input.data('parserResultNode')) .val($input.val()).keyup(_parseReason). bindon('keyup input', _validateInput)); $tarea.slideDown(); $input.remove(); }; var _parseReason = function(event) { var $el = $(this), parsertimeout = $el.data('parsertimeout'), (contracted; show full) if ('number' === typeof v.byteLimit) { mw.loader.using('jquery.byteLimit', function() { curQuestion.byteLimit(v.byteLimit); }); } curQuestion.data('v', v); curQuestion. bindon('keyup input', _validateInput); // 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'); }); (contracted; show full) }); } else { AQD.install(); } }(jQuery, mediaWiki)); // </nowiki> All content in the above text box is licensed under the Creative Commons Attribution-ShareAlike license Version 4 and was originally sourced from https://gu.wikipedia.org/w/index.php?diff=prev&oldid=503550.
![]() ![]() This site is not affiliated with or endorsed in any way by the Wikimedia Foundation or any of its affiliates. In fact, we fucking despise them.
|