fix applyShortenedURI() to handle detached elements too

This commit is contained in:
Simon Grim 2016-03-21 23:10:50 +05:00
parent 7542eddf5b
commit 08856095b0

View File

@ -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')