trailing comma removal,

This commit is contained in:
j 2012-05-26 15:46:24 +00:00
parent 9ed863c6a6
commit 6946ce333d
30 changed files with 44 additions and 46 deletions

View file

@ -20,10 +20,9 @@ appPanel
*/
(function() {
window.onerror = function(error, url, line) {
try {
pandora.api.log({
!isMSIE && pandora.api.log({
text: error,
url: url,
line: line
@ -210,7 +209,6 @@ appPanel
function initPandora(data) {
Ox.Log('', 'Ox.App load', data);
Ox.extend(pandora, {
$ui: {
body: $('body'),

View file

@ -62,7 +62,7 @@ pandora.validateNewEmail = function(value, callback) {
}) : callback({
message: value.length ? 'Invalid e-mail address' : '',
// message: (!value.length ? 'Missing' : 'Invalid') + ' e-mail address',
valid: false,
valid: false
});
};

View file

@ -61,7 +61,7 @@ pandora.ui.contactForm = function() {
value: '',
width: width
})
],
]
})
.css({width: width + 'px'})
.bindEvent({

View file

@ -84,7 +84,7 @@ pandora.ui.editor = function(data) {
modified: created,
out: data.out,
user: pandora.user.username,
value: '',
value: ''
},
type == 'place' ? {
place: {lat: null, lng: null}

View file

@ -233,7 +233,7 @@ pandora.ui.filesView = function(options, self) {
self.numberOfItems = data.items;
},
open: openFiles,
select: selectFiles,
select: selectFiles
});
self.$instancesList = Ox.TextList({

View file

@ -238,7 +238,7 @@ pandora.ui.filtersInnerPanel = function() {
size: pandora.user.ui.filterSizes[1]
},
{
element: pandora.$ui.filters[2],
element: pandora.$ui.filters[2]
},
{
element: pandora.$ui.filters[3],

View file

@ -34,12 +34,12 @@ pandora.ui.findElement = function() {
}).map(function(key) {
return {
id: key.id,
title: 'Find: ' + key.title,
title: 'Find: ' + key.title
};
}),
[{}, {
id: 'advanced',
title: 'Find: Advanced',
title: 'Find: Advanced'
}]
),
overlap: 'right',

View file

@ -37,7 +37,7 @@ pandora.ui.folderBrowserBar = function(id) {
updateList(key, value);
}
})
],
]
})
.css({
float: 'right',

View file

@ -156,7 +156,7 @@ pandora.ui.folderBrowserList = function(id) {
} else if (data.key == 'subscribed') {
var subscribed = that.value(data.id, 'subscribed');
pandora.api[subscribed ? 'unsubscribeFromList' : 'subscribeToList']({
id: data.id,
id: data.id
}, function(result) {
that.value(data.id, 'subscribed', !subscribed);
});

View file

@ -254,7 +254,7 @@ pandora.ui.folderList = function(id) {
.css({
left: 0,
top: 0,
width: pandora.user.ui.sidebarWidth + 'px',
width: pandora.user.ui.sidebarWidth + 'px'
})
.bindEvent({
add: function(event) {

View file

@ -6,7 +6,7 @@ pandora.ui.folders = function() {
that = Ox.Element()
.css({overflowX: 'hidden', overflowY: 'auto'})
.bindEvent({
resize: pandora.resizeFolders,
resize: pandora.resizeFolders
});
//var $sections = [];

View file

@ -39,7 +39,7 @@ pandora.ui.home = function() {
bottom: 0,
width: '320px',
height: '160px',
margin: 'auto',
margin: 'auto'
})
.appendTo(that),
$logo = $('<img>')

View file

@ -56,7 +56,7 @@ pandora.ui.homePage = function() {
}
});
$findElement = Ox.FormElementGroup({
elements: [$select, $input],
elements: [$select, $input]
})
.css({marginTop: '16px'})
.appendTo($center);

View file

@ -28,7 +28,7 @@ pandora.ui.importAnnotations = function(data) {
importButton = Ox.Button({
disabled: true,
id: 'import',
title: 'Import',
title: 'Import'
}).bindEvent({
click: function() {
importButton.hide();
@ -46,7 +46,7 @@ pandora.ui.importAnnotations = function(data) {
height: height,
removeOnClose: true,
width: width,
title: 'Import Annotations',
title: 'Import Annotations'
})
.bindEvent({
close: function(data) {
@ -95,7 +95,7 @@ pandora.ui.importAnnotations = function(data) {
selectLayer = Ox.Select({
items: layers,
value: layer,
label: 'Layer',
label: 'Layer'
})
.bindEvent({
change: function(data) {

View file

@ -279,7 +279,7 @@ pandora.ui.listInfo = function() {
return {
width: size + 'px',
height: size + 'px',
borderRadius: Math.round(size / 4) + 'px',
borderRadius: Math.round(size / 4) + 'px'
};
}
that.resizeInfo = function() {

View file

@ -35,7 +35,7 @@ pandora.ui.infoView = function(data) {
position: 'absolute',
left: canEdit && !ui.showIconBrowser ? -listWidth + 'px' : 0,
top: 0,
right: 0,
right: 0
})
.appendTo(that.$element),
@ -121,7 +121,7 @@ pandora.ui.infoView = function(data) {
position: 'absolute',
left: margin + (iconSize == 256 ? 256 : iconWidth) + margin + 'px',
top: margin + 'px',
right: margin + statisticsWidth + margin + 'px',
right: margin + statisticsWidth + margin + 'px'
})
.bindEvent(canEdit && !isEditable ? {
doubleclick: reloadMetadata
@ -849,7 +849,7 @@ pandora.ui.infoView = function(data) {
height: iconSize / 2 + 'px'
}, 250);
$text.animate({
left: margin + (iconSize == 256 ? 256 : iconWidth) + margin + 'px',
left: margin + (iconSize == 256 ? 256 : iconWidth) + margin + 'px'
}, 250);
pandora.UI.set({infoIconSize: iconSize});
}

View file

@ -45,7 +45,7 @@ pandora.ui.itemClips = function(options) {
title: annotations.map(function(annotation) {
return Ox.stripTags(annotation.value.replace(/\n/g, ' '));
}).join('; '),
url: url,
url: url
})
.addClass('OxInfoIcon')
.css({
@ -55,7 +55,7 @@ pandora.ui.itemClips = function(options) {
: '2px'
})
.data(Ox.extend(annotations.length ? {
annotation: annotations[0].id.split('/')[1],
annotation: annotations[0].id.split('/')[1]
} : {}, {'in': clip['in'], out: clip.out}));
$item.find('.OxTarget').addClass('OxSpecialTarget');
that.append($item);

View file

@ -486,7 +486,7 @@ pandora.ui.list = function() {
} else {
pandora.$ui.previewDialog.options({
content: pandora.$ui.previewImage,
title: title,
title: title
})
.setSize(width, height);
}

View file

@ -75,7 +75,7 @@ pandora.ui.listDialog = function(section) {
);
}
})
],
]
})
.css({
float: 'right',

View file

@ -57,7 +57,7 @@ pandora.ui.logsDialog = function() {
id: 'id',
title: 'ID',
unique: true,
visible: false,
visible: false
},
{
format: function(value) {
@ -207,7 +207,7 @@ pandora.ui.logsDialog = function() {
bottom: '4px',
paddingTop: '2px',
fontSize: '9px',
textAlign: 'center',
textAlign: 'center'
})
.appendTo(that.find('.OxButtonsbar'));

View file

@ -116,7 +116,7 @@ pandora.ui.mediaView = function() {
left: imageLeft + 'px',
top: imageTop + 'px',
width: imageWidth + 'px',
height: imageHeight + 'px',
height: imageHeight + 'px'
})
);
if (view == 'frames') {

View file

@ -55,7 +55,7 @@ pandora.ui.mainMenu = function() {
{ id: 'items', title: 'View ' + pandora.site.itemName.plural, items: [
{ group: 'listview', min: 1, max: 1, items: pandora.site.listViews.map(function(view) {
return Ox.extend({
checked: ui.listView == view.id,
checked: ui.listView == view.id
}, view);
}) },
]},
@ -83,7 +83,7 @@ pandora.ui.mainMenu = function() {
{ id: 'item', title: ['Open ' + pandora.site.itemName.singular, 'Open ' + pandora.site.itemName.plural], items: [
{ group: 'itemview', min: 1, max: 1, items: pandora.site.itemViews.map(function(view) {
return Ox.extend({
checked: ui.itemView == view.id,
checked: ui.itemView == view.id
}, view);
}) },
] },

View file

@ -103,7 +103,7 @@ pandora.ui.namesDialog = function() {
$findButton = Ox.Button({
disabled: true,
title: 'Find',
width: 48,
width: 48
}).bindEvent({
click: function() {
that.close();
@ -176,7 +176,7 @@ pandora.ui.namesDialog = function() {
bottom: '4px',
paddingTop: '2px',
fontSize: '9px',
textAlign: 'center',
textAlign: 'center'
})
.appendTo(that.find('.OxButtonsbar'));

View file

@ -89,7 +89,7 @@ pandora.ui.navigationView = function(type, videoRatio) {
that = Ox.SplitPanel({
elements: [
{
element: $element,
element: $element
},
{
element: $listPanel,
@ -214,7 +214,7 @@ pandora.ui.navigationView = function(type, videoRatio) {
query: {
conditions: [{key: itemName, value: id, operator:'=='}],
operator: '&'
},
}
}, data), callback);
}
});

View file

@ -115,7 +115,7 @@ pandora.ui.news = function(width, height) {
tooltip: isEditable ? 'Doubleclick to edit' : '',
type: 'textarea',
value: items[index].text,
width: width - 512,
width: width - 512
})
.css({
MozUserSelect: 'text',

View file

@ -76,7 +76,7 @@ pandora.ui.siteDialog = function(section) {
Ox.Theme.formatColor(330 + 30 * i, 'gradient')
.css({
padding: '4px',
marginTop: '8px',
marginTop: '8px'
})
.html(
'<b>' + name + '</b><br/><div style="padding-top: 2px; font-size: 9px; opacity: 0.75">'

View file

@ -38,7 +38,7 @@ pandora.ui.titlesDialog = function() {
id: 'id',
title: 'ID',
unique: true,
visible: false,
visible: false
},
{
id: 'title',
@ -92,7 +92,7 @@ pandora.ui.titlesDialog = function() {
$findButton = Ox.Button({
disabled: true,
title: 'Find',
width: 48,
width: 48
}).bindEvent({
click: function() {
that.close();
@ -165,7 +165,7 @@ pandora.ui.titlesDialog = function() {
bottom: '4px',
paddingTop: '2px',
fontSize: '9px',
textAlign: 'center',
textAlign: 'center'
})
.appendTo(that.find('.OxButtonsbar'));

View file

@ -63,7 +63,7 @@ pandora.ui.tv = function() {
controlsTooltips: {
open: 'Open in ' + Ox.getObjectById(
pandora.site.itemViews, pandora.user.ui.videoView
).title + ' View',
).title + ' View'
},
controlsTop: ['close', 'title', 'open'],
duration: result.data.duration,

View file

@ -47,7 +47,7 @@ pandora.ui.uploadDialog = function(data) {
height: 128,
removeOnClose: true,
width: 368,
title: 'Upload Video',
title: 'Upload Video'
})
.bindEvent({
close: function(data) {

View file

@ -99,7 +99,7 @@ pandora.ui.usersDialog = function() {
id: 'id',
title: 'ID',
unique: true,
visible: false,
visible: false
},
{
format: function(value, data) {