From 08856095b098a57b301dc3a02778da896e360e45 Mon Sep 17 00:00:00 2001 From: Simon Grim Date: Mon, 21 Mar 2016 23:10:50 +0500 Subject: [PATCH] fix applyShortenedURI() to handle detached elements too --- js/interface_common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/interface_common.js b/js/interface_common.js index 490895d..66f1171 100644 --- a/js/interface_common.js +++ b/js/interface_common.js @@ -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')