Skip to content

Commit

Permalink
Trim whitespace when grabbing the text to determine the selected value.
Browse files Browse the repository at this point in the history
Signed-off-by: Mika Tuupola <tuupola@appelsiini.net>
  • Loading branch information
binarylogic authored and tuupola committed May 29, 2009
1 parent b8c622d commit 159666d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jquery.jeditable.js
Expand Up @@ -509,7 +509,7 @@
/* Loop option again to set selected. IE needed this... */
$('select', this).children().each(function() {
if ($(this).val() == json['selected'] ||
$(this).text() == original.revert) {
$(this).text() == $.trim(original.revert)) {
$(this).attr('selected', 'selected');
}
});
Expand Down

0 comments on commit 159666d

Please sign in to comment.