combine multiple list.value into one
This commit is contained in:
parent
7b5d24461d
commit
a7f520281d
2 changed files with 6 additions and 3 deletions
|
@ -1236,8 +1236,8 @@ Ox.TableList = function(options, self) {
|
||||||
} else if (arguments.length == 2 && Ox.isString(arguments[1])) {
|
} else if (arguments.length == 2 && Ox.isString(arguments[1])) {
|
||||||
return that.$body.value(id, arguments[1]);
|
return that.$body.value(id, arguments[1]);
|
||||||
} else {
|
} else {
|
||||||
|
that.$body.value(id, Ox.makeObject(args));
|
||||||
Ox.forEach(Ox.makeObject(args), function(value, key) {
|
Ox.forEach(Ox.makeObject(args), function(value, key) {
|
||||||
that.$body.value(id, key, value);
|
|
||||||
if (key == self.options.unique) {
|
if (key == self.options.unique) {
|
||||||
// unique id has changed
|
// unique id has changed
|
||||||
self.options.selected = self.options.selected.map(function(id_) {
|
self.options.selected = self.options.selected.map(function(id_) {
|
||||||
|
|
|
@ -645,8 +645,11 @@ Ox.ClipPanel = function(options, self) {
|
||||||
|
|
||||||
that.updateItem = function(id, data) {
|
that.updateItem = function(id, data) {
|
||||||
self.options.clips[Ox.getIndexById(self.options.clips, id)] = data;
|
self.options.clips[Ox.getIndexById(self.options.clips, id)] = data;
|
||||||
['in', 'out', 'duration'].forEach(function(key) {
|
self.$list.value(id, {
|
||||||
self.$list.value(id, key, data[key]);
|
duration: data.duration,
|
||||||
|
'in': data['in'],
|
||||||
|
out: data.out,
|
||||||
|
sort: data.sort
|
||||||
});
|
});
|
||||||
return that;
|
return that;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue