From: Pepijn de Vos Date: Sun, 21 Apr 2013 20:08:30 +0000 (+0200) Subject: add filename to url X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=cbb1ebdb30c52084a8c5bb1a97b52522c4d16588;p=KiwiIRC.git add filename to url --- 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 +