Enable searching in web remote by pressing enter when search bar is focused.

bzr-revno: 1849
This commit is contained in:
Mattias Põldaru 2011-12-21 12:27:54 +02:00 committed by Raoul Snyman
commit b80e2ffa5b

View File

@ -296,6 +296,12 @@ $("#controller-top-unblank, #controller-btm-unblank").live("click", OpenLP.unbla
$("#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.