diff options
author | mistic100 <mistic@piwigo.org> | 2014-05-26 16:56:39 +0000 |
---|---|---|
committer | mistic100 <mistic@piwigo.org> | 2014-05-26 16:56:39 +0000 |
commit | 1b60bafb587b68b2aaab4d634a62687d12a0f8c8 (patch) | |
tree | 05e5e98831a7b54cdda54babdb6243d091d6e28b /admin/themes/default/template/photos_add_direct.tpl | |
parent | 2f62865ac11a98c6c817d7bf244815ef49b007ee (diff) |
feature 3077 : always sort categories by global rank
git-svn-id: http://piwigo.org/svn/trunk@28540 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/themes/default/template/photos_add_direct.tpl')
-rw-r--r-- | admin/themes/default/template/photos_add_direct.tpl | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/admin/themes/default/template/photos_add_direct.tpl b/admin/themes/default/template/photos_add_direct.tpl index 01637818b..fdf80c481 100644 --- a/admin/themes/default/template/photos_add_direct.tpl +++ b/admin/themes/default/template/photos_add_direct.tpl @@ -31,7 +31,7 @@ var categoriesCache = new LocalStorageCache({ jQuery('[data-selectize=categories]').selectize({ valueField: 'id', labelField: 'fullname', - sortField: 'fullname', + sortField: 'global_rank', searchField: ['fullname'], plugins: ['remove_button'] }); @@ -40,10 +40,6 @@ categoriesCache.get(function(categories) { if (categories.length > 0) { jQuery("#albumSelection").show(); } - - categories.sort(function(a, b) { - return a.fullname.localeCompare(b.fullname); - }); jQuery('[data-selectize=categories]').each(function() { this.selectize.load(function(callback) { |