1
0
Fork 0
forked from 0x2620/oxjs

strip tags in Ox.Editable

This commit is contained in:
rlx 2011-10-24 21:31:53 +00:00
commit 19d5f811d6
5 changed files with 21 additions and 6 deletions

View file

@ -80,7 +80,7 @@ Ox.Editable = function(options, self) {
changeOnKeypress: true,
style: 'square',
type: self.options.type,
value: self.options.value
value: Ox.stripTags(self.options.value)
}, self.options.type == 'textarea' ? {
width: self.options.width
} : {}))
@ -89,7 +89,7 @@ Ox.Editable = function(options, self) {
blur: submit,
cancel: cancel,
change: change,
submit: submit
//submit: submit
})
//[self.options.editing ? 'show' : 'hide']()
.hide()
@ -197,6 +197,9 @@ Ox.Editable = function(options, self) {
: self.options.value
);
cancel();
that.triggerEvent('submit', {
value: self.options.value
});
}
that.css = function(obj) {