Browse Source

Fix django.jQuery select change events

Denis K 8 years ago
parent
commit
a0d8b503af
1 changed files with 4 additions and 0 deletions
  1. 4 0
      jet/static/jet/js/src/features/selects.js

+ 4 - 0
jet/static/jet/js/src/features/selects.js

@@ -189,6 +189,10 @@ Select2.prototype = {
             };
         }
 
+        $select.on('change', function(e) {
+            django.jQuery($select.get(0)).trigger(e);
+        });
+
         $select.select2(settings);
     },
     initSelect2: function() {