whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject [whimsy] 01/02: reenable form on exit of page
Date Mon, 03 Oct 2016 13:02:43 GMT
This is an automated email from the ASF dual-hosted git repository.

rubys pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/whimsy.git

commit b2ac5ac726bea9f61a8b998ff4154b841835f5b0
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Mon Oct 3 09:02:07 2016 -0400

    reenable form on exit of page
---
 www/secmail/public/tasklist.js | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/www/secmail/public/tasklist.js b/www/secmail/public/tasklist.js
index de8a8f2..9ee9d8e 100644
--- a/www/secmail/public/tasklist.js
+++ b/www/secmail/public/tasklist.js
@@ -136,3 +136,8 @@ $(document).on('keypress', function(event) {
   }
 });
 
+// reenable form on exit of page
+window.addEventListener('unload', function(){
+  message = {status: 'exit'};
+  window.parent.frames[0].postMessage(message, '*');
+});

-- 
To stop receiving notification emails like this one, please contact
"commits@whimsical.apache.org" <commits@whimsical.apache.org>.

Mime
View raw message