Ignore:
Timestamp:
May 26, 2014, 6:56:39 PM (10 years ago)
Author:
mistic100
Message:

feature 3077 : always sort categories by global rank

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/themes/default/template/batch_manager_global.tpl

    r28533 r28540  
    135135    valueField: 'id',
    136136    labelField: 'fullname',
    137     sortField: 'fullname',
     137    sortField: 'global_rank',
    138138    searchField: ['fullname'],
    139139    plugins: ['remove_button']
     
    141141 
    142142  categoriesCache.get(function(categories) {
    143     categories.sort(function(a, b) {
    144       return a.fullname.localeCompare(b.fullname);
    145     });
    146    
    147143    jQuery('[data-selectize=categories]').each(function() {
    148144      this.selectize.load(function(callback) {
Note: See TracChangeset for help on using the changeset viewer.