Fixed url drag and drop link import

This commit is contained in:
Tobias Reich 2015-05-04 22:16:29 +02:00
parent 3458b27105
commit ec4842cad5
3 changed files with 4 additions and 3 deletions

BIN
dist/main.css vendored

Binary file not shown.

BIN
dist/main.js vendored

Binary file not shown.

View File

@ -234,9 +234,10 @@ upload.start = {
},
url: function() {
url: function(url = '') {
var albumID = album.getID(),
var albumID = album.getID(),
url = (typeof url === 'string' ? url : ''),
action;
if (albumID===false) albumID = 0;
@ -293,7 +294,7 @@ upload.start = {
}
basicModal.show({
body: "<p>Please enter the direct link to a photo to import it: <input class='text' data-name='link' type='text' placeholder='http://' value=''></p>",
body: "<p>Please enter the direct link to a photo to import it: <input class='text' data-name='link' type='text' placeholder='http://' value='" + url + "'></p>",
buttons: {
action: {
title: 'Import',