forked from 0x2620/oxjs
some work towards making the edit annotations menu functional
This commit is contained in:
parent
1ea9524cb1
commit
8ab8d8d67a
5 changed files with 135 additions and 74 deletions
|
|
@ -59,6 +59,7 @@ Ox.ArrayEditable = function(options, self) {
|
|||
that.triggerEvent('delete', {
|
||||
id: self.options.selected
|
||||
});
|
||||
self.editing = false;
|
||||
self.selected = -1;
|
||||
self.options.selected = '';
|
||||
}
|
||||
|
|
@ -367,9 +368,9 @@ Ox.ArrayEditable = function(options, self) {
|
|||
return that;
|
||||
};
|
||||
|
||||
that.removeItem = function(position) {
|
||||
if (self.options.editable) {
|
||||
|
||||
that.removeItem = function() {
|
||||
if (self.options.editable && self.options.selected) {
|
||||
deleteItem();
|
||||
}
|
||||
return that;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue