add filename to url
authorPepijn de Vos <pepijndevos@gmail.com>
Sun, 21 Apr 2013 20:08:30 +0000 (22:08 +0200)
committerPepijn de Vos <pepijndevos@gmail.com>
Sun, 21 Apr 2013 20:08:30 +0000 (22:08 +0200)
client/assets/plugins/filepicker.html

index 000fbb234398c776dad41cf2e94faf538c4c4fcd..95f323cf257f0c4d0e265a941110f6c0c1de816d 100644 (file)
@@ -12,7 +12,8 @@
             var area = $("#kiwi #controlbox textarea");
 
             for (var i = 0; files.length>i; i++) {
-                area.val(area.val() + " " + files[i].url);
+                var f = files[i];
+                area.val(area.val() + " " + f.url + "+" + encodeURIComponent(f.filename));
             }
         }
 
@@ -23,4 +24,4 @@
 
         control.addPluginIcon($icon);
     });
-</script>
\ No newline at end of file
+</script>