Merge pull request #1044 from nvdv/items_deselect

Deselect items after successful actions on notebook list page.
This commit is contained in:
Min RK 2016-02-07 13:19:30 +01:00
commit c5d6e9ee37

View File

@ -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",