fix vim line

This commit is contained in:
j 2011-07-29 20:37:11 +02:00
parent 6abbaa57cc
commit 2bfd73b214
41 changed files with 42 additions and 41 deletions

View file

@ -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
***/ ***/

View file

@ -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) {

View file

@ -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) {

View file

@ -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() {

View file

@ -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;

View file

@ -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);

View file

@ -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) {

View file

@ -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({

View file

@ -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: [

View file

@ -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,

View file

@ -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) {

View file

@ -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 == '' ? [

View file

@ -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'

View file

@ -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) {

View file

@ -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: [

View file

@ -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 = '';

View file

@ -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) {

View file

@ -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: [

View file

@ -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

View file

@ -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),

View file

@ -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'})

View file

@ -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;

View file

@ -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);
/* /*

View file

@ -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() {

View file

@ -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(

View file

@ -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) {

View file

@ -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: [

View file

@ -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);

View file

@ -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: [

View file

@ -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({

View file

@ -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),

View file

@ -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: [

View file

@ -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') {

View file

@ -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: [

View file

@ -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({

View file

@ -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

View file

@ -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',

View file

@ -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' : ''),

View file

@ -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

View file

@ -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

View file

@ -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',