ACP allow ctrl-click to open new in new tab when settings are unsaved

This commit is contained in:
psychobunny
2017-05-29 15:34:09 -04:00
parent 292c04a613
commit 179b11b7d2

View File

@@ -395,6 +395,10 @@ $(document).ready(function () {
}
if (app.flags && app.flags.hasOwnProperty('_unsaved') && app.flags._unsaved === true) {
if (e.ctrlKey) {
return;
}
translator.translate('[[global:unsaved-changes]]', function (text) {
bootbox.confirm(text, function (navigate) {
if (navigate) {