##// END OF EJS Templates
add future-warning about multiple notebooks
MinRK -
Show More
@@ -1025,6 +1025,27 b' var IPython = (function (IPython) {'
1025 new_cell.fromJSON(cell_data);
1025 new_cell.fromJSON(cell_data);
1026 };
1026 };
1027 };
1027 };
1028 if (data.worksheets.length > 1) {
1029 var dialog = $('<div/>');
1030 dialog.html("This notebook has " + data.worksheets.length + " worksheets, " +
1031 "but this version of IPython can only handle the first. " +
1032 "If you save this notebook, worksheets after the first will be lost."
1033 );
1034 this.element.append(dialog);
1035 dialog.dialog({
1036 resizable: false,
1037 modal: true,
1038 title: "Multiple worksheets",
1039 closeText: "",
1040 close: function(event, ui) {$(this).dialog('destroy').remove();},
1041 buttons : {
1042 "OK": function () {
1043 $(this).dialog('close');
1044 }
1045 },
1046 width: 400
1047 });
1048 }
1028 };
1049 };
1029
1050
1030
1051
General Comments 0
You need to be logged in to leave comments. Login now