diff --git a/static/js/chunkupload.js b/static/js/chunkupload.js index 90b7135e..e85b47a4 100644 --- a/static/js/chunkupload.js +++ b/static/js/chunkupload.js @@ -27,7 +27,7 @@ */ pandora.chunkupload = function(options) { var aborted = false, - chunkSize = options.size || 1024 * 1024 * 5, + chunkSize = options.size || 1024 * 1024, chunkURL, file = options.file, bytesAvailable = file.size, diff --git a/static/js/document.js b/static/js/document.js index 8370cce5..72669aa9 100644 --- a/static/js/document.js +++ b/static/js/document.js @@ -40,7 +40,7 @@ pandora.ui.document = function() { item = result.data; var documentTitle = pandora.getWindowTitle(item); document.title = pandora.getPageTitle(document.location.pathname) || documentTitle; - pandora.$ui.itemTitle && pandora.$ui.itemTitle + pandora.$ui.itemTitle .options({title: '' + (pandora.getDocumentTitle(item)) + ''}) .show(); diff --git a/static/js/embedDocument.js b/static/js/embedDocument.js deleted file mode 100644 index bab72606..00000000 --- a/static/js/embedDocument.js +++ /dev/null @@ -1,9 +0,0 @@ -// vim: et:ts=4:sw=4:sts=4:ft=javascript - -'use strict'; - -pandora.ui.embedDocument = function() { - var that = Ox.Element(); - pandora.ui.document().appendTo(that) - return that; -}; diff --git a/static/js/embedPanel.js b/static/js/embedPanel.js index 1a997dfd..381a487c 100644 --- a/static/js/embedPanel.js +++ b/static/js/embedPanel.js @@ -31,19 +31,14 @@ pandora.ui.embedPanel = function() { that = pandora.ui.embedNavigation(view); } } - } else if (ui.section == 'documents') { - that = pandora.ui.embedDocument() } else if (ui.section == 'edits') { // FIXME: this is non-standard, see above! that = pandora.ui.editPanel(true); } else { that = pandora.ui.embedError(true) } - } else if (ui.page == 'document' && ui.part.document) { - ui.document = ui.part.document - ui.section = 'documents' - ui.page = '' - that = pandora.ui.embedDocument() + } else if (ui.page == 'documents' && ui.document) { + that = pandora.ui.embedError(true); } if (!that) { that = pandora.ui.embedError(); diff --git a/static/js/embedPlayer.js b/static/js/embedPlayer.js index 42509f3b..514a6960 100644 --- a/static/js/embedPlayer.js +++ b/static/js/embedPlayer.js @@ -154,7 +154,7 @@ pandora.ui.embedPlayer = function() { } }) .bindEvent(function(data, event) { - if (Ox.contains(['close', 'paused', 'position'], event)) { + if (Ox.contains(['close', 'paused'], event)) { Ox.$parent.postMessage(event, data); } });