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