forked from 0x2620/oxjs
form elements rewrite, part 2
This commit is contained in:
parent
fe303bf2b0
commit
074902d079
33 changed files with 163 additions and 153 deletions
|
|
@ -67,7 +67,7 @@ Ox.Editable = function(options, self) {
|
|||
|
||||
function cancel() {
|
||||
self.options.value = self.originalValue;
|
||||
self.$input.options({value: formatInputValue()}).hide();
|
||||
self.$input.value(formatInputValue()).hide();
|
||||
self.$test.html(formatTestValue());
|
||||
self.$value.html(formatValue()).show();
|
||||
}
|
||||
|
|
@ -191,7 +191,7 @@ Ox.Editable = function(options, self) {
|
|||
function submit() {
|
||||
self.options.editing = false;
|
||||
self.options.value = Ox.parseHTML(self.$input.value());
|
||||
self.$input.options({value: formatInputValue()}).hide();
|
||||
self.$input.value(formatInputValue()).hide();
|
||||
self.$test.html(formatTestValue());
|
||||
self.$value.html(formatValue()).show();
|
||||
that.$tooltip.options({title: self.options.tooltip});
|
||||
|
|
@ -204,7 +204,6 @@ Ox.Editable = function(options, self) {
|
|||
if (key == 'height' || key == 'width') {
|
||||
var css = {};
|
||||
css[key] = value + 'px';
|
||||
Ox.print(key, 'VALUE', value)
|
||||
self.$test && self.$test.css(css);
|
||||
self.$input && self.$input.css(css);
|
||||
self.$input && self.$input.find(self.options.type).css(css);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue