Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
a6539929
Commit
a6539929
authored
May 22, 2013
by
Kostas Papadimitriou
Browse files
cloudbar: Handle relative service icon urls
parent
068b5c3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
snf-astakos-app/astakos/im/static/im/cloudbar/cloudbar.js
View file @
a6539929
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment