aboutsummaryrefslogtreecommitdiffstats
path: root/admin/themes/default/template/photos_add_direct.tpl
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--admin/themes/default/template/photos_add_direct.tpl6
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) {