Browse Source

support decodeShortURI returning an array [url,mimetype] instead of just url string

readme-update
Miguel Freitas 9 years ago
parent
commit
dccc5695e0
  1. 3
      js/interface_common.js

3
js/interface_common.js

@ -898,7 +898,8 @@ function fetchShortenedURI(req) { @@ -898,7 +898,8 @@ function fetchShortenedURI(req) {
);
}
function applyShortenedURI(short, long) {
function applyShortenedURI(short, uriAndMimetype) {
var long = (uriAndMimetype instanceof Array) ? uriAndMimetype[0] : uriAndMimetype;
var elems = getElem('.link-shortened[href="' + short + '"]')
.attr('href', long)
.removeClass('link-shortened')

Loading…
Cancel
Save