diff options
author | Robert Treat | 2012-11-28 03:57:45 +0000 |
---|---|---|
committer | Robert Treat | 2012-11-28 03:57:45 +0000 |
commit | bcf3cae0584becfd6cba7bf7b97fd166c97ab392 (patch) | |
tree | 5a2949dfbcb9143bdd97690623ba0cd24f006094 | |
parent | fb11598dada50b48a03385940e5b477e7c512b03 (diff) |
Fix an issue with population of FK fields using autocomplete.
The fix comes from a comment by Dmytry Scherbina in a pull request
originally submitted by Jakob Klein.
-rw-r--r-- | js/ac_insert_row.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/ac_insert_row.js b/js/ac_insert_row.js index d94edf5a..1101a99d 100644 --- a/js/ac_insert_row.js +++ b/js/ac_insert_row.js @@ -176,7 +176,7 @@ with(jQuery('tr.acline')) { var a = jQuery(this).find('td > a.fkval'); for (i=0; i < a.length; i++) { - jQuery('input[name="values['+ a[i].name +']"]').val(a[i].innerHTML); + jQuery('input[name="values['+ a[i].name +']"]').val(jQuery(a[i]).text()); } hideAc(); }); |