diff --git a/lib/assets/javascripts/best_in_place.js b/lib/assets/javascripts/best_in_place.js index db3f8bde..44f7868e 100644 --- a/lib/assets/javascripts/best_in_place.js +++ b/lib/assets/javascripts/best_in_place.js @@ -371,6 +371,7 @@ BestInPlaceEditor.forms = { .attr('action', 'javascript:void(0);') .attr('style', 'display:inline'); var input_elt = jQuery(document.createElement('input')) + .addClass('input_in_place') .attr('type', 'text') .attr('name', this.attributeName) .val(this.display_value); @@ -401,7 +402,7 @@ BestInPlaceEditor.forms = { getValue: function () { 'use strict'; - return this.sanitizeValue(this.element.find("input").val()); + return this.sanitizeValue(this.element.find("input.input_in_place").val()); }, // When buttons are present, use a timer on the blur event to give precedence to clicks @@ -660,6 +661,3 @@ jQuery.fn.best_in_place = function () { return this; }; - - -