Explorar el Código

Fix select class name override

Denis K hace 8 años
padre
commit
75b1a29702
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      jet/static/jet/js/src/layout-updaters/toolbar.js

+ 3 - 1
jet/static/jet/js/src/layout-updaters/toolbar.js

@@ -29,13 +29,15 @@ ToolbarUpdater.prototype = {
             if ($element.prop('tagName') == 'H3') {
             if ($element.prop('tagName') == 'H3') {
                 filterName = $element.text();
                 filterName = $element.text();
             } else if ($element.prop('tagName') == 'UL') {
             } else if ($element.prop('tagName') == 'UL') {
-                var $select = $('<select>').addClass('changelist-filter-select');
+                var $select = $('<select>');
                 var $items = $element.find('li');
                 var $items = $element.find('li');
 
 
                 $.each($element.prop('attributes'), function() {
                 $.each($element.prop('attributes'), function() {
                     $select.attr(this.name, this.value);
                     $select.attr(this.name, this.value);
                 });
                 });
 
 
+                $select.addClass('changelist-filter-select');
+
                 if ($items.filter('.selected').length > 1) {
                 if ($items.filter('.selected').length > 1) {
                     $select.attr('multiple', true);
                     $select.attr('multiple', true);
                 }
                 }