openlp-core team mailing list archive
-
openlp-core team
-
Mailing list archive
-
Message #13513
[Merge] lp:~mahfiaz/openlp/remote-search-with-enter into lp:openlp
mahfiaz has proposed merging lp:~mahfiaz/openlp/remote-search-with-enter into lp:openlp.
Requested reviews:
OpenLP Core (openlp-core)
For more details, see:
https://code.launchpad.net/~mahfiaz/openlp/remote-search-with-enter/+merge/86464
Enable searching in web remote by pressing enter when search bar is focused.
--
https://code.launchpad.net/~mahfiaz/openlp/remote-search-with-enter/+merge/86464
Your team OpenLP Core is requested to review the proposed merge of lp:~mahfiaz/openlp/remote-search-with-enter into lp:openlp.
=== modified file 'openlp/plugins/remotes/html/openlp.js'
--- openlp/plugins/remotes/html/openlp.js 2011-12-18 20:49:31 +0000
+++ openlp/plugins/remotes/html/openlp.js 2011-12-20 20:58:26 +0000
@@ -296,6 +296,8 @@
$("#alert-submit").live("click", OpenLP.showAlert);
// Search
$("#search-submit").live("click", OpenLP.search);
+$("#search-text").live("keypress", function(event){
+ if (event.which == 13) { OpenLP.search(event); }});
$("#go-live").live("click", OpenLP.goLive);
$("#add-to-service").live("click", OpenLP.addToService);
// Poll the server twice a second to get any updates.