edit rightslevel
This commit is contained in:
parent
c4350e2334
commit
5af3120b5a
1 changed files with 4 additions and 5 deletions
|
@ -281,6 +281,7 @@ pandora.ui.documentInfoView = function(data) {
|
||||||
)
|
)
|
||||||
.appendTo($statistics);
|
.appendTo($statistics);
|
||||||
});
|
});
|
||||||
|
/*
|
||||||
$('<div>')
|
$('<div>')
|
||||||
.css({marginBottom: '4px'})
|
.css({marginBottom: '4px'})
|
||||||
.append(formatKey('timesaccessed', 'statistics'))
|
.append(formatKey('timesaccessed', 'statistics'))
|
||||||
|
@ -288,10 +289,10 @@ pandora.ui.documentInfoView = function(data) {
|
||||||
$('<div>').html(data.timesaccessed)
|
$('<div>').html(data.timesaccessed)
|
||||||
)
|
)
|
||||||
.appendTo($statistics);
|
.appendTo($statistics);
|
||||||
|
*/
|
||||||
|
|
||||||
// Rights Level ------------------------------------------------------------
|
// Rights Level ------------------------------------------------------------
|
||||||
|
|
||||||
/*
|
|
||||||
var $rightsLevel = $('<div>');
|
var $rightsLevel = $('<div>');
|
||||||
$('<div>')
|
$('<div>')
|
||||||
.css({marginBottom: '4px'})
|
.css({marginBottom: '4px'})
|
||||||
|
@ -299,8 +300,6 @@ pandora.ui.documentInfoView = function(data) {
|
||||||
.append($rightsLevel)
|
.append($rightsLevel)
|
||||||
.appendTo($statistics);
|
.appendTo($statistics);
|
||||||
renderRightsLevel();
|
renderRightsLevel();
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
function editMetadata(key, value) {
|
function editMetadata(key, value) {
|
||||||
if (value != data[key]) {
|
if (value != data[key]) {
|
||||||
|
@ -521,7 +520,7 @@ pandora.ui.documentInfoView = function(data) {
|
||||||
$rightsLevelSelect
|
$rightsLevelSelect
|
||||||
.css({background: $rightsLevelElement.css('background')})
|
.css({background: $rightsLevelElement.css('background')})
|
||||||
.data({OxColor: $rightsLevelElement.data('OxColor')})
|
.data({OxColor: $rightsLevelElement.data('OxColor')})
|
||||||
renderCapabilities(rightsLevel);
|
//renderCapabilities(rightsLevel);
|
||||||
pandora.api.editDocument({id: data.id, rightslevel: rightsLevel}, function(result) {
|
pandora.api.editDocument({id: data.id, rightslevel: rightsLevel}, function(result) {
|
||||||
// ...
|
// ...
|
||||||
});
|
});
|
||||||
|
@ -536,7 +535,7 @@ pandora.ui.documentInfoView = function(data) {
|
||||||
.appendTo($rightsLevel);
|
.appendTo($rightsLevel);
|
||||||
}
|
}
|
||||||
$capabilities = $('<div>').appendTo($rightsLevel);
|
$capabilities = $('<div>').appendTo($rightsLevel);
|
||||||
renderCapabilities(data.rightslevel);
|
//renderCapabilities(data.rightslevel);
|
||||||
}
|
}
|
||||||
|
|
||||||
function open() {
|
function open() {
|
||||||
|
|
Loading…
Reference in a new issue