mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Merge
This commit is contained in:
@@ -439,7 +439,7 @@ var MultiPanelColumns = Backbone.View.extend( baseMVC.LoggableMixin ).extend({
|
||||
// default
|
||||
update : {
|
||||
text: _l( 'most recent first' ),
|
||||
fn: _comparator( function( h ){ return Date( h.get( 'update_time' ) ); }, { asc : false })
|
||||
fn: _comparator( function( h ){ return new Date( h.get( 'update_time' ) ); }, { asc : false })
|
||||
},
|
||||
'name' : {
|
||||
text: _l( 'name, a to z' ),
|
||||
@@ -542,6 +542,7 @@ var MultiPanelColumns = Backbone.View.extend( baseMVC.LoggableMixin ).extend({
|
||||
* (sorting the collection will re-render the panel)
|
||||
*/
|
||||
sortCollection : function( order, options ){
|
||||
order = !_.isUndefined( order )? order : this.order;
|
||||
if( !( order in this.sortOrders ) ){
|
||||
order = 'update';
|
||||
}
|
||||
|
||||
@@ -439,7 +439,7 @@ var MultiPanelColumns = Backbone.View.extend( baseMVC.LoggableMixin ).extend({
|
||||
// default
|
||||
update : {
|
||||
text: _l( 'most recent first' ),
|
||||
fn: _comparator( function( h ){ return Date( h.get( 'update_time' ) ); }, { asc : false })
|
||||
fn: _comparator( function( h ){ return new Date( h.get( 'update_time' ) ); }, { asc : false })
|
||||
},
|
||||
'name' : {
|
||||
text: _l( 'name, a to z' ),
|
||||
@@ -542,6 +542,7 @@ var MultiPanelColumns = Backbone.View.extend( baseMVC.LoggableMixin ).extend({
|
||||
* (sorting the collection will re-render the panel)
|
||||
*/
|
||||
sortCollection : function( order, options ){
|
||||
order = !_.isUndefined( order )? order : this.order;
|
||||
if( !( order in this.sortOrders ) ){
|
||||
order = 'update';
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user