Skip to content

Commit

Permalink
Cleaned whitespaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel-KM authored and zerocrates committed Dec 10, 2019
1 parent 3feddda commit c953465
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions asset/js/csvimport.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,22 @@
// Remove old chosen html and rebind event.
sidebar.find('.chosen-container').remove();
sidebar.find('.chosen-select').chosen(chosenOptions);

// Rebind property selector.
$('.selector li.selector-parent').on('click', function(e) {
e.stopPropagation();
if ($(this).children('li')) {
$(this).toggleClass('show');
}
});

$('.selector-filter').on('keydown', function(e) {
if (e.keyCode == 13) {
e.stopPropagation();
e.preventDefault();
}
});

// Property selector, filter properties.
$('.selector-filter').on('keyup', (function() {
var timer = 0;
Expand Down Expand Up @@ -98,7 +98,7 @@
sidebar.html(defaultSidebarHtml);
rebindInputs(sidebar);
}

Omeka.openSidebar(sidebar);
populateSidebar();
});
Expand Down Expand Up @@ -244,7 +244,7 @@
// Looks like a stopPropagation on the selector-parent forces me to
// bind the event lower down the DOM, then work back up to the li.
var targetLi = $(this);

// First, check if the property is already added.
var hasMapping = activeElement.find('ul.mappings li[data-property-id="' + targetLi.data('property-id') + '"]');
if (hasMapping.length === 0) {
Expand Down Expand Up @@ -275,7 +275,7 @@
sidebarInput.parents('.option').addClass('batch-edit-touched');
}
});

$(document).on('click', '.reset-link', function(e) {
e.preventDefault();
var reset = $(this);
Expand Down Expand Up @@ -304,7 +304,7 @@
languageHiddenInput.prop('disabled', true);
}
}

sidebar.find('input[type="checkbox"]').each(function() {
var checkboxInput = $(this);
if (checkboxInput.hasClass('touched')) {
Expand All @@ -319,7 +319,7 @@
}
}
});

sidebar.find('select').each(function() {
var selectInput = $(this);
if (selectInput.hasClass('touched')) {
Expand Down Expand Up @@ -391,7 +391,7 @@
hasFlag = activeElement.find('ul.mappings li.' + flagLiClass);
}
}

if (hasFlag.length === 0) {
var index = activeElement.data('element-id');
flagName = flagName + "[" + index + "]";
Expand Down Expand Up @@ -431,7 +431,6 @@
}
}


function toggleActionOptions() {
var action = $('#action').val();
if (action === 'create') {
Expand All @@ -445,4 +444,5 @@
toggleActionOptions();
$('#action').change(toggleActionOptions);
});

})(jQuery);
2 changes: 1 addition & 1 deletion src/Form/MappingForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ public function init()
'name' => 'o:item_set',
'required' => false,
]);

$advancedSettingsInputFilter = $inputFilter->get('advanced-settings');
$advancedSettingsInputFilter->add([
'name' => 'action',
Expand Down

0 comments on commit c953465

Please sign in to comment.