Skip to content

Commit

Permalink
fix set_last_checkpoint when no checkpoint
Browse files Browse the repository at this point in the history
closes #3260
  • Loading branch information
minrk committed May 2, 2013
1 parent 1ecd8a0 commit 31954d0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions IPython/frontend/html/notebook/static/js/savewidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ var IPython = (function (IPython) {
}

SaveWidget.prototype.set_last_checkpoint = function (checkpoint) {
if (!checkpoint) {
this.set_checkpoint_status("");
}
var d = new Date(checkpoint.last_modified);
this.set_checkpoint_status(
"Last Checkpoint: " + d.format('mmm dd HH:MM')
Expand Down

0 comments on commit 31954d0

Please sign in to comment.