mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-01-14 08:58:05 +00:00
fix applyShortenedURI() to handle detached elements too
This commit is contained in:
parent
7542eddf5b
commit
08856095b0
@ -847,7 +847,7 @@ function fetchShortenedURI(req) {
|
||||
}
|
||||
|
||||
function applyShortenedURI(short, long) {
|
||||
var elems = $('.link-shortened[href="' + short + '"]')
|
||||
var elems = getElem('.link-shortened[href="' + short + '"]')
|
||||
.attr('href', long)
|
||||
.removeClass('link-shortened')
|
||||
.off('click mouseup')
|
||||
|
Loading…
Reference in New Issue
Block a user