fix speech-search

This commit is contained in:
fkloft 2015-02-12 15:33:52 +01:00
parent d98737b3ba
commit 5e22ea5b72

View File

@ -22,10 +22,10 @@ window.plugin.speechSearch = function() {};
window.plugin.speechSearch.setup = function() { window.plugin.speechSearch.setup = function() {
// Give the search input the speech attribute // Give the search input the speech attribute
$("#geosearch").attr("x-webkit-speech", ""); $("#search").attr("x-webkit-speech", "");
// Immediately search without further input // Immediately search without further input
$("#geosearch").bind("webkitspeechchange", function() { $("#search").bind("webkitspeechchange", function() {
$("#geosearch").trigger($.Event("keypress", {keyCode: 13})); $("#search").trigger($.Event("keypress", {keyCode: 13}));
}); });
}; };