Skip to content

Commit

Permalink
Replace the entire Methods section in the editor when we render that
Browse files Browse the repository at this point in the history
section, rather than appending

Closes #331
  • Loading branch information
laurenwalker committed Nov 6, 2017
1 parent 7ffd72b commit 69bfe44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metacatui/src/main/webapp/js/views/metadata/EML211View.js
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,7 @@ define(['underscore', 'jquery', 'backbone',
methodsModel = new EMLMethods({ edit: this.edit, parentModel: this.model });
}

this.$(".section.methods").append(new EMLMethodsView({
this.$(".section.methods").html(new EMLMethodsView({
model: methodsModel,
edit: this.edit }).render().el);
},
Expand Down

0 comments on commit 69bfe44

Please sign in to comment.