fix vim line
This commit is contained in:
parent
6abbaa57cc
commit
2bfd73b214
41 changed files with 42 additions and 41 deletions
|
@ -1,4 +1,4 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=js
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
/***
|
/***
|
||||||
Pandora
|
Pandora
|
||||||
***/
|
***/
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=js
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
pandora.Query = (function() {
|
pandora.Query = (function() {
|
||||||
|
|
||||||
function constructFind(query) {
|
function constructFind(query) {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=js
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
pandora.UI = (function() {
|
pandora.UI = (function() {
|
||||||
return {
|
return {
|
||||||
set: function(obj) {
|
set: function(obj) {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=js
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
|
|
||||||
|
|
||||||
pandora.URL = (function() {
|
pandora.URL = (function() {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=js
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
pandora.autovalidateCode = function(value, blur, callback) {
|
pandora.autovalidateCode = function(value, blur, callback) {
|
||||||
value = $.map(value.toUpperCase().split(''), function(v) {
|
value = $.map(value.toUpperCase().split(''), function(v) {
|
||||||
return /[0-9A-Z]/(v) ? v : null;
|
return /[0-9A-Z]/(v) ? v : null;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=js
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
|
|
||||||
pandora.enterFullscreen = function() {
|
pandora.enterFullscreen = function() {
|
||||||
pandora.$ui.appPanel.size(0, 0);
|
pandora.$ui.appPanel.size(0, 0);
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=js
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
|
|
||||||
Ox.FilesView = function(options, self) {
|
Ox.FilesView = function(options, self) {
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=js
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
|
|
||||||
pandora.ui.accountDialog = function(action) {
|
pandora.ui.accountDialog = function(action) {
|
||||||
var that = Ox.Dialog($.extend({
|
var that = Ox.Dialog($.extend({
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=js
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
pandora.ui.appPanel = function() {
|
pandora.ui.appPanel = function() {
|
||||||
var that = Ox.SplitPanel({
|
var that = Ox.SplitPanel({
|
||||||
elements: [
|
elements: [
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=js
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
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,4 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=js
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
pandora.ui.browser = function() {
|
pandora.ui.browser = function() {
|
||||||
var that;
|
var that;
|
||||||
if (!pandora.user.ui.item) {
|
if (!pandora.user.ui.item) {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=js
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
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,4 +1,4 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=js
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
pandora.ui.annotations = function() {
|
pandora.ui.annotations = function() {
|
||||||
var that = Ox.Element({
|
var that = Ox.Element({
|
||||||
id: 'annotations'
|
id: 'annotations'
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=js
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
pandora.ui.filter = function() {
|
pandora.ui.filter = function() {
|
||||||
var that = Ox.Filter({
|
var that = Ox.Filter({
|
||||||
findKeys: Ox.map(pandora.site.itemKeys, function(key) {
|
findKeys: Ox.map(pandora.site.itemKeys, function(key) {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=js
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
pandora.ui.filterDialog = function() {
|
pandora.ui.filterDialog = function() {
|
||||||
var that = Ox.Dialog({
|
var that = Ox.Dialog({
|
||||||
buttons: [
|
buttons: [
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=js
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
pandora.ui.findElement = function() {
|
pandora.ui.findElement = function() {
|
||||||
var findKey = '',
|
var findKey = '',
|
||||||
findValue = '';
|
findValue = '';
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=js
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
pandora.ui.flipbook = function(item) {
|
pandora.ui.flipbook = function(item) {
|
||||||
var that = Ox.Flipbook({
|
var that = Ox.Flipbook({
|
||||||
}).bindEvent('click', function(event, data) {
|
}).bindEvent('click', function(event, data) {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=js
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
pandora.ui.folderBrowser = function(id) {
|
pandora.ui.folderBrowser = function(id) {
|
||||||
var that = Ox.SplitPanel({
|
var that = Ox.SplitPanel({
|
||||||
elements: [
|
elements: [
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=js
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
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,4 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=js
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
pandora.ui.folderBrowserList = function(id) {
|
pandora.ui.folderBrowserList = function(id) {
|
||||||
var columnWidth = (pandora.user.ui.sidebarSize - Ox.UI.SCROLLBAR_SIZE - 88) / 2,
|
var columnWidth = (pandora.user.ui.sidebarSize - Ox.UI.SCROLLBAR_SIZE - 88) / 2,
|
||||||
i = Ox.getPositionById(pandora.site.sectionFolders[pandora.user.ui.section], id),
|
i = Ox.getPositionById(pandora.site.sectionFolders[pandora.user.ui.section], id),
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=js
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
pandora.ui.folders = function() {
|
pandora.ui.folders = function() {
|
||||||
var that = Ox.Element()
|
var that = Ox.Element()
|
||||||
.css({overflowX: 'hidden', overflowY: 'auto'})
|
.css({overflowX: 'hidden', overflowY: 'auto'})
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=js
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
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,4 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=js
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
pandora.ui.group = function(id, query) {
|
pandora.ui.group = function(id, query) {
|
||||||
//Ox.print('group', id, query);
|
//Ox.print('group', id, query);
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=js
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
|
|
||||||
pandora.ui.homePage = function() {
|
pandora.ui.homePage = function() {
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=js
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
pandora.ui.info = function() {
|
pandora.ui.info = function() {
|
||||||
var that = Ox.Element()
|
var that = Ox.Element()
|
||||||
.append(
|
.append(
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=js
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
pandora.ui.item = function() {
|
pandora.ui.item = function() {
|
||||||
var that = Ox.Element();
|
var that = Ox.Element();
|
||||||
pandora.api.getItem(pandora.user.ui.item, function(result) {
|
pandora.api.getItem(pandora.user.ui.item, function(result) {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=js
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
pandora.ui.leftPanel = function() {
|
pandora.ui.leftPanel = function() {
|
||||||
var that = Ox.SplitPanel({
|
var that = Ox.SplitPanel({
|
||||||
elements: [
|
elements: [
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=js
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
|
|
||||||
pandora.ui.list = function(view) { // fixme: remove view argument
|
pandora.ui.list = function(view) { // fixme: remove view argument
|
||||||
var that, $map;
|
var that, $map;
|
||||||
//Ox.print('constructList', view);
|
//Ox.print('constructList', view);
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=js
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
pandora.ui.mainPanel = function() {
|
pandora.ui.mainPanel = function() {
|
||||||
var that = Ox.SplitPanel({
|
var that = Ox.SplitPanel({
|
||||||
elements: [
|
elements: [
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=js
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
pandora.ui.mainMenu = function() {
|
pandora.ui.mainMenu = function() {
|
||||||
var isGuest = pandora.user.level == 'guest',
|
var isGuest = pandora.user.level == 'guest',
|
||||||
that = Ox.MainMenu({
|
that = Ox.MainMenu({
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=js
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
pandora.ui.placesDialog = function() {
|
pandora.ui.placesDialog = function() {
|
||||||
var height = Math.round(window.innerHeight * 0.9),
|
var height = Math.round(window.innerHeight * 0.9),
|
||||||
width = Math.round(window.innerWidth * 0.9),
|
width = Math.round(window.innerWidth * 0.9),
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=js
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
pandora.ui.publicListsDialog = function() { // fixme: unused
|
pandora.ui.publicListsDialog = function() { // fixme: unused
|
||||||
var that = Ox.Dialog({
|
var that = Ox.Dialog({
|
||||||
buttons: [
|
buttons: [
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=js
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
pandora.ui.rightPanel = function() {
|
pandora.ui.rightPanel = function() {
|
||||||
var that;
|
var that;
|
||||||
if (pandora.user.ui.section == 'site') {
|
if (pandora.user.ui.section == 'site') {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=js
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
pandora.ui.sectionButtons = function() {
|
pandora.ui.sectionButtons = function() {
|
||||||
var that = Ox.ButtonGroup({
|
var that = Ox.ButtonGroup({
|
||||||
buttons: [
|
buttons: [
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=js
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
pandora.ui.sectionSelect = function() {
|
pandora.ui.sectionSelect = function() {
|
||||||
// fixme: duplicated
|
// fixme: duplicated
|
||||||
var that = Ox.Select({
|
var that = Ox.Select({
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=js
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
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,4 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=js
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
pandora.ui.sortSelect = function() {
|
pandora.ui.sortSelect = function() {
|
||||||
var that = Ox.Select({
|
var that = Ox.Select({
|
||||||
id: 'sortSelect',
|
id: 'sortSelect',
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=js
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
pandora.ui.status = function(key, data) {
|
pandora.ui.status = function(key, data) {
|
||||||
var that = Ox.toTitleCase(key) + ': ' + [
|
var that = Ox.toTitleCase(key) + ': ' + [
|
||||||
Ox.formatNumber(data.items) + ' movie' + (data.items != 1 ? 's' : ''),
|
Ox.formatNumber(data.items) + ' movie' + (data.items != 1 ? 's' : ''),
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=js
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
pandora.ui.statusbar = function() {
|
pandora.ui.statusbar = function() {
|
||||||
var that = Ox.Bar({
|
var that = Ox.Bar({
|
||||||
size: 16
|
size: 16
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=js
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
pandora.ui.toolbar = function() {
|
pandora.ui.toolbar = function() {
|
||||||
var that = Ox.Bar({
|
var that = Ox.Bar({
|
||||||
size: 24
|
size: 24
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// vim: et:ts=4:sw=4:sts=4:ft=js
|
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||||
pandora.ui.viewSelect = function() {
|
pandora.ui.viewSelect = function() {
|
||||||
var that = Ox.Select({
|
var that = Ox.Select({
|
||||||
id: 'viewSelect',
|
id: 'viewSelect',
|
||||||
|
|
Loading…
Reference in a new issue