update video editor (places, events)
This commit is contained in:
parent
8de69b3173
commit
8384fcc913
13 changed files with 346 additions and 144 deletions
|
|
@ -150,6 +150,7 @@ Ox.ArrayEditable = function(options, self) {
|
|||
}
|
||||
|
||||
function selectItem(idOrPosition) {
|
||||
Ox.print('???????', self.editing)
|
||||
if (Ox.isString(idOrPosition)) {
|
||||
self.options.selected = idOrPosition;
|
||||
self.selected = getSelectedPosition();
|
||||
|
|
@ -157,7 +158,7 @@ Ox.ArrayEditable = function(options, self) {
|
|||
self.selected = idOrPosition;
|
||||
self.options.selected = getSelectedId();
|
||||
}
|
||||
if (self.options.selected == '' && self.editing) {
|
||||
if (/*self.options.selected == '' && */self.editing) {
|
||||
self.editing = false;
|
||||
that.blurItem();
|
||||
}
|
||||
|
|
@ -253,13 +254,15 @@ Ox.ArrayEditable = function(options, self) {
|
|||
};
|
||||
|
||||
that.blurItem = function() {
|
||||
/*
|
||||
if (self.options.selected) {
|
||||
self.$items[self.selected].options({editing: false});
|
||||
} else {
|
||||
*/
|
||||
self.$items.forEach(function($item) {
|
||||
$item.options({editing: false});
|
||||
});
|
||||
}
|
||||
//}
|
||||
};
|
||||
|
||||
that.editItem = function() {
|
||||
|
|
|
|||
|
|
@ -36,6 +36,8 @@ Ox.ArrayInput = function(options, self) {
|
|||
addInput(i, value);
|
||||
});
|
||||
|
||||
self.options.value = getValue();
|
||||
|
||||
function addInput(index, value, focus) {
|
||||
Ox.Log('Form', 'add', index)
|
||||
self.$element.splice(index, 0, Ox.Element()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue