Skip to content

Commit a63343d

Browse files
authored
Merge pull request #2 from Maxofil/master
js fix
2 parents 067b6a9 + ffc25ae commit a63343d

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

assets/genericDropdown.js

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1-
$(el).find('select[name ="genericDropdown"]').change(function (event) {
2-
$(this).closest('form').netteAjax(event);
3-
});
1+
(function ($) {
2+
$.fn.genericDropdown = function (options) {
3+
$(this).on('change', function() {
4+
$(this).closest('form').netteAjax(event);
5+
});
6+
}
7+
})(jQuery);

0 commit comments

Comments
 (0)