mirror of
https://github.com/jupyter/notebook.git
synced 2025-02-17 12:39:54 +08:00
Merge pull request #869 from parleur/master
Remove unused marked related code
This commit is contained in:
commit
85cc88684d
@ -25,7 +25,6 @@ define([
|
||||
NotebookNotificationArea.prototype.init_notification_widgets = function () {
|
||||
this.init_kernel_notification_widget();
|
||||
this.init_notebook_notification_widget();
|
||||
this.init_marked_cells_notification_widget();
|
||||
};
|
||||
|
||||
/**
|
||||
@ -217,7 +216,7 @@ define([
|
||||
.css('padding', '1em')
|
||||
.addClass('output_scroll');
|
||||
msg.append(cm_elem);
|
||||
cm = CodeMirror(cm_elem.get(0), {
|
||||
cm = new CodeMirror(cm_elem.get(0), {
|
||||
mode: "python",
|
||||
readOnly : true
|
||||
});
|
||||
@ -340,22 +339,5 @@ define([
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* Initialize the notification widget for marked cells.
|
||||
*
|
||||
* @method init_marked_cells_notification_widget
|
||||
*/
|
||||
NotebookNotificationArea.prototype.init_marked_cells_notification_widget = function () {
|
||||
var mcnw = this.widget('marked_cells');
|
||||
|
||||
this.events.on('marked_offscreen.Cell', function (evt, num) {
|
||||
if (num === 0) {
|
||||
mcnw.hide();
|
||||
} else {
|
||||
mcnw.set_message(num + " marked cells offscreen", undefined, undefined, {class: 'info'});
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
return {'NotebookNotificationArea': NotebookNotificationArea};
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user