1
0

Improve #create action

This commit is contained in:
cryptogopher
2021-04-20 16:57:15 +02:00
parent 1b634dea2b
commit 37e3b98788
4 changed files with 20 additions and 5 deletions

View File

@@ -42,8 +42,7 @@
var row = form.find('p.target:visible:last');
var new_row = row.clone().insertAfter(row);
new_row.find('em').text('<%= t ".choose_quantity" %>');
new_row.find('input, select').val('');
new_row.find('select[id$=__unit_id]').val(row.find('select[id$=__unit_id]').val());
new_row.find('input, select:first').val('');
new_row.find('label:first').hide();
form.find('p.target:visible a.icon-del').show();
}