← Back to team overview

openlp-core team mailing list archive

[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:
  Raoul Snyman (raoul-snyman)

For more details, see:
https://code.launchpad.net/~mahfiaz/openlp/remote-search-with-enter/+merge/86508

Enable searching in web remote by pressing enter when search bar is focused.
-- 
https://code.launchpad.net/~mahfiaz/openlp/remote-search-with-enter/+merge/86508
Your team OpenLP Core is subscribed to branch 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-21 08:17:25 +0000
@@ -296,6 +296,12 @@
 $("#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.


Follow ups