From 631bd145b463479220873269b697c3e968511433 Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Sat, 15 Jan 2011 15:53:21 +0000 Subject: [PATCH] bugfix for groups state --- static/js/pandora.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/static/js/pandora.js b/static/js/pandora.js index 6b637c5..cb3e627 100755 --- a/static/js/pandora.js +++ b/static/js/pandora.js @@ -877,7 +877,7 @@ var pandora = new Ox.App({ } app.ui.groups[i] = getGroupObject(id_); app.user.ui.groups[i] = id_; - setUI({groups: app.user.ui.groups}); + UI.set({groups: app.user.ui.groups}); replaceGroup(i, id_); } else { // swap two existing groups @@ -886,7 +886,7 @@ var pandora = new Ox.App({ app.ui.groups[i_] = group; app.user.ui.groups[i] = id_; app.user.ui.groups[i_] = id; - setUI({groups: app.user.ui.groups}); + UI.set({groups: app.user.ui.groups}); replaceGroup(i, id_, app.ui.groups[i].query); replaceGroup(i_, id, app.ui.groups[i_].query); } @@ -3392,6 +3392,7 @@ var pandora = new Ox.App({ if (!old.user.ui.item) { if (!app.user.ui.item) { app.$ui.mainPanel.replace(1, app.$ui.rightPanel = ui.rightPanel()); + //app.$ui.contentPanel.replace(1, ui.list()); } else { app.$ui.mainPanel.replace(1, app.$ui.rightPanel = ui.rightPanel()); //app.$ui.rightPanel.replace(0, app.$ui.toolbar = ui.toolbar());