Keep the focus on the iframe window after canceling a deletion

This commit is contained in:
yflory
2017-03-07 14:24:06 +01:00
parent 3f7dea8f7e
commit 14938089ac

View File

@@ -660,6 +660,7 @@ define([
msg = Messages._getKey('fm_removeDialog', [name]); msg = Messages._getKey('fm_removeDialog', [name]);
} }
Cryptpad.confirm(msg, function (res) { Cryptpad.confirm(msg, function (res) {
$(ifrw).focus();
if (!res) { return; } if (!res) { return; }
andThen(); andThen();
}); });
@@ -1935,6 +1936,7 @@ define([
} }
Cryptpad.confirm(msg, function(res) { Cryptpad.confirm(msg, function(res) {
$(ifrw).focus();
if (!res) { return; } if (!res) { return; }
filesOp.deletePathsPermanently(paths); filesOp.deletePathsPermanently(paths);
refresh(); refresh();