diff --git a/src/_h5ai/client/js/inc/ext/dropbox.js b/src/_h5ai/client/js/inc/ext/dropbox.js index ee11f236..5512cb34 100644 --- a/src/_h5ai/client/js/inc/ext/dropbox.js +++ b/src/_h5ai/client/js/inc/ext/dropbox.js @@ -15,14 +15,18 @@ modulejs.define('ext/dropbox', ['_', '$', 'core/settings', 'core/location', 'cor '
' + '', + data = { + action: 'upload', + href: '' + }, + init = function () { if (!settings.enabled || !server.api) { return; } - var $content = $('#content').append(template), - data = {}; + var $content = $('#content').append(template); var uploads = {}, afterUpload = function (err, file) { @@ -111,14 +115,10 @@ modulejs.define('ext/dropbox', ['_', '$', 'core/settings', 'core/location', 'cor event.sub('location.changed', function (item) { - $('#uploads').empty(); - data = { - action: 'upload', - href: item.absHref - }; + // $('#uploads').empty(); + data.href = item.absHref; }); }; - // disabled while broken - // init(); + init(); });