Changeset 28540 for trunk/admin
- Timestamp:
- May 26, 2014, 6:56:39 PM (11 years ago)
- Location:
- trunk/admin/themes/default
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/themes/default/js/LocalStorageCache.js
r28532 r28540 1 1 var LocalStorageCache = function(options) { 2 this.key = options.key + ' -' + options.serverId;2 this.key = options.key + '_' + options.serverId; 3 3 this.serverKey = options.serverKey; 4 4 this.lifetime = options.lifetime ? options.lifetime*1000 : 3600*1000; -
trunk/admin/themes/default/js/addAlbum.js
r28533 r28540 9 9 valueField: 'id', 10 10 labelField: 'fullname', 11 sortField: ' fullname',11 sortField: 'global_rank', 12 12 searchField: ['fullname'], 13 13 plugins: ['remove_button'], … … 108 108 categories.push({ 109 109 id: 0, 110 fullname: '------------' 110 fullname: '------------', 111 global_rank: 0 111 112 }); 112 113 -
trunk/admin/themes/default/template/batch_manager_global.tpl
r28533 r28540 135 135 valueField: 'id', 136 136 labelField: 'fullname', 137 sortField: ' fullname',137 sortField: 'global_rank', 138 138 searchField: ['fullname'], 139 139 plugins: ['remove_button'] … … 141 141 142 142 categoriesCache.get(function(categories) { 143 categories.sort(function(a, b) {144 return a.fullname.localeCompare(b.fullname);145 });146 147 143 jQuery('[data-selectize=categories]').each(function() { 148 144 this.selectize.load(function(callback) { -
trunk/admin/themes/default/template/cat_modify.tpl
r28533 r28540 21 21 valueField: 'id', 22 22 labelField: 'fullname', 23 sortField: ' fullname',23 sortField: 'global_rank', 24 24 searchField: ['fullname'], 25 25 plugins: ['remove_button'] … … 29 29 categories.push({ 30 30 id: 0, 31 fullname: '------------' 31 fullname: '------------', 32 global_rank: 0 32 33 }); 33 34 … … 35 36 categories = jQuery.grep(categories, function(cat) { 36 37 return !(/\b{$CAT_ID}\b/.test(cat.uppercats)); 37 });38 39 categories.sort(function(a, b) {40 return a.fullname.localeCompare(b.fullname);41 38 }); 42 39 … … 52 49 // prevent empty value 53 50 if (this.selectize.getValue() == '') { 54 this.selectize.setValue( categories[0].id);51 this.selectize.setValue(0); 55 52 } 56 53 this.selectize.on('dropdown_close', function() { 57 54 if (this.getValue() == '') { 58 this.setValue( categories[0].id);55 this.setValue(0); 59 56 } 60 57 }); -
trunk/admin/themes/default/template/photos_add_direct.tpl
r28539 r28540 32 32 valueField: 'id', 33 33 labelField: 'fullname', 34 sortField: ' fullname',34 sortField: 'global_rank', 35 35 searchField: ['fullname'], 36 36 plugins: ['remove_button'] … … 41 41 jQuery("#albumSelection").show(); 42 42 } 43 44 categories.sort(function(a, b) {45 return a.fullname.localeCompare(b.fullname);46 });47 43 48 44 jQuery('[data-selectize=categories]').each(function() { -
trunk/admin/themes/default/template/picture_modify.tpl
r28533 r28540 26 26 valueField: 'id', 27 27 labelField: 'fullname', 28 sortField: ' fullname',28 sortField: 'global_rank', 29 29 searchField: ['fullname'], 30 30 plugins: ['remove_button']
Note: See TracChangeset
for help on using the changeset viewer.