This commit is contained in:
孙华伟
2022-03-15 13:36:52 +08:00
parent a2d2db7b27
commit dd727476ad
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -23,7 +23,7 @@ function setRole(account, roleID)
function addItem(obj)
{
var item = $('#addItem').html().replace(/%i%/g, i);
var item = $('#addItem').html().replace(/%i%/g, itemIndex);
$(obj).closest('tr').after('<tr class="addedItem">' + item + '</tr>');
var $accounts = $('#hours' + i).closest('tr').find('select:first')
@@ -37,7 +37,7 @@ function addItem(obj)
var pickerremote = $accounts.attr('data-pickerremote');
$accounts.picker({chosenMode: true, remote: pickerremote});
}
i ++;
itemIndex ++;
}
function deleteItem(obj)
+1 -1
View File
@@ -122,7 +122,7 @@
</tbody>
<tfoot><tr><td colspan='6' class='text-center form-actions'><?php echo html::submitButton() . ' ' . html::backButton(); ?></td></tr></tfoot>
</table>
<?php js::set('i', $i);?>
<?php js::set('itemIndex', $i);?>
</form>
</div>
<div>