js: fix indexes finding for tabular inlines

js: fix indexes finding for tabular inlines

Not sure with but unless I change the code the line 30 finds <i> tags instead of the input.
master
Patrick 2016-03-10 14:43:44 -05:00
parent 70549b2517
commit 33074d8f65
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@
var indexes = [];
ui.item.parent().children('tr').each(function(i)
{
var index_value = $(this).find('.original :hidden:first').val();
var index_value = $(this).find('.original').find(':input').first().val();
if (index_value !== '' && index_value !== undefined) {
indexes.push(index_value);
}