From 676ab4aba0502a6d4d6c413a95e716d01a71d11e Mon Sep 17 00:00:00 2001 From: Hannes Mannerheim Date: Sun, 19 Oct 2014 15:30:45 +0200 Subject: [PATCH] shortener bug with % sign, thx to @simsa0 --- js/misc-functions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/misc-functions.js b/js/misc-functions.js index be6968b..0348263 100644 --- a/js/misc-functions.js +++ b/js/misc-functions.js @@ -809,7 +809,7 @@ function shortenUrlsInBox(shortenButton) { console.log(data.url); - shortenButton.parent().parent().siblings('.queet-box-syntax').html(shortenButton.parent().parent().siblings('.queet-box-syntax').html().replace($('
').text(data.url.url).html(), data.shorturl)); + shortenButton.parent().parent().siblings('.queet-box-syntax').html(shortenButton.parent().parent().siblings('.queet-box-syntax').html().replace($('
').text(decodeURIComponent(data.url.url)).html(), data.shorturl)); shortenButton.parent().parent().siblings('.queet-box-syntax').trigger('keyup'); shortenButton.addClass('disabled'); // make sure the button is disabled right after }