We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5af2343 commit e6e0585Copy full SHA for e6e0585
notebook/static/notebook/js/notebook.js
@@ -2920,6 +2920,14 @@ define([
2920
click: function() {
2921
var nb_path = d.find('input').val();
2922
var nb_name = nb_path.split('/').slice(-1).pop();
2923
+ if (!nb_name) {
2924
+ $(".save-message").html(
2925
+ $("<span>")
2926
+ .attr("style", "color:red;")
2927
+ .text($(".save-message").text())
2928
+ );
2929
+ return false;
2930
+ }
2931
// If notebook name does not contain extension '.ipynb' add it
2932
var ext = utils.splitext(nb_name)[1];
2933
if (ext === '') {
0 commit comments