Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions lib/assets/javascripts/best_in_place.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -660,6 +661,3 @@ jQuery.fn.best_in_place = function () {

return this;
};