File tree 4 files changed +10
-6
lines changed
4 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 91
91
< label for ="vp_bdAllocateTo " class ="w100 "> Allocate to</ label >
92
92
< input type ="text " id ="vp_bdAllocateTo " placeholder ="New variable name ">
93
93
< label > < input type ="checkbox " id ="vp_bdResetIndex "> < span > Reset Index</ span > </ label >
94
- < select id ="vp_bdWithoutColumn " class ="vp-select " style ="width: 130px; ">
94
+ < select id ="vp_bdWithoutColumn " class ="vp-select " style ="width: 130px; " disabled >
95
95
< option value ="True " selected > Without column</ option >
96
96
< option value =""> With column</ option >
97
97
</ select >
Original file line number Diff line number Diff line change 79
79
< label for ="vp_rsAllocateTo " class ="w100 "> Allocate to</ label >
80
80
< input type ="text " id ="vp_rsAllocateTo " placeholder ="New variable name ">
81
81
< label > < input type ="checkbox " id ="vp_rsResetIndex "> < span > Reset Index</ span > </ label >
82
- < select id ="vp_rsWithoutColumn " class ="vp-select " style ="width: 130px; ">
82
+ < select id ="vp_rsWithoutColumn " class ="vp-select " style ="width: 130px; " disabled >
83
83
< option value ="True " selected > Without column</ option >
84
84
< option value =""> With column</ option >
85
85
</ select >
Original file line number Diff line number Diff line change @@ -308,7 +308,9 @@ define([
308
308
309
309
// reset index checkbox event
310
310
$ ( document ) . on ( 'change' , this . wrapSelector ( '#vp_bdResetIndex' ) , function ( ) {
311
- that . state . resetIndex = $ ( this ) . prop ( 'checked' ) ;
311
+ let isChecked = $ ( this ) . prop ( 'checked' ) ;
312
+ $ ( that . wrapSelector ( '#vp_bdWithoutColumn' ) ) . prop ( 'disabled' , ! isChecked ) ;
313
+ that . state . resetIndex = isChecked ;
312
314
} ) ;
313
315
314
316
// with/without column select event
@@ -334,7 +336,7 @@ define([
334
336
335
337
renderDataPage ( renderedText , isHtml = true ) {
336
338
var tag = new com_String ( ) ;
337
- tag . appendFormatLine ( '<div class="{0} vp-close-on-blur vp-scrollbar">' , 'rendered_html ' ) ; // 'rendered_html' style from jupyter output area
339
+ tag . appendFormatLine ( '<div class="{0} vp-close-on-blur vp-scrollbar">' , 'vp_rendered_html ' ) ; // 'rendered_html' style from jupyter output area
338
340
if ( isHtml ) {
339
341
tag . appendLine ( renderedText ) ;
340
342
} else {
Original file line number Diff line number Diff line change @@ -219,7 +219,9 @@ define([
219
219
220
220
// reset index checkbox event
221
221
$ ( document ) . on ( 'change' , this . wrapSelector ( '#vp_rsResetIndex' ) , function ( ) {
222
- that . state . resetIndex = $ ( this ) . prop ( 'checked' ) ;
222
+ let isChecked = $ ( this ) . prop ( 'checked' ) ;
223
+ $ ( that . wrapSelector ( '#vp_rsWithoutColumn' ) ) . prop ( 'disabled' , ! isChecked ) ;
224
+ that . state . resetIndex = isChecked ;
223
225
} ) ;
224
226
225
227
// with/without column select event
@@ -246,7 +248,7 @@ define([
246
248
247
249
renderDataPage ( renderedText , isHtml = true ) {
248
250
var tag = new com_String ( ) ;
249
- tag . appendFormatLine ( '<div class="{0} vp-close-on-blur vp-scrollbar">' , 'rendered_html ' ) ; // 'rendered_html' style from jupyter output area
251
+ tag . appendFormatLine ( '<div class="{0} vp-close-on-blur vp-scrollbar">' , 'vp_rendered_html ' ) ; // 'rendered_html' style from jupyter output area
250
252
if ( isHtml ) {
251
253
tag . appendLine ( renderedText ) ;
252
254
} else {
You can’t perform that action at this time.
0 commit comments