Skip to content

Commit

Permalink
UI, history: doc updates
Browse files Browse the repository at this point in the history
  • Loading branch information
carlfeberhard committed May 9, 2016
1 parent f9afb7b commit 8ce93d7
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion client/galaxy/scripts/mvc/collection/collection-li.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,13 @@ var DCListItemView = FoldoutListItemView.extend(
/** event listeners */
_setUpListeners : function(){
FoldoutListItemView.prototype._setUpListeners.call( this );
// re-rendering on deletion
this.listenTo( this.model, 'change', function( model, options ){
// if the model has changed deletion status render it entirely
if( _.has( model.changed, 'deleted' ) ){
this.render();

// if the model has been decorated after the fact with the element count,
// render the subtitle where the count is displayed
} else if( _.has( model.changed, 'element_count' ) ){
this.$( '> .title-bar .subtitle' ).replaceWith( this._renderSubtitle() );
}
Expand Down
2 changes: 1 addition & 1 deletion client/galaxy/scripts/mvc/history/history-contents.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ var HistoryContents = Backbone.Collection
return this.fetch( options );
},

/** */
/** specialty fetch method for retrieving the element_counts of all hdcas in the history */
fetchCollectionCounts : function( options ){
options = options || {};
options.data = _.defaults({
Expand Down
2 changes: 1 addition & 1 deletion static/maps/mvc/collection/collection-li.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/bundled/analysis.bundled.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/scripts/bundled/libs.bundled.js.map

Large diffs are not rendered by default.

0 comments on commit 8ce93d7

Please sign in to comment.