Merge pull request #8006 from minrk/save-copy

trigger save before copy if there are unsaved changes.
pull/37/head
Thomas Kluyver 11 years ago
commit c37f51eac2

@ -104,6 +104,9 @@ define([
window.open(utils.url_join_encode(that.base_url, 'tree', parent), IPython._target);
});
this.element.find('#copy_notebook').click(function () {
if (that.notebook.dirty) {
that.notebook.save_notebook({async : false});
}
that.notebook.copy_notebook();
return false;
});

Loading…
Cancel
Save