Skip to content

Commit

Permalink
Further cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
bartTC committed Jun 21, 2019
1 parent 9b30524 commit f60683f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dynamic_raw_id/static/dynamic_raw_id/js/dynamic_raw_id.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* global django, console */
/* global django, console, showRelatedObjectLookupPopup */

/**
* Overwrite Django's `dismissRelatedLookupPopup` to trigger
Expand Down Expand Up @@ -72,7 +72,7 @@ function dismissRelatedLookupPopup(win, chosenId) {
});

// Clear both the input field and the labels
$('.dynamic_raw_id-clear-field').click(function(e) {
$('.dynamic_raw_id-clear-field').click(function() {
const $this = $(this);
$this
.parent()
Expand All @@ -93,7 +93,7 @@ function dismissRelatedLookupPopup(win, chosenId) {

// Set the focus into the input field
$(this).parent().find('input').focus();

return false;
});

Expand Down

0 comments on commit f60683f

Please sign in to comment.