diff --git a/static/js/pandora.js b/static/js/pandora.js index 8e33a28..ba6a8d9 100755 --- a/static/js/pandora.js +++ b/static/js/pandora.js @@ -2103,6 +2103,7 @@ var pandora = new Ox.App({ sections: function() { var that = new Ox.Element(); var $sections = []; + app.$ui.sectionLists = []; $.each(app.user.ui.sections, function(i, id) { var menu = []; if (id == 'my') { @@ -2129,7 +2130,7 @@ var pandora = new Ox.App({ $section.$content.css({ height: app.user.lists[id].length * 16 + 'px' }); - var $list = new Ox.TextList({ + app.$ui.sectionLists[i] = new Ox.TextList({ columns: [ { align: 'left', @@ -2198,21 +2199,14 @@ var pandora = new Ox.App({ width: app.user.ui.sidebarSize + 'px', height: app.user.lists[id].length * 16 + 'px' }) + .bindEvent('select', function(event, data) { + app.$ui.sectionLists.forEach(function($list, i_) { + if (i != i_) { + $list.options('selected', []); + } + }); + }) .appendTo($section.$content); - /* - } else { - $section.$content.append( - $('