Compare commits
No commits in common. "1905f6843b16337e1921a2a4c52fc60a94c21866" and "c32503e1af31375e79998ed22de1d2b05d687f2a" have entirely different histories.
1905f6843b
...
c32503e1af
5 changed files with 5 additions and 19 deletions
|
@ -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,
|
||||
|
|
|
@ -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: '<b>' + (pandora.getDocumentTitle(item)) + '</b>'})
|
||||
.show();
|
||||
|
||||
|
|
|
@ -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;
|
||||
};
|
|
@ -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();
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue