You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by hu...@apache.org on 2019/08/04 09:15:35 UTC
svn commit: r1864370 - in /comdev/reporter.apache.org/trunk/site/wizard/js:
source/init.js wizard.js
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
******************************************/