Skip to content

Commit

Permalink
Merge pull request #153 from Carreau/userfriendly
Browse files Browse the repository at this point in the history
Better message when the on disk notebook have changed.
  • Loading branch information
minrk committed Jun 12, 2015
2 parents de9d45f + d54caf1 commit 46d19cf
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion notebook/static/notebook/js/notebook.js
Original file line number Diff line number Diff line change
Expand Up @@ -1943,8 +1943,16 @@ define(function (require) {
notebook: that,
keyboard_manager: that.keyboard_manager,
title: "Notebook changed",
body: "Notebook has changed since we opened it. Overwrite the changed file?",
body: "The notebook file has changed on disk since the last time we opened or saved it. "+
"Do you want to overwrite the file on disk with the version open here, or load "+
"the version on disk (reload the page) ?",
buttons: {
Reload: {
class: 'btn-warning',
click: function() {
window.location.reload();
}
},
Cancel: {},
Overwrite: {
class: 'btn-danger',
Expand Down

0 comments on commit 46d19cf

Please sign in to comment.