3.0.5666.4
This commit is contained in:
parent
5f32167765
commit
4e815ceaf0
4 changed files with 137 additions and 76 deletions
26
dashboard-ui/cordova/searchmenu.js
vendored
Normal file
26
dashboard-ui/cordova/searchmenu.js
vendored
Normal file
|
@ -0,0 +1,26 @@
|
|||
(function () {
|
||||
|
||||
function searchMenu() {
|
||||
|
||||
var self = this;
|
||||
|
||||
self.show = function () {
|
||||
|
||||
cordova.searchbar.show();
|
||||
};
|
||||
|
||||
self.hide = function () {
|
||||
|
||||
cordova.searchbar.hide();
|
||||
};
|
||||
|
||||
document.addEventListener('searchEvent', function (data) {
|
||||
|
||||
Events.trigger(self, 'change', [data.text || '']);
|
||||
|
||||
}, true);
|
||||
}
|
||||
|
||||
window.SearchMenu = new searchMenu();
|
||||
|
||||
})();
|
Loading…
Add table
Add a link
Reference in a new issue