Keep the focus on the iframe window after canceling a deletion
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user