vendor/assets/javascripts/editable/rails/editable_form.js.coffee in x-editable-rails-1.5.2 vs vendor/assets/javascripts/editable/rails/editable_form.js.coffee in x-editable-rails-1.5.3

- old
+ new

@@ -10,16 +10,12 @@ @options.url = (params) => if typeof originalUrl == 'function' originalUrl.call(@options.scope, params) else if originalUrl? && @options.send != 'never' myName = params.name + myValue = params.value - if typeof params.value == 'string' - myValue = params.value.replace(/(\r\n|\n|\r)/gm,"<br/>") - else - myValue = params.value - # if there are no values in a list, add a blank value so Rails knows all values were removed if Object.prototype.toString.call(params.value) == '[object Array]' && params.value.length == 0 params.value.push("") obj = {} @@ -50,6 +46,6 @@ }, @options.ajaxOptions)) @saveWithoutUrlHook(value) EditableForm.prototype.saveWithoutUrlHook = EditableForm.prototype.save - EditableForm.prototype.save = EditableForm.prototype.saveWithUrlHook \ No newline at end of file + EditableForm.prototype.save = EditableForm.prototype.saveWithUrlHook