Browse Source

Added API to get absolute url.

pull/195/head
Joachim Bauch 10 years ago
parent
commit
6e54e7fc16
  1. 5
      static/js/services/resturl.js

5
static/js/services/resturl.js

@ -64,6 +64,11 @@ define(["underscore"], function(_) {
} }
return url.join("/"); return url.join("/");
}; };
RestURL.prototype.createAbsoluteUrl = function(url) {
var link = $window.document.createElement("a");
link.href = url;
return link.href;
};
return new RestURL(); return new RestURL();
}]; }];
}); });

Loading…
Cancel
Save