Skip to content

Commit

Permalink
Fix linting errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
fsbraun committed Mar 20, 2024
1 parent 52e3513 commit 0b63993
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion filer/static/filer/js/addons/widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ if (django.jQuery) {

djQuery(function ($) {
var filer_clear = function (ev) {
ev.preventDefault();
var clearer = $(this);
var container = clearer.closest('.filerFile');
var input = container.find(':input');
Expand All @@ -21,6 +20,7 @@ djQuery(function ($) {
var dropzoneMessage = container.siblings('.dz-message');
var hiddenClass = 'hidden';

ev.preventDefault();
clearer.addClass(hiddenClass);
input.val('');
thumbnail.addClass(hiddenClass);
Expand Down
1 change: 1 addition & 0 deletions tests/requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ django-app-helper>=3.3.1
coverage
isort
flake8
packaging

0 comments on commit 0b63993

Please sign in to comment.