From cbb1ebdb30c52084a8c5bb1a97b52522c4d16588 Mon Sep 17 00:00:00 2001 From: Pepijn de Vos Date: Sun, 21 Apr 2013 22:08:30 +0200 Subject: [PATCH] add filename to url --- client/assets/plugins/filepicker.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/assets/plugins/filepicker.html b/client/assets/plugins/filepicker.html index 000fbb2..95f323c 100644 --- a/client/assets/plugins/filepicker.html +++ b/client/assets/plugins/filepicker.html @@ -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); }); - \ No newline at end of file + -- 2.25.1