Skip to content

Commit

Permalink
UI, Histories: when calling 'Delete hidden', both delete *and* unhide…
Browse files Browse the repository at this point in the history
… the datasets (preventing them from being both deleted and hidden)
  • Loading branch information
carlfeberhard committed Aug 10, 2015
1 parent ff13fb8 commit 971b96d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion client/galaxy/scripts/mvc/history/options-menu.js
Expand Up @@ -89,7 +89,8 @@ var menu = [
if( Galaxy && Galaxy.currHistoryPanel && confirm( _l( 'Really delete all hidden datasets?' ) ) ){
var filtered = Galaxy.currHistoryPanel.model.contents.hidden();
//TODO: batch
filtered.ajaxQueue( Backbone.Model.prototype.save, { deleted : true })
// both delete *and* unhide them
filtered.ajaxQueue( Backbone.Model.prototype.save, { deleted : true, visible: true })
.done( function(){
Galaxy.currHistoryPanel.render();
})
Expand Down
2 changes: 1 addition & 1 deletion static/maps/mvc/history/options-menu.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion static/scripts/mvc/history/options-menu.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 971b96d

Please sign in to comment.