toggleElement

This commit is contained in:
j 2014-09-25 13:39:05 +02:00
parent b309f9d33f
commit 4c01423d65
5 changed files with 8 additions and 8 deletions

View File

@ -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);
}
});

View File

@ -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;
};
};

View File

@ -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;
};
};

View File

@ -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;
};
};

View File

@ -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();