Refactoring
This commit is contained in:
parent
79428de692
commit
568a2d300b
|
@ -283,8 +283,8 @@ define([
|
|||
return;
|
||||
}
|
||||
if (!this.searchBar) {
|
||||
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 ? {
|
||||
var isVisible = leftMenu && leftMenu.leftMenu && leftMenu.leftMenu.isVisible();
|
||||
this.searchBar = new Common.UI.SearchBar( !isVisible ? {
|
||||
showOpenPanel: false,
|
||||
width: 303
|
||||
} : {});
|
||||
|
|
|
@ -345,8 +345,8 @@ define([
|
|||
return;
|
||||
}
|
||||
if (!this.searchBar) {
|
||||
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 ? {
|
||||
var isVisible = leftMenu && leftMenu.leftMenu && leftMenu.leftMenu.isVisible();
|
||||
this.searchBar = new Common.UI.SearchBar( !isVisible ? {
|
||||
showOpenPanel: false,
|
||||
width: 303
|
||||
} : {});
|
||||
|
|
|
@ -311,8 +311,8 @@ define([
|
|||
return;
|
||||
}
|
||||
if (!this.searchBar) {
|
||||
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 ? {
|
||||
var isVisible = leftMenu && leftMenu.leftMenu && leftMenu.leftMenu.isVisible();
|
||||
this.searchBar = new Common.UI.SearchBar( !isVisible ? {
|
||||
showOpenPanel: false,
|
||||
width: 303
|
||||
} : {});
|
||||
|
|
Loading…
Reference in a new issue