Compare commits
No commits in common. "a80c64b8d1e8e5ed1d31da96ce174f2f7f8c90e3" and "80ba23b5aa1561fb3d402f89f1abd534bead6d2a" have entirely different histories.
a80c64b8d1
...
80ba23b5aa
2 changed files with 1 additions and 53 deletions
|
@ -73,7 +73,7 @@
|
||||||
"canSeeDebugMenu": {"staff": true, "admin": true},
|
"canSeeDebugMenu": {"staff": true, "admin": true},
|
||||||
"canSeeExtraItemViews": {"staff": true, "admin": true},
|
"canSeeExtraItemViews": {"staff": true, "admin": true},
|
||||||
"canSeeMedia": {"staff": true, "admin": true},
|
"canSeeMedia": {"staff": true, "admin": true},
|
||||||
"canSeeDocument": {"guest": 0, "member": 1, "staff": 4, "admin": 4},
|
"canSeeDocument": {"guest": 1, "member": 1, "staff": 4, "admin": 4},
|
||||||
"canSeeItem": {"guest": 1, "member": 1, "staff": 4, "admin": 4},
|
"canSeeItem": {"guest": 1, "member": 1, "staff": 4, "admin": 4},
|
||||||
"canSeeSize": {"staff": true, "admin": true},
|
"canSeeSize": {"staff": true, "admin": true},
|
||||||
"canSeeSoftwareVersion": {"staff": true, "admin": true},
|
"canSeeSoftwareVersion": {"staff": true, "admin": true},
|
||||||
|
|
|
@ -493,58 +493,6 @@ pandora.ui.documentInfoView = function(data, isMixed) {
|
||||||
.appendTo($statistics);
|
.appendTo($statistics);
|
||||||
renderRightsLevel();
|
renderRightsLevel();
|
||||||
|
|
||||||
// User and Groups ---------------------------------------------------------
|
|
||||||
if (!isMultiple) {
|
|
||||||
|
|
||||||
['user', 'groups'].forEach(function(key) {
|
|
||||||
var $input;
|
|
||||||
(canEdit || data[key] && data[key].length) && $('<div>')
|
|
||||||
.css({marginBottom: '4px'})
|
|
||||||
.append(formatKey(key, 'statistics'))
|
|
||||||
.append(
|
|
||||||
$('<div>')
|
|
||||||
.css({margin: '2px 0 0 -1px'}) // fixme: weird
|
|
||||||
.append(
|
|
||||||
$input = Ox.Editable({
|
|
||||||
placeholder: key == 'groups' ? formatLight(Ox._('No Groups')) : '',
|
|
||||||
editable: key == 'user' && canEdit,
|
|
||||||
tooltip: canEdit ? pandora.getEditTooltip() : '',
|
|
||||||
value: key == 'user' ? data[key] : data[key].join(', ')
|
|
||||||
})
|
|
||||||
.bindEvent(Ox.extend({
|
|
||||||
submit: function(event) {
|
|
||||||
editMetadata(key, event.value);
|
|
||||||
}
|
|
||||||
}, key == 'groups' ? {
|
|
||||||
doubleclick: canEdit ? function() {
|
|
||||||
setTimeout(function() {
|
|
||||||
if (window.getSelection) {
|
|
||||||
window.getSelection().removeAllRanges();
|
|
||||||
} else if (document.selection) {
|
|
||||||
document.selection.empty();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
pandora.$ui.groupsDialog = pandora.ui.groupsDialog({
|
|
||||||
id: data.id,
|
|
||||||
name: data.title,
|
|
||||||
type: 'item'
|
|
||||||
})
|
|
||||||
.bindEvent({
|
|
||||||
groups: function(data) {
|
|
||||||
$input.options({
|
|
||||||
value: data.groups.join(', ')
|
|
||||||
});
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.open();
|
|
||||||
} : function() {}
|
|
||||||
} : {}))
|
|
||||||
)
|
|
||||||
)
|
|
||||||
.appendTo($statistics);
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
function editMetadata(key, value) {
|
function editMetadata(key, value) {
|
||||||
if (value != data[key]) {
|
if (value != data[key]) {
|
||||||
var edit = {
|
var edit = {
|
||||||
|
|
Loading…
Reference in a new issue