소스 검색

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

Marcus McLaughlin 15 년 전
부모
커밋
2fcc85f80d
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      desktop/core/static/js/Source/BehaviorFilters/Behavior.DataGroupToggle.js

+ 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) {