shortener bug with % sign, thx to @simsa0
This commit is contained in:
parent
4dca9463b4
commit
676ab4aba0
|
@ -809,7 +809,7 @@ function shortenUrlsInBox(shortenButton) {
|
||||||
|
|
||||||
console.log(data.url);
|
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.parent().parent().siblings('.queet-box-syntax').trigger('keyup');
|
||||||
shortenButton.addClass('disabled'); // make sure the button is disabled right after
|
shortenButton.addClass('disabled'); // make sure the button is disabled right after
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user