|
|
@@ -2,7 +2,6 @@ |
|
|
|
import "jquery-ui" |
|
|
|
import "./form.scss" |
|
|
|
|
|
|
|
|
|
|
|
$(document).ready(function () { |
|
|
|
initCollectionWidget(); |
|
|
|
}); |
|
|
@@ -68,13 +67,13 @@ function reindexKeyCollectionWidget($collectionWidget) { |
|
|
|
$(item).find('input,textarea').each(function (y, field) { |
|
|
|
let $field = $(field); |
|
|
|
//Chanegment ID |
|
|
|
let posId = Tools.indexOfLastDigit($field.prop('id')); |
|
|
|
let posId = SovTools.indexOfLastDigit($field.prop('id')); |
|
|
|
let idPrefix = $field.prop('id').substr(0, posId); |
|
|
|
let idSuffix = $field.prop('id').substr(posId + 1); |
|
|
|
$field.prop('id', idPrefix + i + idSuffix); |
|
|
|
|
|
|
|
//Chanegment Name |
|
|
|
let posName = Tools.indexOfLastDigit($field.prop('name')); |
|
|
|
let posName = SovTools.indexOfLastDigit($field.prop('name')); |
|
|
|
let namePrefix = $field.prop('name').substr(0, posName); |
|
|
|
let nameSuffix = $field.prop('name').substr(posName + 1); |
|
|
|
$field.prop('name', namePrefix + i + nameSuffix); |