aboutsummaryrefslogtreecommitdiffstats
path: root/admin/themes/default/js/addAlbum.js
diff options
context:
space:
mode:
Diffstat (limited to 'admin/themes/default/js/addAlbum.js')
-rw-r--r--admin/themes/default/js/addAlbum.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/admin/themes/default/js/addAlbum.js b/admin/themes/default/js/addAlbum.js
index 60942d8a7..dec06532e 100644
--- a/admin/themes/default/js/addAlbum.js
+++ b/admin/themes/default/js/addAlbum.js
@@ -8,7 +8,7 @@ jQuery.fn.pwgAddAlbum = function(options) {
$popup.find('[name="category_parent"]').selectize({
valueField: 'id',
labelField: 'fullname',
- sortField: 'fullname',
+ sortField: 'global_rank',
searchField: ['fullname'],
plugins: ['remove_button'],
onInitialize: function() {
@@ -107,7 +107,8 @@ jQuery.fn.pwgAddAlbum = function(options) {
options.cache.get(function(categories) {
categories.push({
id: 0,
- fullname: '------------'
+ fullname: '------------',
+ global_rank: 0
});
albumParent.selectize.load(function(callback) {