Skip to content

Commit

Permalink
Set jquery alias so geonames lookup code will work #810
Browse files Browse the repository at this point in the history
  • Loading branch information
rlskoeser committed Apr 18, 2024
1 parent 5394ce5 commit 17b35ac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mep/people/static/admin/geonames-lookup.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
/* NOTE: this logic is currently specific to country editing */

// alias jquery to $ for convenience
const $ = jQuery;

$(document).on('select2:select', function(evt) { // fixme: restrict to .geonames-lookup ?
var data = evt.params.data;
// update link display and target
Expand Down

0 comments on commit 17b35ac

Please sign in to comment.