mirror of https://github.com/xwiki-labs/cryptpad
remove focus from Access modal elements
(when overlay is applied)
This commit is contained in:
parent
189a673da7
commit
0365fdf31d
|
@ -367,6 +367,13 @@ define([
|
|||
UI.log(Messages.saved);
|
||||
});
|
||||
});
|
||||
$(addBtn).on('keydown', function () {
|
||||
if (event.keyCode === 13) {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
$(addBtn).click();
|
||||
}
|
||||
});
|
||||
|
||||
var called = false;
|
||||
redrawAll = function (reload) {
|
||||
|
@ -459,6 +466,8 @@ define([
|
|||
|
||||
var setLock = function (locked) {
|
||||
$(link).find('.cp-overlay').toggle(locked);
|
||||
$(link).find('.cp-usergrid-user').attr('tabindex', locked ? -1 : 0);
|
||||
$(link).find('.cp-access-add').attr('tabindex', locked ? -1 : 0);
|
||||
};
|
||||
|
||||
// Remove owner column
|
||||
|
@ -714,6 +723,13 @@ define([
|
|||
UI.log(Messages.saved);
|
||||
});
|
||||
});
|
||||
$(addBtn).on('keydown', function () {
|
||||
if (event.keyCode === 13) {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
$(addBtn).click();
|
||||
}
|
||||
});
|
||||
|
||||
var called = false;
|
||||
redrawAll = function (reload) {
|
||||
|
@ -1025,6 +1041,13 @@ define([
|
|||
});
|
||||
});
|
||||
});
|
||||
$(passwordOk).on('keydown', function (e) {
|
||||
if (e.keyCode === 13) {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
$(passwordOk).click();
|
||||
}
|
||||
});
|
||||
$d.append(changePass);
|
||||
}
|
||||
if (owned) {
|
||||
|
|
Loading…
Reference in New Issue