2
2
//define context menu functions
3
3
window . Widgets . Panel . Filter = { } ;
4
4
5
- ; ( function ( $ , ns , d3 , panelUtilsNs , document , window ) {
5
+ ; ( function ( $ , ns , d3 , panelUtilsNs , eventNs , document , window ) {
6
6
7
7
ns . selectorComponent = '#filter_panel' ;
8
8
@@ -54,7 +54,27 @@ window.Widgets.Panel.Filter = {};
54
54
panelUtilsNs . theme = ns . options . dark_theme
55
55
}
56
56
57
+ //init event buttons
58
+ const $event_buttons = $component . find ( '#toggle_options' ) ;
59
+ $event_buttons . find ( '#base' ) . on ( 'click' , function ( d ) {
60
+
61
+
62
+ const id = $ ( this ) . attr ( 'id' ) ;
63
+ const payload = {
64
+ action : 'click' ,
65
+ id : id ,
66
+ type : 'button'
67
+ }
68
+ const topic = "form-identity-toggle-item"
69
+ const eventName = "form-identity-toggle-item" ;
70
+ const config = "section_base_required" ;
71
+ const action = "BUTTON_CLICK" ;
72
+ const data = eventNs . compileEventData ( payload , eventName , action , id , config ) ;
73
+
74
+ eventNs . raiseEvent ( eventName , data ) ;
75
+ } ) ;
76
+
57
77
console . groupEnd ( ) ;
58
78
}
59
79
60
- } ) ( window . jQuery , window . Widgets . Panel . Filter , window . d3 , window . Widgets . Panel . Utils , document , window )
80
+ } ) ( window . jQuery , window . Widgets . Panel . Filter , window . d3 , window . Widgets . Panel . Utils , window . Widgets . Events , document , window )
0 commit comments