+
Name:
diff --git a/onionr/static-data/www/mail/mail.js b/onionr/static-data/www/mail/mail.js
index 24a74602..302c84f6 100755
--- a/onionr/static-data/www/mail/mail.js
+++ b/onionr/static-data/www/mail/mail.js
@@ -304,11 +304,6 @@ for (var i = 0; i < document.getElementsByClassName('refresh').length; i++){
document.getElementsByClassName('refresh')[i].style.float = 'right'
}
-for (var i = 0; i < document.getElementsByClassName('closeOverlay').length; i++){
- document.getElementsByClassName('closeOverlay')[i].onclick = function(e){
- document.getElementById(e.target.getAttribute('overlay')).style.visibility = 'hidden'
- }
-}
fetch('/friends/list', {
headers: {
diff --git a/onionr/static-data/www/shared/misc.js b/onionr/static-data/www/shared/misc.js
index bdde2f84..3c960c8f 100755
--- a/onionr/static-data/www/shared/misc.js
+++ b/onionr/static-data/www/shared/misc.js
@@ -87,3 +87,8 @@ for(var i = 0; i < refreshLinks.length; i++) {
}
}
+for (var i = 0; i < document.getElementsByClassName('closeOverlay').length; i++){
+ document.getElementsByClassName('closeOverlay')[i].onclick = function(e){
+ document.getElementById(e.target.getAttribute('overlay')).style.visibility = 'hidden'
+ }
+}
\ No newline at end of file