Skip to content

Commit b3457a0

Browse files
Mokkapati, Praneet(ES)Mokkapati, Praneet(ES)
authored andcommitted
Disabling Slide Type changes, when a cell is not editable
1 parent 24dd9d6 commit b3457a0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

notebook/static/notebook/js/celltoolbar.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,9 @@ define([
446446
var button_container = $(div);
447447
var lbl = $("<label/>").append($('<span/>').text(label));
448448
var select = $('<select/>');
449+
if(!cell.is_editable()){
450+
select.attr("disabled","disabled")
451+
}
449452
for(var i=0; i < list_list.length; i++){
450453
var opt = $('<option/>')
451454
.attr('value', list_list[i][1])

0 commit comments

Comments
 (0)