|
@@ -31,15 +31,15 @@
|
|
|
|
|
|
});
|
|
|
|
|
|
- function addRow(list, idx, tpl, row) {
|
|
|
+ function addRow(list, idx, tpl, row,isLocal = false) {
|
|
|
|
|
|
+ if(false == isLocal) {
|
|
|
$(list).append(Mustache.render(tpl, {
|
|
|
idx: idx, delBtn: true, row: row, rowNo: idx + 1
|
|
|
}));
|
|
|
+ }
|
|
|
|
|
|
- debugger
|
|
|
$(list + idx).find("select").each(function () {
|
|
|
- debugger
|
|
|
$(this).val($(this).attr("data-value"));
|
|
|
$(this).select2();
|
|
|
});
|
|
@@ -384,8 +384,8 @@
|
|
|
</shiro:hasPermission>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
-<%-- <tbody id="mdeFairDtlList">--%>
|
|
|
-<%-- </tbody>--%>
|
|
|
+ <%-- <tbody id="mdeFairDtlList">--%>
|
|
|
+ <%-- </tbody>--%>
|
|
|
<tbody id="mdeFairDtlList">
|
|
|
<c:forEach items="${mdeJobFair.mdeFairDtlList}" var="fairDtl" varStatus="status">
|
|
|
<tr id="mdeFairDtlList${status.index}">
|
|
@@ -549,7 +549,7 @@
|
|
|
console.log(data)
|
|
|
for (var i = 0; i < data.length; i++) {
|
|
|
console.log(data[i]);
|
|
|
- addRow('', mdeFairDtlRowIdx, mdeFairDtlTpl, data[i],true);
|
|
|
+ addRow('#mdeFairDtlList', mdeFairDtlRowIdx, mdeFairDtlTpl, data[i], true);
|
|
|
mdeFairDtlRowIdx = mdeFairDtlRowIdx + 1;
|
|
|
}
|
|
|
|