add Ox.ArrayEditable

This commit is contained in:
rolux 2012-01-03 15:55:15 +05:30
commit 7d3f72ecc9
5 changed files with 226 additions and 1 deletions

View file

@ -70,6 +70,7 @@ Ox.Editable = function(options, self) {
self.$input.value(formatInputValue()).hide();
self.$test.html(formatTestValue());
self.$value.html(formatValue()).show();
that.triggerEvent('cancel', {value: self.options.value});
}
function change(event) {
@ -156,7 +157,7 @@ Ox.Editable = function(options, self) {
}
// fixme: why can't this be chained?
setTimeout(function() {
self.$input.focusInput(false);
self.$input.focusInput(true);
}, 0);
that.$tooltip && that.$tooltip.options({title: ''});
that.triggerEvent('edit', {editing: true});