1
0
Fork 0
forked from 0x2620/oxjs

load svg images inline

This commit is contained in:
rolux 2011-08-09 19:00:39 +02:00
commit dd7191e8d4
12 changed files with 78 additions and 59 deletions

View file

@ -91,8 +91,8 @@ Ox.TreeList = function(options, self) {
$('<img>')
.addClass('OxToggle')
.attr({
src: Ox.UI.getImagePath(
'symbol' + (data.expanded ? 'Down' : 'Right') + '.svg'
src: Ox.UI.getImageURL(
'symbol' + (data.expanded ? 'Down' : 'Right')
)
})
.css({
@ -186,8 +186,8 @@ Ox.TreeList = function(options, self) {
}
});
$img.attr({
src: Ox.UI.getImagePath(
'symbol' + (expanded ? 'Down' : 'Right') + '.svg'
src: Ox.UI.getImageURL(
'symbol' + (expanded ? 'Down' : 'Right')
)
});
that.$element.value(item.id, 'expanded', expanded);