Skip to content

Commit

Permalink
Fix #523 enclose field value into quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
ebrehault committed Feb 3, 2014
1 parent 366ce3e commit d7a8c89
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -71,7 +71,7 @@
function ${fieldid}_add_row(data) {
var tablebody = jQuery('#${fieldid}_table_result > tbody');
//if (tablebody.has('input[value=' + data[0] + ']').length == 0) {
if (jQuery('#${fieldid}_table_result > tbody:has(input[value=' + data[0] + '])').length == 0) {
if (jQuery('#${fieldid}_table_result > tbody:has(input[value=\'' + data[0] + '\'])').length == 0) {
//tablebody.children().has('input[value=]').remove()
jQuery('#${fieldid}_table_result > tbody > *:has(input[value=])').remove()
var row = jQuery('<tr><td><img alt=\'Remove\' src=\'list-remove.png\' style=\'cursor: pointer\' onclick=\'${fieldid}_delete_row(this)\' />' +
Expand Down

0 comments on commit d7a8c89

Please sign in to comment.