diff --git a/www/common/common-title.js b/www/common/common-title.js index f5485d86d..226dc1b34 100644 --- a/www/common/common-title.js +++ b/www/common/common-title.js @@ -40,7 +40,6 @@ define(function () { var renameCb = function (err, newTitle) { if (err) { return; } updateLocalTitle(newTitle); - console.log('here'); onLocal(); }; diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index b5707639d..771fb1d66 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -23,11 +23,13 @@ define([ Additionally, there is some basic functionality for import/export. */ + + var origin = encodeURIComponent(window.location.hostname); var common = window.Cryptpad = { Messages: Messages, Clipboard: Clipboard, - donateURL: 'https://accounts.cryptpad.fr/#/donate?on=' + window.location.hostname, - upgradeURL: 'https://accounts.cryptpad.fr/#/?on=' + window.location.hostname, + donateURL: 'https://accounts.cryptpad.fr/#/donate?on=' + origin, + upgradeURL: 'https://accounts.cryptpad.fr/#/?on=' + origin, account: {}, }; @@ -809,9 +811,9 @@ define([ (quota >= 0.8 || alwaysDisplayUpgrade) && data.plan !== "power") { - var origin = encodeURIComponent(window.location.hostname); + // TODO show donate url if applicable var $upgradeLink = $('', { - href: "https://accounts.cryptpad.fr/#!on=" + origin, + href: common.upgradeLink, rel: "noreferrer noopener", target: "_blank", }).appendTo($container); diff --git a/www/file/main.js b/www/file/main.js index 82c5d01fe..5d6542f24 100644 --- a/www/file/main.js +++ b/www/file/main.js @@ -361,7 +361,10 @@ define([ var dropped = e.originalEvent.dataTransfer.files; counter = 0; $label.removeClass('hovering'); - handleFile(dropped[0]); + + Array.prototype.slice.call(dropped).forEach(function (d) { + handleFile(d); + }); }); // we're in upload mode