toggleElement
This commit is contained in:
parent
b309f9d33f
commit
4c01423d65
5 changed files with 8 additions and 8 deletions
|
@ -23,7 +23,7 @@ oml.ui.itemInnerPanel = function() {
|
|||
})
|
||||
.bindEvent({
|
||||
oml_showbrowser: function(data) {
|
||||
data.value == that.options('elements')[0].collapsed && that.toggle(0);
|
||||
data.value == that.options('elements')[0].collapsed && that.toggleElement(0);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -49,11 +49,11 @@ oml.ui.leftPanel = function() {
|
|||
},
|
||||
oml_showinfo: function(data) {
|
||||
if (data.value == that.options('elements')[2].collapsed) {
|
||||
that.toggle(2);
|
||||
that.toggleElement(2);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
return that;
|
||||
|
||||
};
|
||||
};
|
||||
|
|
|
@ -31,10 +31,10 @@ oml.ui.listInnerPanel = function() {
|
|||
that.replaceElement(1, oml.$ui.list = oml.ui.list());
|
||||
},
|
||||
oml_showfilters: function(data) {
|
||||
data.value == that.options('elements')[0].collapsed && that.toggle(0);
|
||||
data.value == that.options('elements')[0].collapsed && that.toggleElement(0);
|
||||
}
|
||||
});
|
||||
|
||||
return that;
|
||||
|
||||
};
|
||||
};
|
||||
|
|
|
@ -24,10 +24,10 @@ oml.ui.mainPanel = function() {
|
|||
})
|
||||
.bindEvent({
|
||||
oml_showsidebar: function(data) {
|
||||
data.value == that.options('elements')[0].collapsed && that.toggle(0);
|
||||
data.value == that.options('elements')[0].collapsed && that.toggleElement(0);
|
||||
}
|
||||
});
|
||||
|
||||
return that;
|
||||
|
||||
};
|
||||
};
|
||||
|
|
|
@ -359,7 +359,7 @@ oml.enableDragAndDrop = function($list, canMove) {
|
|||
if (event.clientX < 16 && event.clientY >= 44
|
||||
&& event.clientY < window.innerHeight - 16
|
||||
) {
|
||||
oml.$ui.mainPanel.toggle(0);
|
||||
oml.$ui.mainPanel.toggleElement(0);
|
||||
}
|
||||
} else {
|
||||
$parent = $(event.target).parent();
|
||||
|
|
Loading…
Reference in a new issue