files
This commit is contained in:
parent
b42dfb5e0b
commit
17791da015
3 changed files with 100 additions and 19 deletions
|
|
@ -1691,7 +1691,7 @@ var pandora = new Ox.App({
|
|||
},
|
||||
item: function() {
|
||||
var that;
|
||||
if (app.user.ui.itemView == 'info') {
|
||||
if (app.user.ui.itemView == 'info' || app.user.ui.itemView == 'files') {
|
||||
that = new Ox.Element('div');
|
||||
} else if (app.user.ui.itemView == 'player') {
|
||||
that = new Ox.Element('div');
|
||||
|
|
@ -1818,6 +1818,99 @@ var pandora = new Ox.App({
|
|||
});
|
||||
});
|
||||
*/
|
||||
} else if (app.user.ui.itemView == 'files') {
|
||||
app.$ui.contentPanel.replace(1,
|
||||
app.$ui.item = new Ox.TextList({
|
||||
columns: [
|
||||
{
|
||||
align: "left",
|
||||
id: "name",
|
||||
operator: "+",
|
||||
title: "Name",
|
||||
unique: true,
|
||||
visible: true,
|
||||
width: 400
|
||||
},
|
||||
{
|
||||
align: "left",
|
||||
id: "oshash",
|
||||
operator: "+",
|
||||
title: "oshash",
|
||||
visible: true,
|
||||
width: 120
|
||||
},
|
||||
{
|
||||
align: "left",
|
||||
id: "instances",
|
||||
operator: "+",
|
||||
title: "Instances",
|
||||
visible: true,
|
||||
width: 60
|
||||
},
|
||||
{
|
||||
align: "left",
|
||||
id: "width",
|
||||
operator: "+",
|
||||
title: "Width",
|
||||
visible: true,
|
||||
width: 60
|
||||
},
|
||||
{
|
||||
align: "left",
|
||||
id: "height",
|
||||
operator: "+",
|
||||
title: "Height",
|
||||
visible: true,
|
||||
width: 60
|
||||
},
|
||||
{
|
||||
align: "left",
|
||||
id: "duration",
|
||||
operator: "+",
|
||||
title: "Duration",
|
||||
visible: true,
|
||||
width: 80,
|
||||
format: {type: "duration", args: [0, "medium"]}
|
||||
},
|
||||
{
|
||||
align: "left",
|
||||
id: "size",
|
||||
operator: "+",
|
||||
title: "Size",
|
||||
visible: true,
|
||||
width: 80,
|
||||
format: {type: "value", args: ["B"]}
|
||||
},
|
||||
{
|
||||
align: "left",
|
||||
id: "is_main",
|
||||
operator: "+",
|
||||
title: "Main",
|
||||
visible: true,
|
||||
width: 140
|
||||
}
|
||||
],
|
||||
columnsMovable: true,
|
||||
columnsRemovable: true,
|
||||
columnsResizable: true,
|
||||
columnsVisible: true,
|
||||
id: 'files',
|
||||
request: function(data, callback) {
|
||||
//Ox.print('data, Query.toObject', data, Query.toObject())
|
||||
pandora.api.findFiles($.extend(data, {
|
||||
query: {
|
||||
conditions: [{
|
||||
key: 'id',
|
||||
value: result.data.item.id,
|
||||
operator: '='
|
||||
}]
|
||||
}
|
||||
}), callback);
|
||||
},
|
||||
scrollbarVisible: true,
|
||||
sort: [{key: 'name', operator:'+'}]
|
||||
})
|
||||
);
|
||||
}
|
||||
app.$ui.total.html(result.data.item.title + ' (' + result.data.item.director.join(', ') + ')')
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue