@@ -141,7 +141,7 @@ define([
141
141
} ) ;
142
142
143
143
// groupby select button event
144
- $ ( document ) . on ( 'click' , this . wrapSelector ( '#vp_gbBySelect ' ) , function ( ) {
144
+ $ ( document ) . on ( 'click' , this . wrapSelector ( '#vp_gbBy ' ) , function ( ) {
145
145
that . openColumnSelector ( $ ( that . wrapSelector ( '#vp_gbBy' ) ) , 'Select columns to group' ) ;
146
146
} ) ;
147
147
@@ -180,7 +180,7 @@ define([
180
180
} ) ;
181
181
182
182
// display select button event
183
- $ ( document ) . on ( 'click' , this . wrapSelector ( '#vp_gbDisplaySelect ' ) , function ( ) {
183
+ $ ( document ) . on ( 'click' , this . wrapSelector ( '#vp_gbDisplay ' ) , function ( ) {
184
184
that . openColumnSelector ( $ ( that . wrapSelector ( '#vp_gbDisplay' ) ) , 'Select columns to display' ) ;
185
185
} ) ;
186
186
@@ -268,7 +268,7 @@ define([
268
268
} ) ;
269
269
270
270
// edit target columns
271
- $ ( document ) . on ( 'click' , this . wrapSelector ( '.vp-gb-adv-col-selector ' ) , function ( ) {
271
+ $ ( document ) . on ( 'click' , this . wrapSelector ( '.vp-gb-adv-col' ) , function ( ) {
272
272
var includeList = that . state . display ;
273
273
if ( includeList && includeList . length > 0 ) {
274
274
includeList = includeList . map ( col => col . code ) ;
@@ -309,7 +309,7 @@ define([
309
309
} ) ;
310
310
311
311
// edit columns naming
312
- $ ( document ) . on ( 'click' , this . wrapSelector ( '.vp-gb-adv-naming-selector ' ) , function ( ) {
312
+ $ ( document ) . on ( 'click' , this . wrapSelector ( '.vp-gb-adv-naming' ) , function ( ) {
313
313
var parentDiv = $ ( this ) . parent ( ) ;
314
314
var columns = $ ( parentDiv ) . find ( '.vp-gb-adv-col' ) . data ( 'list' ) ;
315
315
if ( columns && columns . length > 0 ) {
@@ -318,7 +318,7 @@ define([
318
318
var method = $ ( parentDiv ) . find ( '.vp-gb-adv-method' ) . val ( ) ;
319
319
if ( ! method || method == '' || method == "''" ) {
320
320
// set focus on selecting method tag
321
- $ ( parentDiv ) . find ( '.vp-gb-adv-method-selector ' ) . focus ( ) ;
321
+ $ ( parentDiv ) . find ( '.vp-gb-adv-method' ) . focus ( ) ;
322
322
return ;
323
323
}
324
324
that . openNamingPopup ( $ ( parentDiv ) . find ( '.vp-gb-adv-naming' ) , columns , method ) ;
@@ -341,12 +341,12 @@ define([
341
341
$ ( document ) . off ( 'change' , this . wrapSelector ( '#vp_gbVariable' ) ) ;
342
342
$ ( document ) . off ( 'click' , this . wrapSelector ( '.vp-gb-df-refresh' ) ) ;
343
343
$ ( document ) . off ( 'change' , this . wrapSelector ( '#vp_gbBy' ) ) ;
344
- $ ( document ) . off ( 'click' , this . wrapSelector ( '#vp_gbBySelect ' ) ) ;
344
+ $ ( document ) . off ( 'click' , this . wrapSelector ( '#vp_gbBy ' ) ) ;
345
345
$ ( document ) . off ( 'change' , this . wrapSelector ( '#vp_gbByGrouper' ) ) ;
346
346
$ ( document ) . off ( 'change' , this . wrapSelector ( '#vp_gbByGrouperNumber' ) ) ;
347
347
$ ( document ) . off ( 'change' , this . wrapSelector ( '#vp_gbByGrouperPeriod' ) ) ;
348
348
$ ( document ) . off ( 'change' , this . wrapSelector ( '#vp_gbDisplay' ) ) ;
349
- $ ( document ) . off ( 'click' , this . wrapSelector ( '#vp_gbDisplaySelect ' ) ) ;
349
+ $ ( document ) . off ( 'click' , this . wrapSelector ( '#vp_gbDisplay ' ) ) ;
350
350
$ ( document ) . off ( 'change' , this . wrapSelector ( '#vp_gbMethodSelect' ) ) ;
351
351
$ ( document ) . off ( 'change' , this . wrapSelector ( '#vp_gbAdvanced' ) ) ;
352
352
$ ( document ) . off ( 'change' , this . wrapSelector ( '#vp_gbAllocateTo' ) ) ;
@@ -355,11 +355,11 @@ define([
355
355
356
356
$ ( document ) . off ( 'click' , this . wrapSelector ( '#vp_gbAdvAdd' ) ) ;
357
357
$ ( document ) . off ( 'change' , this . wrapSelector ( '.vp-gb-adv-col' ) ) ;
358
- $ ( document ) . off ( 'click' , this . wrapSelector ( '.vp-gb-adv-col-selector ' ) ) ;
358
+ $ ( document ) . off ( 'click' , this . wrapSelector ( '.vp-gb-adv-col' ) ) ;
359
359
$ ( document ) . off ( 'change' , this . wrapSelector ( '.vp-gb-adv-method-selector' ) ) ;
360
360
$ ( document ) . off ( 'click' , this . wrapSelector ( '.vp-gb-adv-method-return' ) ) ;
361
361
$ ( document ) . off ( 'change' , this . wrapSelector ( '.vp-gb-adv-naming' ) ) ;
362
- $ ( document ) . off ( 'click' , this . wrapSelector ( '.vp-gb-adv-naming-selector ' ) ) ;
362
+ $ ( document ) . off ( 'click' , this . wrapSelector ( '.vp-gb-adv-naming' ) ) ;
363
363
$ ( document ) . off ( 'click' , this . wrapSelector ( '.vp-gb-adv-item-delete' ) ) ;
364
364
$ ( document ) . off ( 'click.' + this . uuid ) ;
365
365
}
@@ -396,9 +396,8 @@ define([
396
396
var page = new com_String ( ) ;
397
397
page . appendFormatLine ( '<div class="{0}">' , 'vp-gb-adv-item' ) ;
398
398
// target columns
399
- page . appendFormatLine ( '<input type="text" class="{0}" placeholder="{1}" title="{2}" disabled />'
399
+ page . appendFormatLine ( '<input type="text" class="{0}" placeholder="{1}" title="{2}" readonly />'
400
400
, 'vp-gb-adv-col' , 'Column list' , 'Apply All columns, if not selected' ) ;
401
- page . appendFormatLine ( '<button class="{0} {1}">{2}</button>' , 'vp-gb-adv-col-selector' , 'vp-button w50' , 'Edit' ) ;
402
401
// method select
403
402
page . appendFormatLine ( '<select class="{0}">' , 'vp-gb-adv-method-selector' ) ;
404
403
var defaultMethod = '' ;
@@ -418,8 +417,7 @@ define([
418
417
, '/nbextensions/visualpython/img/arrow_left.svg' , 'vp-gb-adv-method-return' , 'Return to select method' ) ;
419
418
page . appendLine ( '</div>' ) ;
420
419
// naming
421
- page . appendFormatLine ( '<input type="text" class="{0}" placeholder="{1}" data-dict={} disabled/>' , 'vp-gb-adv-naming' , 'Display name' ) ;
422
- page . appendFormatLine ( '<button class="{0} {1}">{2}</button>' , 'vp-gb-adv-naming-selector' , 'vp-button w50' , 'Edit' ) ;
420
+ page . appendFormatLine ( '<input type="text" class="{0}" placeholder="{1}" data-dict={} readonly/>' , 'vp-gb-adv-naming' , 'Display name' ) ;
423
421
// delete button
424
422
page . appendFormatLine ( '<div class="{0} {1}"><img src="{2}"/></div>' , 'vp-gb-adv-item-delete' , 'vp-cursor' , '/nbextensions/visualpython/img/close_small.svg' ) ;
425
423
page . appendLine ( '</div>' ) ;
0 commit comments