shortener bug with % sign, thx to @simsa0

This commit is contained in:
Hannes Mannerheim 2014-10-19 15:30:45 +02:00
parent 4dca9463b4
commit 676ab4aba0

View File

@ -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($('<div/>').text(data.url.url).html(), data.shorturl));
shortenButton.parent().parent().siblings('.queet-box-syntax').html(shortenButton.parent().parent().siblings('.queet-box-syntax').html().replace($('<div/>').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
}