Skip to content

Commit 4192864

Browse files
committed
Added alert on snippet insert
1 parent 5f77d65 commit 4192864

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

notebook-snippet-manager.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,21 @@ define(['base/js/namespace', 'jquery', 'base/js/dialog'], function(Jupyter, $, d
5353
}
5454

5555
function add_cell_from_snippet_manager() {
56+
var selected_index = Jupyter.notebook.get_selected_index();
57+
58+
var modal_content = $('<p/>').html('Select a snippet to insert.');
59+
60+
dialog.modal({
61+
title: 'Select A Snippet to Include',
62+
body: modal_content,
63+
buttons: {
64+
'Insert Snippet': {
65+
'class': 'btn-primary',
66+
'click': function() {
67+
}
68+
}
69+
}
70+
});
5671
}
5772

5873
function place_snippet_manager_buttons() {

0 commit comments

Comments
 (0)