community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1864370 - in /comdev/reporter.apache.org/trunk/site/wizard/js: source/init.js wizard.js
Date Sun, 04 Aug 2019 09:15:35 GMT
Author: humbedooh
Date: Sun Aug  4 09:15:35 2019
New Revision: 1864370

URL: http://svn.apache.org/viewvc?rev=1864370&view=rev
Log:
add a hotkey for hiding modals (escape key)

Modified:
    comdev/reporter.apache.org/trunk/site/wizard/js/source/init.js
    comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js

Modified: comdev/reporter.apache.org/trunk/site/wizard/js/source/init.js
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/wizard/js/source/init.js?rev=1864370&r1=1864369&r2=1864370&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/wizard/js/source/init.js (original)
+++ comdev/reporter.apache.org/trunk/site/wizard/js/source/init.js Sun Aug  4 09:15:35 2019
@@ -41,4 +41,6 @@ if (project.length < 2) {
     window.setInterval(escrow_check, 250);
     
     GET("/getjson.py?only=%s&anon=true".format(project), prime_wizard, {});
-}
\ No newline at end of file
+}
+
+document.body.addEventListener('keydown', () => { if (event.keyCode == 27) $("#alert").modal('hide');
});

Modified: comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js?rev=1864370&r1=1864369&r2=1864370&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js (original)
+++ comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js Sun Aug  4 09:15:35 2019
@@ -1596,6 +1596,9 @@ if (project.length < 2) {
     GET("/getjson.py?only=%s&anon=true".format(project), prime_wizard, {});
 }
 
+document.body.addEventListener('keydown', () => { if (event.keyCode == 27) $("#alert").modal('hide');
});
+
+
 /******************************************
  Fetched from source/primer.js
 ******************************************/



Mime
View raw message