پرش به محتوا

مدیاویکی:Gadget-decodesummary.js: تفاوت میان نسخه‌ها

از دانشنامه علوم انسانی
imported>Ebrahim
بدون خلاصۀ ویرایش
imported>Ebrahim
بدون خلاصۀ ویرایش
خط ۶: خط ۶:
that.val().replace(/%20/g, '‍‍‍')
that.val().replace(/%20/g, '‍‍‍')
).replace(/‍‍‍/g, '%20'));
).replace(/‍‍‍/g, '%20'));
        }, 100);
}, 100);
    });
});
}());
}());

نسخهٔ ۷ سپتامبر ۲۰۱۴، ساعت ۱۹:۳۶

$(function () {
	$('input#wpSummary, input#wpReason, input#mwProtect-reason').bind('paste', function (e) {
		var that = $(this);
		setTimeout(function () {
			that.val(decodeURI(
				that.val().replace(/%20/g, '‍‍‍')
			).replace(/‍‍‍/g, '%20'));
		}, 100);
	});
}());