From 05a0be5c993eb2c0874bbcd9c044f0243c0fc1d0 Mon Sep 17 00:00:00 2001 From: rolux Date: Fri, 7 Feb 2014 11:59:01 +0000 Subject: [PATCH] edits: remove rights level --- static/js/listDialog.js | 52 ++++++++++++++++++++--------------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/static/js/listDialog.js b/static/js/listDialog.js index 420bf754..56dbac7c 100644 --- a/static/js/listDialog.js +++ b/static/js/listDialog.js @@ -198,34 +198,34 @@ pandora.ui.listGeneralPanel = function(listData) { submit: editName }) .appendTo(that), - $itemsInput = ui.section == 'items' + $itemsInput = ui.section != 'texts' ? Ox.Input({ - disabled: true, - label: Ox._('Items'), - labelWidth: 80, - value: listData.items, - width: 320 - }) - .css({position: 'absolute', left: '160px', top: '40px'}) - .appendTo(that) + disabled: true, + label: Ox._('Items'), + labelWidth: 80, + value: listData.items, + width: 320 + }) + .css({position: 'absolute', left: '160px', top: '40px'}) + .appendTo(that) : Ox.Select({ - items: pandora.site.textRightsLevels.map(function(rightsLevel, i) { - console.log(listData); - return { - id: i, - title: rightsLevel.name, - }; - }), - label: Ox._('Rights Level'), - labelWidth: 80, - value: listData.rightslevel, - width: 320 - }) - .css({position: 'absolute', left: '160px', top: '40px'}) - .bindEvent({ - change: editRightsLevel - }) - .appendTo(that), + items: pandora.site.textRightsLevels.map(function(rightsLevel, i) { + console.log(listData); + return { + id: i, + title: rightsLevel.name, + }; + }), + label: Ox._('Rights Level'), + labelWidth: 80, + value: listData.rightslevel, + width: 320 + }) + .css({position: 'absolute', left: '160px', top: '40px'}) + .bindEvent({ + change: editRightsLevel + }) + .appendTo(that), $statusSelect = listData.status == 'featured' ? Ox.Input({ disabled: true,