Skip to content

Commit

Permalink
make sure we disable the remove button when adding user defined
Browse files Browse the repository at this point in the history
  • Loading branch information
jambun committed May 15, 2015
1 parent 0b62374 commit 2e9384a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/assets/user_defined_in_basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ UserDefinedInBasic.prototype.init = function(fields, read_only_view) {
var remove_btn = user_defined_section.find('.subrecord-form-remove');
if (remove_btn.length == 0) {
user_defined_section.find('.btn-default').filter(':visible').click();
remove_btn.attr('disabled', 'disabled');
user_defined_section.find('.subrecord-form-remove').attr('disabled', 'disabled');
window.scrollTo(0,0);
} else {
remove_btn.attr('disabled', 'disabled');
Expand Down

0 comments on commit 2e9384a

Please sign in to comment.