mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
Fix searchbox no longer works in mobile template
This commit is contained in:
parent
3a342ad457
commit
b29cce05be
@ -382,12 +382,14 @@ var et2_searchbox = /** @class */ (function (_super) {
|
|||||||
// search button indicator
|
// search button indicator
|
||||||
// no need to create search button if it's a fix search field
|
// no need to create search button if it's a fix search field
|
||||||
if (!this.options.fix) {
|
if (!this.options.fix) {
|
||||||
this.button = et2_core_widget_1.et2_createWidget('button', { image: "search", "background_image": "1" }, this);
|
this.button = jQuery(document.createElement('button'))
|
||||||
this.button.onclick = function () {
|
.css({ "background-image": egw.image('search') })
|
||||||
|
.click(function () {
|
||||||
self._show_hide(jQuery(self.flex).hasClass('hide'));
|
self._show_hide(jQuery(self.flex).hasClass('hide'));
|
||||||
self.search.input.focus();
|
self.search.input.focus();
|
||||||
};
|
})
|
||||||
this.div.prepend(this.button.getDOMNode());
|
.addClass('et2_button');
|
||||||
|
this.div.prepend(this.button);
|
||||||
}
|
}
|
||||||
// input field
|
// input field
|
||||||
this.search = et2_core_widget_1.et2_createWidget('textbox', { "blur": egw.lang("search"),
|
this.search = et2_core_widget_1.et2_createWidget('textbox', { "blur": egw.lang("search"),
|
||||||
|
@ -427,7 +427,7 @@ class et2_searchbox extends et2_textbox
|
|||||||
value: string = "";
|
value: string = "";
|
||||||
div: JQuery;
|
div: JQuery;
|
||||||
flex: JQuery;
|
flex: JQuery;
|
||||||
button: et2_button;
|
button: JQuery;
|
||||||
search: et2_textbox;
|
search: et2_textbox;
|
||||||
oldValue: any;
|
oldValue: any;
|
||||||
clear: JQuery;
|
clear: JQuery;
|
||||||
@ -457,12 +457,14 @@ class et2_searchbox extends et2_textbox
|
|||||||
// no need to create search button if it's a fix search field
|
// no need to create search button if it's a fix search field
|
||||||
if (!this.options.fix)
|
if (!this.options.fix)
|
||||||
{
|
{
|
||||||
this.button = <et2_button><unknown>et2_createWidget('button',{image:"search","background_image":"1"},this);
|
this.button = jQuery(document.createElement('button'))
|
||||||
this.button.onclick= function(){
|
.css({"background-image": egw.image('search')})
|
||||||
self._show_hide(jQuery(self.flex).hasClass('hide'));
|
.click(function(){
|
||||||
self.search.input.focus();
|
self._show_hide(jQuery(self.flex).hasClass('hide'));
|
||||||
};
|
self.search.input.focus();
|
||||||
this.div.prepend(this.button.getDOMNode());
|
})
|
||||||
|
.addClass('et2_button');
|
||||||
|
this.div.prepend(this.button);
|
||||||
}
|
}
|
||||||
// input field
|
// input field
|
||||||
this.search = <et2_textbox><unknown>et2_createWidget('textbox',{"blur":egw.lang("search"),
|
this.search = <et2_textbox><unknown>et2_createWidget('textbox',{"blur":egw.lang("search"),
|
||||||
|
Loading…
Reference in New Issue
Block a user