From 1e8ea69ee169237ed047199ce62fda33a63ebf3d Mon Sep 17 00:00:00 2001 From: Denis Fedoseev Date: Thu, 3 Aug 2017 09:10:23 +0300 Subject: [PATCH] trim string in clipboard --- templates/includes/images_list.html.ep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/includes/images_list.html.ep b/templates/includes/images_list.html.ep index 1dfafe7..97c32b8 100644 --- a/templates/includes/images_list.html.ep +++ b/templates/includes/images_list.html.ep @@ -101,7 +101,7 @@ //TODO: rewrite it to vue/JS from jquery var $temp = $(""); $("body").append($temp); - $temp.val($(event.target).text()).select(); + $temp.val($(event.target).text().trim()).select(); document.execCommand("copy"); $temp.remove(); },