@@ -365,11 +365,13 @@ define([
365
365
* @param gutter not used
366
366
*/
367
367
function changeEvent ( cm , line , gutter ) {
368
+ if ( gutter === "CodeMirror-foldgutter" ) return ; /* Don't collide with codefolding extension */
369
+
368
370
var cmline = cm . doc . children [ 0 ] . lines [ line ] ;
369
371
if ( cmline === undefined ) {
370
372
return ;
371
373
}
372
- var cell = $ ( cm . element ) . closest ( '.cell' ) . data ( 'cell' ) ;
374
+ var cell = $ ( cm . display . gutters ) . closest ( '.cell' ) . data ( 'cell' ) ;
373
375
if ( cell . metadata . run_control === undefined )
374
376
cell . metadata . run_control = { } ;
375
377
setCell ( cell , ! cell . metadata . run_control . marked ) ;
@@ -435,32 +437,32 @@ define([
435
437
var create_runtools_div = function ( ) {
436
438
var btn = '<div class="btn-toolbar">\
437
439
<div class="btn-group">\
438
- <button type="button" id="run_c" class="btn btn -primary fa fa-step-forward" title="Run current cell"></button>\
439
- <button type="button" id="run_ca" class="btn btn -primary fa icon-run-to" title="' +
440
+ <button type="button" id="run_c" class="btn-primary fa fa-step-forward" title="Run current cell"></button>\
441
+ <button type="button" id="run_ca" class="btn-primary fa icon-run-to" title="' +
440
442
'Run cells above (' + params [ "run_cells_above" ] + ')"</button>\
441
- <button type="button" id="run_cb" class="btn btn -primary fa icon-run-from" title="' +
443
+ <button type="button" id="run_cb" class="btn-primary fa icon-run-from" title="' +
442
444
'Run cells below (' + params [ "run_cells_below" ] + ')"</button>\
443
- <button type="button" id="run_a" class="btn btn -primary fa icon-run-all" title="' +
445
+ <button type="button" id="run_a" class="btn-primary fa icon-run-all" title="' +
444
446
'Run all cells (' + params [ "run_all_cells" ] + ')"</button>\
445
- <button type="button" id="run_af" class="btn btn -primary fa icon-run-all-forced" title="' +
447
+ <button type="button" id="run_af" class="btn-primary fa icon-run-all-forced" title="' +
446
448
'Run all - ignore errors (' + params [ "run_all_cells_ignore_errors" ] + ')"</button>\
447
- <button type="button" id="run_m" class="btn btn -primary fa icon-run-marked" title="' +
449
+ <button type="button" id="run_m" class="btn-primary fa icon-run-marked" title="' +
448
450
'Run marked codecells (' + params [ "run_marked_cells" ] + ')"</button>\
449
- <button type="button" id="interrupt_b" class="btn btn -primary fa fa-stop" title="' +
451
+ <button type="button" id="interrupt_b" class="btn-primary fa fa-stop" title="' +
450
452
'Stop execution (' + params [ "stop_execution" ] + ')"</button>\
451
453
</div>\
452
454
<div class="btn-group">\
453
- <button type="button" id="mark_toggle" class="btn btn -primary fa icon-mark-toggle" title="Mark single code cell"></button>\
454
- <button type="button" id="mark_all" class="btn btn -primary fa icon-mark-all" title="Mark all code cells"></button>\
455
- <button type="button" id="mark_none" class="btn btn -primary fa icon-mark-none" title="Unmark all code cells"></button>\
455
+ <button type="button" id="mark_toggle" class="btn-primary fa icon-mark-toggle" title="Mark single code cell"></button>\
456
+ <button type="button" id="mark_all" class="btn-primary fa icon-mark-all" title="Mark all code cells"></button>\
457
+ <button type="button" id="mark_none" class="btn-primary fa icon-mark-none" title="Unmark all code cells"></button>\
456
458
</div>\
457
459
<div class="btn-group">\
458
- <button type="button" id="show_input" class="btn btn -primary fa icon-show-input" title="Show input of code cell"></button>\
459
- <button type="button" id="hide_input" class="btn btn -primary fa icon-hide-input" title="Hide input of code cell"></button>\
460
- <button type="button" id="show_output" class="btn btn -primary fa icon-show-output" title="Show output of code cell"></button>\
461
- <button type="button" id="hide_output" class="btn btn -primary fa icon-hide-output" title="Hide output of code cell"></button>\
462
- <button type="button" id="lock_marked" class="btn btn -primary fa fa-lock" title="Lock marked cells"></button>\
463
- <button type="button" id="unlock_marked" class="btn btn -primary fa fa-unlock" title="Unlock marked cells"></button>\
460
+ <button type="button" id="show_input" class="btn-primary fa icon-show-input" title="Show input of code cell"></button>\
461
+ <button type="button" id="hide_input" class="btn-primary fa icon-hide-input" title="Hide input of code cell"></button>\
462
+ <button type="button" id="show_output" class="btn-primary fa icon-show-output" title="Show output of code cell"></button>\
463
+ <button type="button" id="hide_output" class="btn-primary fa icon-hide-output" title="Hide output of code cell"></button>\
464
+ <button type="button" id="lock_marked" class="btn-primary fa fa-lock" title="Lock marked cells"></button>\
465
+ <button type="button" id="unlock_marked" class="btn-primary fa fa-unlock" title="Unlock marked cells"></button>\
464
466
</div>\
465
467
</div>' ;
466
468
0 commit comments