forked from 0x2620/oxjs
- find in layers
- change upadteAnnotation call to allow id updates
This commit is contained in:
parent
e8b1362309
commit
fd96423266
6 changed files with 81 additions and 38 deletions
|
|
@ -25,6 +25,7 @@ Ox.Editable = function(options, self) {
|
|||
editing: false,
|
||||
format: null,
|
||||
height: 0,
|
||||
highlight: null,
|
||||
maxHeight: void 0,
|
||||
placeholder: '',
|
||||
submitOnBlur: true,
|
||||
|
|
@ -175,6 +176,9 @@ Ox.Editable = function(options, self) {
|
|||
} else if (self.options.format) {
|
||||
value = self.options.format(self.options.value)
|
||||
}
|
||||
if (self.options.highlight) {
|
||||
value = Ox.highlight(value, self.options.highlight, 'OxHighlight');
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
|
|
@ -234,6 +238,8 @@ Ox.Editable = function(options, self) {
|
|||
self.$test && self.$test.css(css);
|
||||
self.$input && self.$input.css(css);
|
||||
self.$input && self.$input.find(self.options.type).css(css);
|
||||
} else if (key == 'highlight') {
|
||||
self.$value.html(formatValue());
|
||||
} else if (key == 'value') {
|
||||
self.$value.html(formatValue());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue