1
0
Fork 0
forked from 0x2620/oxjs

cleanup, again

This commit is contained in:
rolux 2011-11-03 16:42:41 +01:00
commit 094b1a59ec
34 changed files with 93 additions and 101 deletions

View file

@ -72,13 +72,13 @@ Ox.List = function(options, self) {
.options(options || {})
.scroll(scroll);
that.$content.bindEvent({
that.$content.bindEvent({
mousedown: mousedown,
singleclick: singleclick,
doubleclick: doubleclick
});
if (self.options.draggable) {
that.$content.bindEvent({
that.$content.bindEvent({
dragstart: dragstart,
drag: drag,
dragpause: dragpause,
@ -87,7 +87,7 @@ Ox.List = function(options, self) {
dragend: dragend
});
} else if (self.options.sortable) {
that.$content.bindEvent({
that.$content.bindEvent({
dragstart: movestart,
drag: move,
dragend: moveend
@ -372,7 +372,7 @@ Ox.List = function(options, self) {
});
}
}
function drag(data) {
self.drag && that.triggerEvent('draganddrop', {
ids: self.drag.ids,
@ -887,7 +887,7 @@ Ox.List = function(options, self) {
clickable, editable;
if (pos > -1) {
if (
!data.metaKey && !data.shiftKey
!data.metaKey && !data.shiftKey
&& isSelected(pos) && self.selected.length > 1
) {
// click on one of multiple selected items