cosmetic changes

This commit is contained in:
rolux 2013-02-27 13:02:51 +05:30
parent cd14cc517c
commit 603475b7a7

View file

@ -101,7 +101,7 @@ Ox.Editable = function(options, self) {
// edit will toggle self.options.editing // edit will toggle self.options.editing
self.options.editing = false; self.options.editing = false;
edit(); edit();
}, 0); });
} }
function blur(data) { function blur(data) {
@ -224,7 +224,8 @@ Ox.Editable = function(options, self) {
var value = Ox.clean( var value = Ox.clean(
self.$input.value().replace(/\n\n+/g, '\0') self.$input.value().replace(/\n\n+/g, '\0')
).replace(/\0/g, '\n\n').trim(); ).replace(/\0/g, '\n\n').trim();
return (self.options.type == 'input' return (
self.options.type == 'input'
? Ox.encodeHTMLEntities(value) ? Ox.encodeHTMLEntities(value)
: Ox.sanitizeHTML(value, self.options.tags, self.options.replaceTags) : Ox.sanitizeHTML(value, self.options.tags, self.options.replaceTags)
); );