mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-15 04:00:34 +08:00
Merge pull request #1044 from nvdv/items_deselect
Deselect items after successful actions on notebook list page.
This commit is contained in:
commit
c5d6e9ee37
@ -696,6 +696,8 @@ define([
|
||||
that.shutdown_notebook(item.path);
|
||||
}
|
||||
});
|
||||
// Deselect items after successful shutdown.
|
||||
that.select('select-none');
|
||||
};
|
||||
|
||||
NotebookList.prototype.shutdown_notebook = function(path) {
|
||||
@ -750,6 +752,8 @@ define([
|
||||
click: function() {
|
||||
that.contents.rename(item_path, utils.url_path_join(that.notebook_path, input.val())).then(function() {
|
||||
that.load_list();
|
||||
// Deselect items after successful rename.
|
||||
that.select('select-none');
|
||||
}).catch(function(e) {
|
||||
dialog.modal({
|
||||
title: "Rename Failed",
|
||||
@ -917,6 +921,8 @@ define([
|
||||
that.selected.forEach(function(item) {
|
||||
that.contents.copy(item.path, that.notebook_path).then(function () {
|
||||
that.load_list();
|
||||
// Deselect items after successful duplication.
|
||||
that.select('select-none');
|
||||
}).catch(function(e) {
|
||||
dialog.modal({
|
||||
title: "Duplicate Failed",
|
||||
|
Loading…
Reference in New Issue
Block a user