Skip to content

Commit

Permalink
filemanager: close active tab when delete or rename
Browse files Browse the repository at this point in the history
  • Loading branch information
ebrehault committed Nov 18, 2014
1 parent 013890b commit 8371e75
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 5 additions & 3 deletions mockup/patterns/filemanager/js/delete.js
Expand Up @@ -30,9 +30,11 @@ define([
success: function(data) {
self.hide();
self.app.$tree.tree(
'loadDataFromUrl',
self.app.options.actionUrl + '?action=dataTree'
);
'loadDataFromUrl',
self.app.options.actionUrl + '?action=dataTree'
);
// ugly, $tabs should have an API
$('.nav .active .remove').click();
}
});
// XXX show loading
Expand Down
2 changes: 2 additions & 0 deletions mockup/patterns/filemanager/js/rename.js
Expand Up @@ -48,6 +48,8 @@ define([
'loadDataFromUrl',
self.app.options.actionUrl + '?action=dataTree'
);
// ugly, $tabs should have an API
$('.nav .active .remove').click();
}
});
// XXX show loading
Expand Down

1 comment on commit 8371e75

@mister-roboto
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TESTS PASSED
Mr.Roboto url : http://jenkins.plone.org/roboto/get_info?push=f7b63877896b4bbab46b9c4a66c9a5de
plone-5.0-python-2.7 [SUCCESS]

Please sign in to comment.