Преглед изворни кода

HUE-186. Add functionality to DataGroupToggle
* Add element.show/element.hide to selectHandler *

Marcus McLaughlin пре 15 година
родитељ
комит
2fcc85f80d

+ 5 - 1
desktop/core/static/js/Source/BehaviorFilters/Behavior.DataGroupToggle.js

@@ -46,7 +46,11 @@ Behavior.addGlobalFilters({
                                 return;
                         }
                         sections.each(function(section) {
-                                section.setStyle('display', show.contains(section) ? section.get('data', 'display') : 'none');
+                                if(show.contains(section)) {
+                                        section.show();
+                                } else {
+                                        section.hide();
+                                }
                         });
                 };
                 var linkHandler = function(event) {