1
0
Fork 0
forked from 0x2620/oxjs

some work towards making the edit annotations menu functional

This commit is contained in:
rlx 2012-02-16 11:35:03 +00:00
commit 8ab8d8d67a
5 changed files with 135 additions and 74 deletions

View file

@ -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;
};