@@ -62,15 +62,15 @@ define([
62
62
$ ( document ) . off ( 'click' , this . wrapSelector ( '.vp-rs-df-refresh' ) ) ;
63
63
$ ( document ) . off ( 'change' , this . wrapSelector ( '#vp_rsType' ) ) ;
64
64
$ ( document ) . off ( 'change' , this . wrapSelector ( '#vp_rsIndex' ) ) ;
65
- $ ( document ) . off ( 'click' , this . wrapSelector ( '#vp_rsIndexSelect ' ) ) ;
65
+ $ ( document ) . off ( 'click' , this . wrapSelector ( '#vp_rsIndex ' ) ) ;
66
66
$ ( document ) . off ( 'change' , this . wrapSelector ( '#vp_rsColumns' ) ) ;
67
- $ ( document ) . off ( 'click' , this . wrapSelector ( '#vp_rsColumnsSelect ' ) ) ;
67
+ $ ( document ) . off ( 'click' , this . wrapSelector ( '#vp_rsColumns ' ) ) ;
68
68
$ ( document ) . off ( 'change' , this . wrapSelector ( '#vp_rsValues' ) ) ;
69
- $ ( document ) . off ( 'click' , this . wrapSelector ( '#vp_rsValuesSelect ' ) ) ;
69
+ $ ( document ) . off ( 'click' , this . wrapSelector ( '#vp_rsValues ' ) ) ;
70
70
$ ( document ) . off ( 'change' , this . wrapSelector ( '#vp_rsIdVars' ) ) ;
71
- $ ( document ) . off ( 'click' , this . wrapSelector ( '#vp_rsIdVarsSelect ' ) ) ;
71
+ $ ( document ) . off ( 'click' , this . wrapSelector ( '#vp_rsIdVars ' ) ) ;
72
72
$ ( document ) . off ( 'change' , this . wrapSelector ( '#vp_rsValueVars' ) ) ;
73
- $ ( document ) . off ( 'click' , this . wrapSelector ( '#vp_rsValueVarsSelect ' ) ) ;
73
+ $ ( document ) . off ( 'click' , this . wrapSelector ( '#vp_rsValueVars ' ) ) ;
74
74
$ ( document ) . off ( 'change' , this . wrapSelector ( '#vp_rsUserOption' ) ) ;
75
75
$ ( document ) . off ( 'change' , this . wrapSelector ( '#vp_rsAllocateTo' ) ) ;
76
76
$ ( document ) . off ( 'change' , this . wrapSelector ( '#vp_rsResetIndex' ) ) ;
@@ -135,7 +135,7 @@ define([
135
135
} ) ;
136
136
137
137
// index select button event
138
- $ ( document ) . on ( 'click' , this . wrapSelector ( '#vp_rsIndexSelect ' ) , function ( ) {
138
+ $ ( document ) . on ( 'click' , this . wrapSelector ( '#vp_rsIndex ' ) , function ( ) {
139
139
var targetVariable = [ that . state . variable ] ;
140
140
var excludeList = [ ...that . state . pivot . columns , ...that . state . pivot . values ] . map ( obj => obj . code ) ;
141
141
that . openColumnSelector ( targetVariable , $ ( that . wrapSelector ( '#vp_rsIndex' ) ) , 'Select columns' , excludeList ) ;
@@ -148,7 +148,7 @@ define([
148
148
} ) ;
149
149
150
150
// columns select button event
151
- $ ( document ) . on ( 'click' , this . wrapSelector ( '#vp_rsColumnsSelect ' ) , function ( ) {
151
+ $ ( document ) . on ( 'click' , this . wrapSelector ( '#vp_rsColumns ' ) , function ( ) {
152
152
var targetVariable = [ that . state . variable ] ;
153
153
var excludeList = [ ...that . state . pivot . index , ...that . state . pivot . values ] . map ( obj => obj . code ) ;
154
154
that . openColumnSelector ( targetVariable , $ ( that . wrapSelector ( '#vp_rsColumns' ) ) , 'Select columns' , excludeList ) ;
@@ -161,7 +161,7 @@ define([
161
161
} ) ;
162
162
163
163
// values select button event
164
- $ ( document ) . on ( 'click' , this . wrapSelector ( '#vp_rsValuesSelect ' ) , function ( ) {
164
+ $ ( document ) . on ( 'click' , this . wrapSelector ( '#vp_rsValues ' ) , function ( ) {
165
165
var targetVariable = [ that . state . variable ] ;
166
166
var excludeList = [ ...that . state . pivot . index , ...that . state . pivot . columns ] . map ( obj => obj . code ) ;
167
167
that . openColumnSelector ( targetVariable , $ ( that . wrapSelector ( '#vp_rsValues' ) ) , 'Select columns' , excludeList ) ;
@@ -174,7 +174,7 @@ define([
174
174
} ) ;
175
175
176
176
// id vars select button event
177
- $ ( document ) . on ( 'click' , this . wrapSelector ( '#vp_rsIdVarsSelect ' ) , function ( ) {
177
+ $ ( document ) . on ( 'click' , this . wrapSelector ( '#vp_rsIdVars ' ) , function ( ) {
178
178
var targetVariable = [ that . state . variable ] ;
179
179
var excludeList = that . state . melt . valueVars . map ( obj => obj . code ) ;
180
180
that . openColumnSelector ( targetVariable , $ ( that . wrapSelector ( '#vp_rsIdVars' ) ) , 'Select columns' , excludeList ) ;
@@ -187,7 +187,7 @@ define([
187
187
} ) ;
188
188
189
189
// value vars select button event
190
- $ ( document ) . on ( 'click' , this . wrapSelector ( '#vp_rsValueVarsSelect ' ) , function ( ) {
190
+ $ ( document ) . on ( 'click' , this . wrapSelector ( '#vp_rsValueVars ' ) , function ( ) {
191
191
var targetVariable = [ that . state . variable ] ;
192
192
var excludeList = that . state . melt . idVars . map ( obj => obj . code ) ;
193
193
that . openColumnSelector ( targetVariable , $ ( that . wrapSelector ( '#vp_rsValueVars' ) ) , 'Select columns' , excludeList ) ;
0 commit comments