Skip to content

Commit

Permalink
Merge pull request #1 from gnestor/patch-1
Browse files Browse the repository at this point in the history
Upgrade cell's `editable` and `deletable` metadata if not defined
  • Loading branch information
yuvipanda authored Sep 14, 2016
2 parents 66fa05e + 767942c commit 2237c8e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions notebook/static/notebook/js/cell.js
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,14 @@ define([
if (data.metadata !== undefined) {
this.metadata = data.metadata;
}
// upgrade cell's editable metadata if not defined
if (this.metadata.editable === undefined) {
this.metadata.editable = this.is_editable();
}
// upgrade cell's deletable metadata if not defined
if (this.metadata.deletable === undefined) {
this.metadata.deletable = this.is_deletable();
}
};


Expand Down

0 comments on commit 2237c8e

Please sign in to comment.