forked from 0x2620/pandora
'use strict';
This commit is contained in:
parent
586aeb75bb
commit
e6b49b908e
59 changed files with 97 additions and 3 deletions
|
@ -1,4 +1,9 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
// FIXME: remove this
|
||||||
|
|
||||||
pandora.Query = (function() {
|
pandora.Query = (function() {
|
||||||
|
|
||||||
function constructFind(query) {
|
function constructFind(query) {
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
pandora.UI = (function() {
|
pandora.UI = (function() {
|
||||||
|
|
||||||
var self = {}, that = {};
|
var self = {}, that = {};
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
pandora.URL = (function() {
|
pandora.URL = (function() {
|
||||||
|
|
||||||
var self = {}, that = {};
|
var self = {}, that = {};
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
pandora.ui.accountDialog = function(action) {
|
pandora.ui.accountDialog = function(action) {
|
||||||
var that = Ox.Dialog(Ox.extend({
|
var that = Ox.Dialog(Ox.extend({
|
||||||
fixedSize: true,
|
fixedSize: true,
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
|
'use strict';
|
||||||
pandora.ui.appPanel = function() {
|
pandora.ui.appPanel = function() {
|
||||||
var that = Ox.SplitPanel({
|
var that = Ox.SplitPanel({
|
||||||
elements: [
|
elements: [
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
pandora.autovalidateCode = function(value, blur, callback) {
|
pandora.autovalidateCode = function(value, blur, callback) {
|
||||||
value = value.toUpperCase().split('').map(function(v) {
|
value = value.toUpperCase().split('').map(function(v) {
|
||||||
return /[A-Z]/.test(v) ? v : null;
|
return /[A-Z]/.test(v) ? v : null;
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
|
'use strict';
|
||||||
pandora.ui.backButton = function() {
|
pandora.ui.backButton = function() {
|
||||||
var that = Ox.Button({
|
var that = Ox.Button({
|
||||||
title: 'Back to ' + pandora.site.itemName.plural,
|
title: 'Back to ' + pandora.site.itemName.plural,
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
|
'use strict';
|
||||||
pandora.ui.browser = function() {
|
pandora.ui.browser = function() {
|
||||||
var that;
|
var that;
|
||||||
if (!pandora.user.ui.item) {
|
if (!pandora.user.ui.item) {
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
pandora.ui.clipList = function(videoRatio) {
|
pandora.ui.clipList = function(videoRatio) {
|
||||||
|
|
||||||
var ui = pandora.user.ui,
|
var ui = pandora.user.ui,
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
|
'use strict';
|
||||||
pandora.ui.clipPlayer = function() {
|
pandora.ui.clipPlayer = function() {
|
||||||
// FIXME: is clipPlayer the best name for this?
|
// FIXME: is clipPlayer the best name for this?
|
||||||
var that = Ox.VideoPlayer({
|
var that = Ox.VideoPlayer({
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
pandora.ui.clipsView = function(videoRatio) {
|
pandora.ui.clipsView = function(videoRatio) {
|
||||||
|
|
||||||
var that = Ox.SplitPanel({
|
var that = Ox.SplitPanel({
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
pandora.ui.contactForm = function() {
|
pandora.ui.contactForm = function() {
|
||||||
|
|
||||||
var that = Ox.Element(),
|
var that = Ox.Element(),
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
|
'use strict';
|
||||||
pandora.ui.contentPanel = function() {
|
pandora.ui.contentPanel = function() {
|
||||||
var that = Ox.SplitPanel({
|
var that = Ox.SplitPanel({
|
||||||
elements: !pandora.user.ui.item ? [
|
elements: !pandora.user.ui.item ? [
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
pandora.ui.deleteListDialog = function() {
|
pandora.ui.deleteListDialog = function() {
|
||||||
|
|
||||||
var listData = pandora.getListData(),
|
var listData = pandora.getListData(),
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
// fixme: this should be deleted!!
|
// fixme: this should be deleted!!
|
||||||
|
|
||||||
pandora.ui.annotations = function() {
|
pandora.ui.annotations = function() {
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
pandora.ui.eventsDialog = function() {
|
pandora.ui.eventsDialog = function() {
|
||||||
var height = Math.round((window.innerHeight - 48) * 0.9),
|
var height = Math.round((window.innerHeight - 48) * 0.9),
|
||||||
width = Math.round(window.innerWidth * 0.9),
|
width = Math.round(window.innerWidth * 0.9),
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
pandora.ui.filesView = function(options, self) {
|
pandora.ui.filesView = function(options, self) {
|
||||||
|
|
||||||
var self = self || {},
|
var self = self || {},
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
pandora.ui.filter = function(list) {
|
pandora.ui.filter = function(list) {
|
||||||
var that = Ox.Filter({
|
var that = Ox.Filter({
|
||||||
findKeys: Ox.merge(Ox.map(pandora.site.itemKeys, function(key) {
|
findKeys: Ox.merge(Ox.map(pandora.site.itemKeys, function(key) {
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
|
'use strict';
|
||||||
pandora.ui.filterDialog = function(list) {
|
pandora.ui.filterDialog = function(list) {
|
||||||
var that = Ox.Dialog({
|
var that = Ox.Dialog({
|
||||||
buttons: [
|
buttons: [
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
|
'use strict';
|
||||||
pandora.ui.findElement = function() {
|
pandora.ui.findElement = function() {
|
||||||
var findIndex = pandora.user.ui._findState.index,
|
var findIndex = pandora.user.ui._findState.index,
|
||||||
findKey = pandora.user.ui._findState.key,
|
findKey = pandora.user.ui._findState.key,
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
|
'use strict';
|
||||||
pandora.ui.folderBrowser = function(id) {
|
pandora.ui.folderBrowser = function(id) {
|
||||||
var that = Ox.SplitPanel({
|
var that = Ox.SplitPanel({
|
||||||
elements: [
|
elements: [
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
|
'use strict';
|
||||||
pandora.ui.folderBrowserBar = function(id) {
|
pandora.ui.folderBrowserBar = function(id) {
|
||||||
var that = Ox.Bar({
|
var that = Ox.Bar({
|
||||||
size: 24
|
size: 24
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
|
'use strict';
|
||||||
pandora.ui.folderBrowserList = function(id) {
|
pandora.ui.folderBrowserList = function(id) {
|
||||||
// fixme: user and name are set to the same width here,
|
// fixme: user and name are set to the same width here,
|
||||||
// but resizeFolders will set them to different widths
|
// but resizeFolders will set them to different widths
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
|
'use strict';
|
||||||
pandora.ui.folderList = function(id) {
|
pandora.ui.folderList = function(id) {
|
||||||
var i = Ox.getPositionById(pandora.site.sectionFolders[pandora.user.ui.section], id),
|
var i = Ox.getPositionById(pandora.site.sectionFolders[pandora.user.ui.section], id),
|
||||||
that;
|
that;
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
|
'use strict';
|
||||||
pandora.ui.folders = function() {
|
pandora.ui.folders = function() {
|
||||||
var ui = pandora.user.ui,
|
var ui = pandora.user.ui,
|
||||||
that = Ox.Element()
|
that = Ox.Element()
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
|
'use strict';
|
||||||
pandora.ui.group = function(id) {
|
pandora.ui.group = function(id) {
|
||||||
var i = Ox.getPositionById(pandora.user.ui.groups, id),
|
var i = Ox.getPositionById(pandora.user.ui.groups, id),
|
||||||
group = Ox.getObjectById(pandora.site.groups, id),
|
group = Ox.getObjectById(pandora.site.groups, id),
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
|
'use strict';
|
||||||
pandora.ui.helpDialog = function() {
|
pandora.ui.helpDialog = function() {
|
||||||
var content = Ox.Element().css({margin: '16px'}),
|
var content = Ox.Element().css({margin: '16px'}),
|
||||||
that = Ox.Dialog({
|
that = Ox.Dialog({
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
pandora.ui.home = function() {
|
pandora.ui.home = function() {
|
||||||
|
|
||||||
var that = $('<div>')
|
var that = $('<div>')
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
// fixme: remove
|
// fixme: remove
|
||||||
|
|
||||||
pandora.ui.homePage = function() {
|
pandora.ui.homePage = function() {
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
|
'use strict';
|
||||||
pandora.ui.info = function() {
|
pandora.ui.info = function() {
|
||||||
|
|
||||||
var ui = pandora.user.ui,
|
var ui = pandora.user.ui,
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
'use strict';
|
||||||
|
|
||||||
pandora.ui.infoView = function(data) {
|
pandora.ui.infoView = function(data) {
|
||||||
|
|
||||||
// fixme: given that currently, the info view doesn't scroll into view nicely
|
// fixme: given that currently, the info view doesn't scroll into view nicely
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
'use strict';
|
||||||
|
|
||||||
pandora.ui.itemClips = function(options) {
|
pandora.ui.itemClips = function(options) {
|
||||||
|
|
||||||
var self = {},
|
var self = {},
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
|
'use strict';
|
||||||
pandora.ui.leftPanel = function() {
|
pandora.ui.leftPanel = function() {
|
||||||
var that = Ox.SplitPanel({
|
var that = Ox.SplitPanel({
|
||||||
elements: [
|
elements: [
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
pandora.ui.listDialog = function(section) {
|
pandora.ui.listDialog = function(section) {
|
||||||
|
|
||||||
section = section || 'general';
|
section = section || 'general';
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
pandora.ui.logsDialog = function() {
|
pandora.ui.logsDialog = function() {
|
||||||
var height = Math.round((window.innerHeight - 48) * 0.9),
|
var height = Math.round((window.innerHeight - 48) * 0.9),
|
||||||
width = Math.round(window.innerWidth * 0.9),
|
width = Math.round(window.innerWidth * 0.9),
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
|
'use strict';
|
||||||
pandora.ui.mainPanel = function() {
|
pandora.ui.mainPanel = function() {
|
||||||
var that = Ox.SplitPanel({
|
var that = Ox.SplitPanel({
|
||||||
elements: [
|
elements: [
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
'use strict';
|
||||||
|
|
||||||
pandora.ui.mediaView = function() {
|
pandora.ui.mediaView = function() {
|
||||||
|
|
||||||
var item = pandora.user.ui.item,
|
var item = pandora.user.ui.item,
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
|
'use strict';
|
||||||
pandora.ui.mainMenu = function() {
|
pandora.ui.mainMenu = function() {
|
||||||
|
|
||||||
var isAdmin = pandora.user.level == 'admin',
|
var isAdmin = pandora.user.level == 'admin',
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
|
'use strict';
|
||||||
pandora.ui.namesDialog = function() {
|
pandora.ui.namesDialog = function() {
|
||||||
|
|
||||||
// FIXME: add cache invalidation
|
// FIXME: add cache invalidation
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
|
'use strict';
|
||||||
pandora.ui.navigationView = function(type, videoRatio) {
|
pandora.ui.navigationView = function(type, videoRatio) {
|
||||||
|
|
||||||
var ui = pandora.user.ui,
|
var ui = pandora.user.ui,
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
|
'use strict';
|
||||||
pandora.ui.orderButton = function(isNavigationView) {
|
pandora.ui.orderButton = function(isNavigationView) {
|
||||||
var sortKey = !pandora.user.ui.item ? 'listSort' : 'itemSort',
|
var sortKey = !pandora.user.ui.item ? 'listSort' : 'itemSort',
|
||||||
that = Ox.Button({
|
that = Ox.Button({
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
pandora.ui.placesDialog = function() {
|
pandora.ui.placesDialog = function() {
|
||||||
var height = Math.round((window.innerHeight - 48) * 0.9),
|
var height = Math.round((window.innerHeight - 48) * 0.9),
|
||||||
width = Math.round(window.innerWidth * 0.9),
|
width = Math.round(window.innerWidth * 0.9),
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
'use strict';
|
||||||
|
|
||||||
pandora.ui.preferencesDialog = function() {
|
pandora.ui.preferencesDialog = function() {
|
||||||
|
|
||||||
var tabs = [
|
var tabs = [
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
|
'use strict';
|
||||||
pandora.ui.publicListsDialog = function() { // fixme: unused
|
pandora.ui.publicListsDialog = function() { // fixme: unused
|
||||||
var that = Ox.Dialog({
|
var that = Ox.Dialog({
|
||||||
buttons: [
|
buttons: [
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
pandora.ui.rightPanel = function() {
|
pandora.ui.rightPanel = function() {
|
||||||
var that;
|
var that;
|
||||||
if (pandora.user.ui.section == 'items') {
|
if (pandora.user.ui.section == 'items') {
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
|
'use strict';
|
||||||
pandora.ui.sectionButtons = function() {
|
pandora.ui.sectionButtons = function() {
|
||||||
var that = Ox.ButtonGroup({
|
var that = Ox.ButtonGroup({
|
||||||
buttons: [
|
buttons: [
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
|
'use strict';
|
||||||
pandora.ui.sectionSelect = function() {
|
pandora.ui.sectionSelect = function() {
|
||||||
// fixme: duplicated
|
// fixme: duplicated
|
||||||
var that = Ox.Select({
|
var that = Ox.Select({
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
|
'use strict';
|
||||||
pandora.ui.sectionbar = function(mode) {
|
pandora.ui.sectionbar = function(mode) {
|
||||||
var that = Ox.Bar({
|
var that = Ox.Bar({
|
||||||
size: 24
|
size: 24
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
pandora.ui.siteDialog = function(section) {
|
pandora.ui.siteDialog = function(section) {
|
||||||
|
|
||||||
var tabs = Ox.merge(
|
var tabs = Ox.merge(
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
pandora.ui.sortMenu = function() {
|
pandora.ui.sortMenu = function() {
|
||||||
|
|
||||||
// fixme: unused
|
// fixme: unused
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
pandora.ui.sortSelect = function(isNavigationView) {
|
pandora.ui.sortSelect = function(isNavigationView) {
|
||||||
var isClipView = pandora.isClipView(),
|
var isClipView = pandora.isClipView(),
|
||||||
items = [],
|
items = [],
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
|
'use strict';
|
||||||
pandora.ui.status = function(key, data) {
|
pandora.ui.status = function(key, data) {
|
||||||
var itemName = data.items != 1 ? pandora.site.itemName.plural : pandora.site.itemName.singular,
|
var itemName = data.items != 1 ? pandora.site.itemName.plural : pandora.site.itemName.singular,
|
||||||
segments = [],
|
segments = [],
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
|
'use strict';
|
||||||
pandora.ui.statusbar = function() {
|
pandora.ui.statusbar = function() {
|
||||||
var that = Ox.Bar({
|
var that = Ox.Bar({
|
||||||
size: 16
|
size: 16
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
|
'use strict';
|
||||||
pandora.ui.titlesDialog = function() {
|
pandora.ui.titlesDialog = function() {
|
||||||
|
|
||||||
var height = Math.round((window.innerHeight - 48) * 0.9),
|
var height = Math.round((window.innerHeight - 48) * 0.9),
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
pandora.ui.toolbar = function() {
|
pandora.ui.toolbar = function() {
|
||||||
var ui = pandora.user.ui,
|
var ui = pandora.user.ui,
|
||||||
isNavigationView = !ui.item
|
isNavigationView = !ui.item
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
pandora.ui.usersDialog = function() {
|
pandora.ui.usersDialog = function() {
|
||||||
|
|
||||||
var height = Math.round((window.innerHeight - 48) * 0.9),
|
var height = Math.round((window.innerHeight - 48) * 0.9),
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
pandora.addList = function() {
|
pandora.addList = function() {
|
||||||
// addList(isSmart, isFrom) or addList(list) [=duplicate]
|
// addList(isSmart, isFrom) or addList(list) [=duplicate]
|
||||||
var $folderList = pandora.$ui.folderList.personal,
|
var $folderList = pandora.$ui.folderList.personal,
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
pandora.ui.videoPreview = function(data) {
|
pandora.ui.videoPreview = function(data) {
|
||||||
var that = Ox.VideoPreview({
|
var that = Ox.VideoPreview({
|
||||||
duration: data.duration,
|
duration: data.duration,
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
pandora.ui.viewSelect = function() {
|
pandora.ui.viewSelect = function() {
|
||||||
var ui = pandora.user.ui,
|
var ui = pandora.user.ui,
|
||||||
sortKey = !ui.item ? 'listSort' : 'itemSort',
|
sortKey = !ui.item ? 'listSort' : 'itemSort',
|
||||||
|
|
Loading…
Reference in a new issue