mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-15 18:26:15 +01:00
ACP allow ctrl-click to open new in new tab when settings are unsaved
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user