Show correct validator error position when a new element was added to CollectionType.

This commit is contained in:
Jan Böhmer 2020-03-30 15:49:04 +02:00
parent 5e6b6f08dd
commit 7bda340368
6 changed files with 7 additions and 7 deletions

View file

@ -90,7 +90,7 @@
//Determine the table, so we can determine, how many entries there are already.
$holder = $("#attachments_table");
var index = $holder.find(":input").length;
var index = $holder.children("tbody").children("tr").length;
var newForm = $holder.data("prototype");
//Increase the index

View file

@ -39,7 +39,7 @@
//Determine the table, so we can determine, how many entries there are already.
$holder = $(btn).siblings("table");
var index = $holder.find(":input").length;
var index = $holder.children("tbody").children("tr").length;
var newForm = $holder.data("prototype");
//Increase the index

View file

@ -88,7 +88,7 @@
//Determine the table, so we can determine, how many entries there are already.
$holder = $("#attachments_table");
var index = $holder.find(":input").length;
var index = $holder.children("tbody").children("tr").length;
var newForm = $holder.data("prototype");
//Increase the index

View file

@ -41,7 +41,7 @@
//Determine the table, so we can determine, how many entries there are already.
$holder = $("#lots_table");
var index = $holder.find(":input").length;
var index = $holder.children("tbody").children("tr").length;
var newForm = $holder.data("prototype");
//Increase the index

View file

@ -26,7 +26,7 @@
//Determine the table, so we can determine, how many entries there are already.
$holder = $(btn).siblings("table");
var index = $holder.find(":input").length;
var index = $holder.children("tbody").children("tr").length;
var newForm = $holder.data("prototype");
//Increase the index
@ -70,7 +70,7 @@
//Determine the table, so we can determine, how many entries there are already.
$holder = $("#orderdetails_table");
var index = $holder.find(":input").length;
var index = $holder.children("tbody").children("tr").length;
var newForm = $holder.data("prototype");
//Increase the index

View file

@ -39,7 +39,7 @@
//Determine the table, so we can determine, how many entries there are already.
$holder = $(btn).siblings("table");
var index = $holder.find(":input").length;
var index = $holder.children("tbody").children("tr").length;
var newForm = $holder.data("prototype");
//Increase the index