rendered, editFile

This commit is contained in:
j 2011-06-27 15:39:35 +02:00
commit e60868843f
10 changed files with 66 additions and 36 deletions

View file

@ -105,9 +105,9 @@ Ox.FilesView = function(options, self) {
},
{
align: 'left',
id: 'oshash',
id: 'id',
operator: '+',
title: 'Hash',
title: 'ID',
unique: true,
visible: false,
width: 120

View file

@ -6,6 +6,14 @@ pandora.ui.item = function() {
pandora.$ui.contentPanel.replaceElement(1,
Ox.Element().html(
'The '+pandora.site.itemName.singular+' you are looking for does not exist.'));
} else if (!result.data.rendered &&
['clips', 'map',
'player', 'timeline'].indexOf(pandora.user.ui.itemView)>-1) {
pandora.$ui.contentPanel.replaceElement(1,
Ox.Element().css({margin: '16px'}).html(
'We are sorry, "' + result.data.title +
'" does not have a '+pandora.user.ui.itemView +
' view right now.'));
} else if (pandora.user.ui.itemView == 'calendar') {
pandora.$ui.contentPanel.replaceElement(1, Ox.Element().html('Calendar'));
} else if (pandora.user.ui.itemView == 'clips') {
@ -55,7 +63,7 @@ pandora.ui.item = function() {
var $form,
$edit = Ox.Element()
.append($form = Ox.FormElementGroup({
elements: Ox.map(pandora.site.itemKeys, function(key) {
elements: Ox.map(pandora.site.sortKeys, function(key) {
return Ox.Input({
id: key.id,
label: key.title,
@ -228,7 +236,14 @@ pandora.ui.item = function() {
}
}));
} else if (pandora.user.ui.itemView == 'statistics') {
pandora.$ui.contentPanel.replaceElement(1, Ox.Element().html('Statistics'));
var stats = Ox.Container();
Ox.TreeList({
data: result.data,
width: 256
}).appendTo(stats);
pandora.$ui.contentPanel.replaceElement(1, stats);
} else if (pandora.user.ui.itemView == 'timeline') {
var layers = [],
video = result.data.stream,

View file

@ -48,7 +48,7 @@ pandora.ui.list = function(view) { // fixme: remove view argument
})
.bindEvent({
columnchange: function(event, data) {
var columnWidth = {}
var columnWidth = {};
pandora.UI.set(['lists', pandora.user.ui.list, 'columns'].join('|'), data.ids);
/*
data.ids.forEach(function(id) {
@ -95,6 +95,16 @@ pandora.ui.list = function(view) { // fixme: remove view argument
sort: pandora.user.ui.lists[pandora.user.ui.list].sort,
unique: 'id'
});
} else if (view == 'info') {
that = Ox.Element().css({margin: '16px'}).html(view + ' results view still missing.');
} else if (view == 'clips') {
that = Ox.Element().css({margin: '16px'}).html(view + ' results view still missing.');
} else if (view == 'timelines') {
that = Ox.Element().css({margin: '16px'}).html(view + ' results view still missing.');
} else if (view == 'maps') {
that = Ox.Element().css({margin: '16px'}).html(view + ' results view still missing.');
} else if (view == 'calendars') {
that = Ox.Element().css({margin: '16px'}).html(view + ' results view still missing.');
} else if (view == 'clip') {
that = Ox.IconList({
item: function(data, sort, size) {