Skip to content

Commit

Permalink
Merge pull request #3120 from projectblacklight/jslint
Browse files Browse the repository at this point in the history
Fix some javascript lint.
  • Loading branch information
cbeer authored Sep 12, 2024
2 parents 79d612f + 7ebd68a commit 3fe0ab0
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 15 deletions.
6 changes: 2 additions & 4 deletions app/assets/javascripts/spotlight/spotlight.esm.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/assets/javascripts/spotlight/spotlight.esm.js.map

Large diffs are not rendered by default.

6 changes: 2 additions & 4 deletions app/assets/javascripts/spotlight/spotlight.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/assets/javascripts/spotlight/spotlight.js.map

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ SirTrevor.Blocks.SolrDocumentsCarousel = (function(){
auto_play_images_interval_key: "auto-play-images-interval",
max_height_key: "max-height",

item_options: function() { return "" },

carouselCycleTimesInSeconds: {
values: [ 3, 5, 8, 12, 20 ],
selected: 5
Expand Down
2 changes: 1 addition & 1 deletion app/javascript/spotlight/admin/form_observer.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

(function($, undefined) {
(function($, _) {
'use strict';

/*
Expand Down
4 changes: 2 additions & 2 deletions app/javascript/spotlight/admin/search_typeahead.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { addImageSelector } from 'spotlight/admin/add_image_selector'
addAutocompleteBehavior($(this));
});

function addAutocompleteBehavior( typeAheadInput, settings ) {
function addAutocompleteBehavior( typeAheadInput, _ ) {
var settings = $.extend({
displayKey: 'title',
minLength: 0,
Expand Down Expand Up @@ -63,4 +63,4 @@ export function addAutocompletetoFeaturedImage(){
$(this).attr('type', 'text');
});
}
}
}

0 comments on commit 3fe0ab0

Please sign in to comment.