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]);
}
Cryptpad.confirm(msg, function (res) {
$(ifrw).focus();
if (!res) { return; }
andThen();
});
@@ -1935,6 +1936,7 @@ define([
}
Cryptpad.confirm(msg, function(res) {
$(ifrw).focus();
if (!res) { return; }
filesOp.deletePathsPermanently(paths);
refresh();