[DE PE SSE] Don't hide advanced search settings button in searchbar when left panel is not visible
This commit is contained in:
parent
ca5738bd99
commit
74e246e032
|
@ -881,6 +881,7 @@ define([
|
|||
onShowHideSearch: function (state, findText) {
|
||||
if (state) {
|
||||
Common.UI.Menu.Manager.hideAll();
|
||||
this.tryToShowLeftMenu();
|
||||
this.leftMenu.showMenu('advancedsearch', undefined, true);
|
||||
this.leftMenu.fireEvent('search:aftershow', this.leftMenu, findText);
|
||||
} else {
|
||||
|
|
|
@ -283,8 +283,9 @@ define([
|
|||
return;
|
||||
}
|
||||
if (!this.searchBar) {
|
||||
var isVisible = leftMenu && leftMenu.leftMenu && leftMenu.leftMenu.isVisible();
|
||||
this.searchBar = new Common.UI.SearchBar( !isVisible ? {
|
||||
var hideLeftPanel = this.appConfig.canBrandingExt &&
|
||||
(!Common.UI.LayoutManager.isElementVisible('leftMenu') || this.appConfig.customization && this.appConfig.customization.leftMenu === false);
|
||||
this.searchBar = new Common.UI.SearchBar( hideLeftPanel ? {
|
||||
showOpenPanel: false,
|
||||
width: 303
|
||||
} : {});
|
||||
|
|
|
@ -717,6 +717,7 @@ define([
|
|||
onShowHideSearch: function (state, findText) {
|
||||
if (state) {
|
||||
Common.UI.Menu.Manager.hideAll();
|
||||
this.tryToShowLeftMenu();
|
||||
this.leftMenu.showMenu('advancedsearch', undefined, true);
|
||||
this.leftMenu.fireEvent('search:aftershow', this.leftMenu, findText);
|
||||
} else {
|
||||
|
|
|
@ -345,8 +345,9 @@ define([
|
|||
return;
|
||||
}
|
||||
if (!this.searchBar) {
|
||||
var isVisible = leftMenu && leftMenu.leftMenu && leftMenu.leftMenu.isVisible();
|
||||
this.searchBar = new Common.UI.SearchBar( !isVisible ? {
|
||||
var hideLeftPanel = this.appConfig.canBrandingExt &&
|
||||
(!Common.UI.LayoutManager.isElementVisible('leftMenu') || this.appConfig.customization && this.appConfig.customization.leftMenu === false);
|
||||
this.searchBar = new Common.UI.SearchBar( hideLeftPanel ? {
|
||||
showOpenPanel: false,
|
||||
width: 303
|
||||
} : {});
|
||||
|
|
|
@ -857,6 +857,7 @@ define([
|
|||
onShowHideSearch: function (state, findText) {
|
||||
if (state) {
|
||||
Common.UI.Menu.Manager.hideAll();
|
||||
this.tryToShowLeftMenu();
|
||||
this.leftMenu.showMenu('advancedsearch');
|
||||
this.leftMenu.fireEvent('search:aftershow', [findText]);
|
||||
} else {
|
||||
|
|
|
@ -311,8 +311,9 @@ define([
|
|||
return;
|
||||
}
|
||||
if (!this.searchBar) {
|
||||
var isVisible = leftMenu && leftMenu.leftMenu && leftMenu.leftMenu.isVisible();
|
||||
this.searchBar = new Common.UI.SearchBar( !isVisible ? {
|
||||
var hideLeftPanel = this.appConfig.canBrandingExt &&
|
||||
(!Common.UI.LayoutManager.isElementVisible('leftMenu') || this.appConfig.customization && this.appConfig.customization.leftMenu === false);
|
||||
this.searchBar = new Common.UI.SearchBar( hideLeftPanel ? {
|
||||
showOpenPanel: false,
|
||||
width: 303
|
||||
} : {});
|
||||
|
|
Loading…
Reference in a new issue