Dropbox still very unreliable.

This commit is contained in:
Lars Jung 2013-07-21 02:12:53 +02:00
parent b031168868
commit 81a3729f0c

View file

@ -15,14 +15,18 @@ modulejs.define('ext/dropbox', ['_', '$', 'core/settings', 'core/location', 'cor
'<div class="progress"><div class="bar"/></div>' + '<div class="progress"><div class="bar"/></div>' +
'</li>', '</li>',
data = {
action: 'upload',
href: ''
},
init = function () { init = function () {
if (!settings.enabled || !server.api) { if (!settings.enabled || !server.api) {
return; return;
} }
var $content = $('#content').append(template), var $content = $('#content').append(template);
data = {};
var uploads = {}, var uploads = {},
afterUpload = function (err, file) { afterUpload = function (err, file) {
@ -111,14 +115,10 @@ modulejs.define('ext/dropbox', ['_', '$', 'core/settings', 'core/location', 'cor
event.sub('location.changed', function (item) { event.sub('location.changed', function (item) {
$('#uploads').empty(); // $('#uploads').empty();
data = { data.href = item.absHref;
action: 'upload',
href: item.absHref
};
}); });
}; };
// disabled while broken init();
// init();
}); });