Commit a6539929 authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

cloudbar: Handle relative service icon urls

parent 068b5c3d
......@@ -59,7 +59,11 @@ $(document).ready(function(){
var title = el.cloudbar.name || el.verbose_name || el.name;
if (!el.cloudbar.show) { return }
if (el.cloudbar.icon) {
slink.append($('<img alt="'+title+'" src="'+el.cloudbar.icon+'"/>'));
var iconloc = el.cloudbar.icon;
if (el.cloudbar.icon.substring(0, 4) != 'http') {
iconloc = cssloc + el.cloudbar.icon;
}
slink.append($('<img alt="'+title+'" src="'+iconloc+'"/>'));
slink.addClass("with-icon");
} else {
slink.html(title);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment