mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-23 22:40:24 +02:00
apply the save shortcut only for the top open modal
This commit is contained in:
1 parent
aa7be1edd1
commit
f58a65e4be
12 files changed
+38
-16
No files matched your search
@@ -259,3 +259,11 @@ function findLargestZIndexModal(excludeEl) {
|
||||
|
||||
return largest;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the current top-most open modal element.
|
||||
* @return {Element|undefined}
|
||||
*/
|
||||
window.app.modals.getTop = function() {
|
||||
return findLargestZIndexModal();
|
||||
};
|
||||
Reference in new issue
Block a user