Lines 24-33
document.addEventListener("DOMContentLoaded", function () {
Link Here
|
24 |
$(event.target).parent().remove(); |
24 |
$(event.target).parent().remove(); |
25 |
}); |
25 |
}); |
26 |
$("#type").change(function () { |
26 |
$("#type").change(function () { |
27 |
$("#create_form").prepend( |
27 |
$("#create_form, #standard_edit_form") |
28 |
'<input type="hidden" name="change_type" value="1" />' |
28 |
.first() |
29 |
); |
29 |
.submit(function () { |
30 |
$("#create_form").submit(); |
30 |
$(this).prepend( |
|
|
31 |
'<input type="hidden" name="change_type" value="1" />' |
32 |
); |
33 |
}) |
34 |
.submit(); |
31 |
}); |
35 |
}); |
32 |
$("#standard-fields").on("keyup", ".custom-name", function () { |
36 |
$("#standard-fields").on("keyup", ".custom-name", function () { |
33 |
var val = $(this).val(); |
37 |
var val = $(this).val(); |
34 |
- |
|
|