From f60683f270f53a5333a3c6edd448a3d20c01578f Mon Sep 17 00:00:00 2001 From: Martin Mahner Date: Fri, 21 Jun 2019 14:31:33 +0200 Subject: [PATCH] Further cleanup. --- dynamic_raw_id/static/dynamic_raw_id/js/dynamic_raw_id.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dynamic_raw_id/static/dynamic_raw_id/js/dynamic_raw_id.js b/dynamic_raw_id/static/dynamic_raw_id/js/dynamic_raw_id.js index 74398a6..31aba60 100644 --- a/dynamic_raw_id/static/dynamic_raw_id/js/dynamic_raw_id.js +++ b/dynamic_raw_id/static/dynamic_raw_id/js/dynamic_raw_id.js @@ -1,4 +1,4 @@ -/* global django, console */ +/* global django, console, showRelatedObjectLookupPopup */ /** * Overwrite Django's `dismissRelatedLookupPopup` to trigger @@ -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() @@ -93,7 +93,7 @@ function dismissRelatedLookupPopup(win, chosenId) { // Set the focus into the input field $(this).parent().find('input').focus(); - + return false; });