Skip to content

Commit

Permalink
some little cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
briehl committed Nov 17, 2017
1 parent c3ab263 commit 31ed647
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,6 @@ define([
this.workspaceRef = Jupyter.narrative.workspaceRef;
this.workspaceId = Jupyter.narrative.workspaceId;

// Doesn't appear to be used.
// $(document).on(
// 'copyThis.Narrative', function (e, panel, active, jump) {
// this.copyThisNarrative(panel, active, jump);
// }.bind(this)
// );

$([Jupyter.events]).on(
'notebook_saved.Notebook', function (e) {
this.refresh();
Expand Down Expand Up @@ -322,7 +315,6 @@ define([

renderPanel: function () {
var self = this;
// divider = '<hr class="kb-data-list-row-hr">';

if (self.$narPanel && self.narData) {
self.$narPanel.children().detach(); // this will also hide any loading messages if they exist
Expand All @@ -334,7 +326,6 @@ define([
if (!self.narData.mine[k].$div) {
self.narData.mine[k].$div = self.renderNarrativeDiv(self.narData.mine[k]);
}
// self.$narPanel.append(divider);
self.$narPanel.append(self.narData.mine[k].$div);
}
}
Expand All @@ -346,12 +337,10 @@ define([
if (!self.narData.shared[k].$div) {
self.narData.shared[k].$div = self.renderNarrativeDiv(self.narData.shared[k]);
}
// self.$narPanel.append(divider);
self.$narPanel.append(self.narData.shared[k].$div);
}
}


// ADVANCED TAB: allows users to set the default narrative for any workspace
var $advancedDiv = $('<div>').hide();
var $advLink = $('<h4>').append('Show Advanced Controls');
Expand Down

0 comments on commit 31ed647

Please sign in to comment.