mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-28 14:04:45 -04:00
Dropbox still very unreliable.
This commit is contained in:
parent
b031168868
commit
81a3729f0c
1 changed files with 9 additions and 9 deletions
|
@ -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();
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue