This commit is contained in:
rolux 2014-01-07 08:37:03 +00:00
parent 11ae1d86c7
commit 9297166889

View file

@ -147,7 +147,7 @@ pandora.ui.documentsPanel = function(options) {
change: function(data) { change: function(data) {
var key = data.value; var key = data.value;
pandora.UI.set({documentsSort: [{ pandora.UI.set({documentsSort: [{
key: key; key: key,
operator: Ox.getObjectById(columns, key).operator operator: Ox.getObjectById(columns, key).operator
}]}); }]});
} }
@ -325,7 +325,7 @@ pandora.ui.documentsPanel = function(options) {
collapsible: isItemView, collapsible: isItemView,
collapsed: !ui.showDocument, collapsed: !ui.showDocument,
element: $itemPanel, element: $itemPanel,
size: ui.documentSize size: ui.documentSize,
resizable: isItemView, resizable: isItemView,
resize: isItemView ? [192, 256, 320, 384] : [] resize: isItemView ? [192, 256, 320, 384] : []
} }
@ -342,7 +342,7 @@ pandora.ui.documentsPanel = function(options) {
that.bindEvent( that.bindEvent(
'documentsSelection.' + (isItemView ? ui.item : ''), 'documentsSelection.' + (isItemView ? ui.item : ''),
selectDocuments selectDocuments
}); );
function addDocuments() { function addDocuments() {
pandora.api.addDocument({ pandora.api.addDocument({
@ -588,7 +588,7 @@ pandora.ui.documentsPanel = function(options) {
)); ));
} else { } else {
$itemMenu.setItemTitle('addtoitem', Ox._( $itemMenu.setItemTitle('addtoitem', Ox._(
: 'Add ' + string + ' to Current ' 'Add ' + string + ' to Current '
+ pandora.site.itemName.singular + pandora.site.itemName.singular
)) ))
.setItemTitle('addtolist', Ox._( .setItemTitle('addtolist', Ox._(
@ -615,7 +615,7 @@ pandora.ui.documentsPanel = function(options) {
? [{key: 'name', value: value, operator: '='}] ? [{key: 'name', value: value, operator: '='}]
: [], : [],
key == 'all' key == 'all'
? [key: 'description', value: value, operator: '='] ? [{key: 'description', value: value, operator: '='}]
: [], : [],
key != 'name' key != 'name'
? [{key: 'user', value: value, operator: '='}] ? [{key: 'user', value: value, operator: '='}]