Skip to content

Commit 2e9384a

Browse files
committed
make sure we disable the remove button when adding user defined
1 parent 0b62374 commit 2e9384a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

frontend/assets/user_defined_in_basic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ UserDefinedInBasic.prototype.init = function(fields, read_only_view) {
1515
var remove_btn = user_defined_section.find('.subrecord-form-remove');
1616
if (remove_btn.length == 0) {
1717
user_defined_section.find('.btn-default').filter(':visible').click();
18-
remove_btn.attr('disabled', 'disabled');
18+
user_defined_section.find('.subrecord-form-remove').attr('disabled', 'disabled');
1919
window.scrollTo(0,0);
2020
} else {
2121
remove_btn.attr('disabled', 'disabled');

0 commit comments

Comments
 (0)