From 5af3120b5a87bc0e3b59ceba486120148aef0093 Mon Sep 17 00:00:00 2001 From: j Date: Tue, 24 Jan 2017 16:19:55 +0100 Subject: [PATCH] edit rightslevel --- static/js/documentInfoView.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/static/js/documentInfoView.js b/static/js/documentInfoView.js index 905e1a94..79476edd 100644 --- a/static/js/documentInfoView.js +++ b/static/js/documentInfoView.js @@ -281,6 +281,7 @@ pandora.ui.documentInfoView = function(data) { ) .appendTo($statistics); }); + /* $('
') .css({marginBottom: '4px'}) .append(formatKey('timesaccessed', 'statistics')) @@ -288,10 +289,10 @@ pandora.ui.documentInfoView = function(data) { $('
').html(data.timesaccessed) ) .appendTo($statistics); + */ // Rights Level ------------------------------------------------------------ - /* var $rightsLevel = $('
'); $('
') .css({marginBottom: '4px'}) @@ -299,8 +300,6 @@ pandora.ui.documentInfoView = function(data) { .append($rightsLevel) .appendTo($statistics); renderRightsLevel(); - */ - function editMetadata(key, value) { if (value != data[key]) { @@ -521,7 +520,7 @@ pandora.ui.documentInfoView = function(data) { $rightsLevelSelect .css({background: $rightsLevelElement.css('background')}) .data({OxColor: $rightsLevelElement.data('OxColor')}) - renderCapabilities(rightsLevel); + //renderCapabilities(rightsLevel); pandora.api.editDocument({id: data.id, rightslevel: rightsLevel}, function(result) { // ... }); @@ -536,7 +535,7 @@ pandora.ui.documentInfoView = function(data) { .appendTo($rightsLevel); } $capabilities = $('
').appendTo($rightsLevel); - renderCapabilities(data.rightslevel); + //renderCapabilities(data.rightslevel); } function open() {