Page Menu
Home
Musing Studio
Search
Configure Global Search
Log In
Files
F15046142
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
View Options
diff --git a/static/js/modals.js b/static/js/modals.js
index 0910d7e..912df8a 100644
--- a/static/js/modals.js
+++ b/static/js/modals.js
@@ -1,24 +1,24 @@
/*
* Copyright © 2016-2021 Musing Studio LLC.
*
* This file is part of WriteFreely.
*
* WriteFreely is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, included
* in the LICENSE file in this source code package.
*/
function showModal(id) {
document.getElementById('overlay').style.display = 'block';
document.getElementById('modal-'+id).style.display = 'block';
}
var closeModals = function(e) {
e.preventDefault();
document.getElementById('overlay').style.display = 'none';
var modals = document.querySelectorAll('.modal');
for (var i=0; i<modals.length; i++) {
modals[i].style.display = 'none';
}
};
-H.getEl('overlay').on('click', closeModals);
\ No newline at end of file
+document.getElementById('overlay').addEventListener("click", (e) => closeModals(e));
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Tue, Dec 1, 8:16 AM (1 d, 4 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3830919
Attached To
rWF WriteFreely
Event Timeline
Log In to Comment