From e389068ae5fbd5fe976cff7723e1bf2da23de2d5 Mon Sep 17 00:00:00 2001 From: j Date: Tue, 6 Mar 2018 15:19:58 +0530 Subject: [PATCH] cleanup groups ui --- static/js/listDialog.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/static/js/listDialog.js b/static/js/listDialog.js index 0df4dfa1..f177bca9 100644 --- a/static/js/listDialog.js +++ b/static/js/listDialog.js @@ -225,7 +225,6 @@ pandora.ui.listGeneralPanel = function(listData) { }) : Ox.Select({ items: pandora.site.textRightsLevels.map(function(rightsLevel, i) { - console.log(listData); return { id: i, title: rightsLevel.name, @@ -302,7 +301,6 @@ pandora.ui.listGeneralPanel = function(listData) { }) .bindEvent({ click: function() { - console.log(listData) pandora.$ui.groupsDialog = pandora.ui.groupsDialog({ id: listData.id, name: listData.id, @@ -312,7 +310,9 @@ pandora.ui.listGeneralPanel = function(listData) { .bindEvent({ groups: function(data) { var groups = data.groups.join(', '); - //fixme edit groups + editGroups({ + value: data.groups + }) $groupsLabel.options({title: groups}); } }) @@ -384,7 +384,6 @@ pandora.ui.listGeneralPanel = function(listData) { } function editGroups(data) { var groups = data.value.split(', '); - console.log(groups); pandora.api['edit' + folderItem]({ id: listData.id, groups: groups @@ -442,10 +441,10 @@ pandora.ui.listGeneralPanel = function(listData) { }); } function getDescriptionHeight() { - return (listData.status == 'private' ? 184 : 160) - 24; + return listData.status == 'private' ? 160 : 136; } function getDescriptionTop() { - return (listData.status == 'private' ? 88 : 112) + 24; + return listData.status == 'private' ? 64 : 88; } function getSubscribersAction() { return listData.status == 'private' ? 'hide' : 'show';