add confirmation to ~shorten URL~ in DMs to tmobile

This commit is contained in:
Simon Grim 2016-03-30 04:34:47 +05:00
parent 4f38edc466
commit d63918dac6

View File

@ -2484,7 +2484,10 @@ $(document).ready(function () {
cbConfirm: openRequestShortURIForm,
cbConfirmReq: event
});
else
else if ($.mobile && postAreaNew.closest('.dm-form').length) {
if (confirm(polyglot.t('shorten_URI_its_public_is_it_ok')))
openRequestShortURIForm(event);
} else
openRequestShortURIForm(event);
}
)