1
0
Fork 0
forked from 0x2620/oxjs

simpler text list column head elements, better column drag

This commit is contained in:
rlx 2011-09-09 10:41:13 +00:00
commit 0ba258281f
12 changed files with 461 additions and 330 deletions

View file

@ -309,6 +309,8 @@ Ox.List = function(options, self) {
}
function copyItems() {
// fixme: both copy and paste should just deal with Ox.Clipboard,
// and use a "type"
self.options.selected.length && that.triggerEvent('copy', {
ids: self.options.selected
});
@ -653,7 +655,7 @@ Ox.List = function(options, self) {
if (self.$items.length == 0) {
return self.options.selected;
} else {
return $.map(self.selected, function(pos) {
return self.selected.map(function(pos) {
return self.$items[pos].options('data')[self.options.unique];
});
}
@ -826,7 +828,7 @@ Ox.List = function(options, self) {
});
that.triggerEvent('move', {
//id: id,
ids: $.map(self.$items, function($item) {
ids: self.$items.map(function($item) {
return $item.options('data')[self.options.unique];
})
//position: pos