init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
36
KretaWeb/Scripts/SearchPanelHelper.js
Normal file
36
KretaWeb/Scripts/SearchPanelHelper.js
Normal file
|
@ -0,0 +1,36 @@
|
|||
var SearchPanelHelper = (function () {
|
||||
var searchPanelHelper = function () {};
|
||||
|
||||
searchPanelHelper.SetSearchComboBoxVisibility = function (
|
||||
comboBoxId,
|
||||
isVisible
|
||||
) {
|
||||
var comboBox = $('#' + comboBoxId);
|
||||
var comboBoxData = KretaComboBoxHelper.getKendoComboBoxData(comboBoxId);
|
||||
if (isVisible) {
|
||||
comboBox.closest('div.searchPanelRow').show();
|
||||
} else {
|
||||
comboBox.closest('div.searchPanelRow').hide();
|
||||
comboBoxData.select(-1);
|
||||
}
|
||||
};
|
||||
|
||||
searchPanelHelper.SetSearchPanelVisibility = function (isVisible) {
|
||||
var sideBarToggleButton = $('li#searchPanelFul');
|
||||
if (isVisible) {
|
||||
$('div.sidebar-container').show();
|
||||
sideBarToggleButton.removeClass('disabled');
|
||||
sideBarToggleButton.off('click');
|
||||
MasterLayout.OpenSideBar(sideBarToggleButton);
|
||||
} else {
|
||||
$('div.sidebar-container').hide();
|
||||
sideBarToggleButton.addClass('disabled');
|
||||
sideBarToggleButton.on('click', function () {
|
||||
MasterLayout.OpenCloseSideBar($(this));
|
||||
});
|
||||
MasterLayout.CloseSideBar(sideBarToggleButton);
|
||||
}
|
||||
};
|
||||
|
||||
return searchPanelHelper;
|
||||
})();
|
Loading…
Add table
Add a link
Reference in a new issue