Skip to content

Commit

Permalink
Merge pull request #6371 from samvera/fix_rep_media_thumbnail_changin…
Browse files Browse the repository at this point in the history
…g_6361

Fixes the swapping of Thumbnail and Rep. Media per work (#6361).
  • Loading branch information
dlpierce authored Oct 19, 2023
2 parents 7b77419 + 90c36b5 commit d45637e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/assets/javascripts/hyrax/file_manager/member.es6
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export class InputTracker {
this.notifier = notifier
this.element.data("initial-value", this.element.val())
this.element.data("tracker", this)
this.element.trigger("change", this.value_changed)
this.element.on("change", this.value_changed)
}

reset() {
Expand Down
2 changes: 1 addition & 1 deletion app/views/hyrax/base/_file_manager_resource_form.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="resource-form-container">
<%= simple_form_for [main_app, @form], remote: true, html: { id: 'resource-form', 'data-type': 'json' } do |f| %>
<%= simple_form_for [main_app, @form], remote: true, authenticity_token: true, html: { id: 'resource-form', 'data-type': 'json' } do |f| %>
<%= f.input :thumbnail_id, as: :hidden, input_html: { data: {member_link: 'thumbnail_id'}} %>
<%= f.input :representative_id, as: :hidden, input_html: { data: {member_link: 'representative_id'}} %>
<% end %>
Expand Down

0 comments on commit d45637e

Please sign in to comment.