app/assets/javascripts/bulkrax/bulkrax.js in bulkrax-8.2.3 vs app/assets/javascripts/bulkrax/bulkrax.js in bulkrax-8.3.0
- old
+ new
@@ -3,20 +3,22 @@
$(document).on('turbolinks:load ready', function() {
// Apply to Importer and Exporter views
$('button#err_toggle').click(function() {
$('#error_trace').toggle();
});
+
$('button#fm_toggle').click(function() {
$('#field_mapping').toggle();
});
+
$('#bulkraxItemModal').on('show.bs.modal', function (event) {
- var button = $(event.relatedTarget) // Button that triggered the modal
- var recipient = button.data('entry-id') // Extract info from data-* attributes
+ var button = $(event.relatedTarget); // Button that triggered the modal
+ var recipient = button.data('entry-id'); // Extract info from data-* attributes
// If necessary, you could initiate an AJAX request here (and then do the updating in a callback).
// Update the modal's content. We'll use jQuery here, but you could use a data binding library or other methods instead.
- var modal = $(this)
+ var modal = $(this);
modal.find('a').each(function() {
- this.href = this.href.replace(/\d+\?/, recipient + '?')
- })
- return true
- })
+ this.href = this.href.replace(/\d+\?/, recipient + '?');
+ });
+ return true;
+ });
});