Browse Source

Fixed url drag and drop link import

Tobias Reich 9 years ago
parent
commit
ec4842cad5
3 changed files with 4 additions and 3 deletions
  1. 0 0
      dist/main.css
  2. 0 0
      dist/main.js
  3. 4 3
      src/scripts/upload.js

File diff suppressed because it is too large
+ 0 - 0
dist/main.css


File diff suppressed because it is too large
+ 0 - 0
dist/main.js


+ 4 - 3
src/scripts/upload.js

@@ -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',

Some files were not shown because too many files changed in this diff