Skip to content

Commit 9720490

Browse files
author
Maxofil
committed
js v2
1 parent defaab0 commit 9720490

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

assets/genericDropdown.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
refreshPlugins.push(function(el) {
2-
$(el).find('select[name ="genericDropdown"]').change(function (event) {
3-
$(this).closest('form').netteAjax(event);
4-
});
5-
});
1+
(function ($) {
2+
$.fn.genericDropdown = function (options) {
3+
return (function() {
4+
$(el).find('select[name ="genericDropdown"]').change(function (event) {
5+
$(this).closest('form').netteAjax(event);
6+
});
7+
});
8+
}
9+
})(jQuery);

0 commit comments

Comments
 (0)