fix a bug that would prevent replacing groups
This commit is contained in:
parent
16adecaccd
commit
fa7263fb56
2 changed files with 4 additions and 2 deletions
|
@ -204,7 +204,7 @@ pandora.ui.group = function(id) {
|
|||
replaceGroup(i, id_);
|
||||
replaceGroup(i_, id);
|
||||
}
|
||||
pandora.$ui.mainMenu.replaceMenu('sortMenu', pandora.getSortMenu());
|
||||
//pandora.$ui.mainMenu.replaceMenu('sortMenu', pandora.getSortMenu());
|
||||
function makeGroup(id, sort) {
|
||||
// makes user.ui.groups object from site.groups object
|
||||
var group = Ox.getObjectById(pandora.site.groups, id);
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||
'use strict';
|
||||
pandora.ui.mainMenu = function() {
|
||||
|
||||
var isAdmin = pandora.user.level == 'admin',
|
||||
|
@ -330,6 +329,9 @@ pandora.ui.mainMenu = function() {
|
|||
that[action]('deletelist');
|
||||
that[ui.listSelection.length ? 'enableItem' : 'disableItem']('newlistfromselection');
|
||||
},
|
||||
pandora_groups: function(data) {
|
||||
that.replaceMenu('sortMenu', getSortMenu());
|
||||
},
|
||||
pandora_item: function(data) {
|
||||
if (!!data.value != !!data.previousValue) {
|
||||
that[data.value ? 'disableItem' : 'enableItem']('showgroups');
|
||||
|
|
Loading…
Reference in a new issue