You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by db...@apache.org on 2015/09/11 21:43:50 UTC

[11/12] docs commit: Adding keypress event handler for lira search box

Adding keypress event handler for lira search box


Project: http://git-wip-us.apache.org/repos/asf/cordova-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-docs/commit/fd7de49e
Tree: http://git-wip-us.apache.org/repos/asf/cordova-docs/tree/fd7de49e
Diff: http://git-wip-us.apache.org/repos/asf/cordova-docs/diff/fd7de49e

Branch: refs/heads/cordova-website
Commit: fd7de49ec1b8e6e4b29254e8762b13c7d2b7ddb4
Parents: 6d1fe4b
Author: cpsloal <cp...@yahoo.com>
Authored: Fri Sep 11 00:48:19 2015 -0700
Committer: Dmitry Blotsky <dm...@gmail.com>
Committed: Fri Sep 11 12:43:03 2015 -0700

----------------------------------------------------------------------
 www/static/js/index.js | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/fd7de49e/www/static/js/index.js
----------------------------------------------------------------------
diff --git a/www/static/js/index.js b/www/static/js/index.js
index 59bdfbe..1a2da92 100644
--- a/www/static/js/index.js
+++ b/www/static/js/index.js
@@ -137,4 +137,7 @@ $(document).ready(function () {
     });
 
     $("#jira-search-button").on("click", submitJiraSearchForm);
+    $("#jira-search-box").on("keypress", function searchKeypressEventHandler (e) {
+        if(e.keyCode == 13) submitJiraSearchForm();
+    });
 });


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org