Skip to content

Commit

Permalink
[modxcms#7364] Better checking for default sort on file browser
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaun McCormick committed Mar 20, 2012
1 parent 9484216 commit e90b83a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion manager/assets/modext/core/modx.view.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ Ext.extend(MODx.browser.Window,Ext.Window,{
,allowedFileTypes: this.config.allowedFileTypes || ''
,wctx: this.config.wctx || 'web'
});
this.sortImages();
}

,sortImages : function(){
Expand Down Expand Up @@ -384,7 +385,7 @@ MODx.browser.View = function(config) {
,dir: config.openTo || ''
}
,sortInfo: {
field: 'name'
field: MODx.config.modx_browser_default_sort || 'name'
,direction: 'ASC'
}
,tpl: this.templates.thumb
Expand Down

0 comments on commit e90b83a

Please sign in to comment.