Skip to content

Commit

Permalink
Merge pull request #2 from Maxofil/master
Browse files Browse the repository at this point in the history
js fix
  • Loading branch information
peldax authored May 21, 2020
2 parents 067b6a9 + ffc25ae commit a63343d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions assets/genericDropdown.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
$(el).find('select[name ="genericDropdown"]').change(function (event) {
$(this).closest('form').netteAjax(event);
});
(function ($) {
$.fn.genericDropdown = function (options) {
$(this).on('change', function() {
$(this).closest('form').netteAjax(event);
});
}
})(jQuery);

0 comments on commit a63343d

Please sign in to comment.