forked from 0x2620/oxjs
load svg images inline
This commit is contained in:
parent
6118eae51a
commit
dd7191e8d4
12 changed files with 78 additions and 59 deletions
|
|
@ -32,14 +32,13 @@ Ox.Theme = function(theme) {
|
|||
Ox.UI.$body
|
||||
.addClass('OxTheme' + Ox.toTitleCase(theme))
|
||||
.removeClass('OxTheme' + Ox.toTitleCase(currentTheme));
|
||||
$('img:not(.OxVideo)').add('input[type=image]:not(.OxVideo)').each(function() {
|
||||
var $this = $(this);
|
||||
$('img:not(.OxVideo)').add('input[type="image"]:not(.OxVideo)').each(function() {
|
||||
var $this = $(this),
|
||||
src = $this.attr('src');
|
||||
$this.attr({
|
||||
src: $this.attr('src').replace(
|
||||
'/Ox.UI/themes/' + currentTheme + '/',
|
||||
'/Ox.UI/themes/' + theme + '/'
|
||||
)
|
||||
src: Ox.UI.getImageURL(Ox.UI.getImageName(src), theme)
|
||||
});
|
||||
Ox.print(Ox.UI.getImageName(src), Ox.UI.getImageURL(Ox.UI.getImageName(src), theme))
|
||||
});
|
||||
}
|
||||
return theme;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue