1
0
Fork 0
forked from 0x2620/oxjs

- remove editItem from Ox.List

- use ArrayEditable for text too
This commit is contained in:
j 2012-01-04 22:57:32 +05:30
commit 093edd57d0
12 changed files with 180 additions and 403 deletions

View file

@ -63,6 +63,7 @@ Ox.Editable = function(options, self) {
if (self.options.editing) {
self.options.editing = false;
// edit will toggle self.options.editing
edit();
}
@ -159,7 +160,7 @@ Ox.Editable = function(options, self) {
}
// fixme: why can't this be chained?
setTimeout(function() {
self.$input.focusInput(true);
self.$input.focusInput(self.options.type == 'input');
}, 0);
that.$tooltip && that.$tooltip.options({title: ''});
that.triggerEvent('edit', {editing: true});
@ -224,4 +225,4 @@ Ox.Editable = function(options, self) {
return that;
};
};