مدیاویکی:Gadget-decodesummary.js: تفاوت میان نسخهها
ظاهر
imported>Ebrahim بدون خلاصۀ ویرایش |
imported>Ebrahim بدون خلاصۀ ویرایش |
||
| خط ۹: | خط ۹: | ||
}, 100); | }, 100); | ||
}); | }); | ||
} | }); | ||
نسخهٔ ۵ اکتبر ۲۰۱۴، ساعت ۲۲:۴۸
$(function () {
$('input#wpSummary, input#wpReason, input#mwProtect-reason').bind('paste', function (e) {
var that = $(this);
setTimeout(function () {
var decoded = decodeURI(that.val().replace(/%20/g, '')).replace(//g, '%20'); // three zwnj
if (decoded !== that.val()) {
that.val(decoded);
}
}, 100);
});
});