مدیاویکی:Gadget-confirm-logout.js: تفاوت میان نسخهها
ظاهر
imported>Ebrahim آزمایشی |
imported>Ebrahim بدون خلاصۀ ویرایش |
||
| خط ۱: | خط ۱: | ||
// Maintainer: User:Ebrahim | // Maintainer: User:Ebrahim | ||
$.when($.ready, mw.loader.using('jquery.confirmable')).then(function () { | $.when($.ready, mw.loader.using('jquery.confirmable')).then(function () { | ||
$('#pt-mycontris a').confirmable({ confirm: ' | var link = $('#pt-mycontris a').clone(); | ||
$('#pt-mycontris a').replaceWith(link); | |||
link.confirmable({ i18n: { confirm: 'مطمئنید میخواهید خارج شوید؟' } }); | |||
}); | }); | ||