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
|
|
@ -69,7 +69,7 @@ Ox.DocPage = function(options, self) {
|
|||
})
|
||||
.append(
|
||||
$('<img>')
|
||||
.attr({src: Ox.UI.getImagePath('symbolDown.svg')})
|
||||
.attr({src: Ox.UI.getImageURL('symbolDown')})
|
||||
.css({
|
||||
width: '12px',
|
||||
height: '12px',
|
||||
|
|
@ -77,11 +77,11 @@ Ox.DocPage = function(options, self) {
|
|||
})
|
||||
.click(function() {
|
||||
var $this = $(this),
|
||||
isExpanded = $this.attr('src') == Ox.UI.getImagePath('symbolDown.svg');
|
||||
isExpanded = $this.attr('src') == Ox.UI.getImageURL('symbolDown');
|
||||
$this.attr({
|
||||
src: isExpanded ?
|
||||
Ox.UI.getImagePath('symbolRight.svg') :
|
||||
Ox.UI.getImagePath('symbolDown.svg')
|
||||
Ox.UI.getImageURL('symbolRight') :
|
||||
Ox.UI.getImageURL('symbolDown')
|
||||
});
|
||||
$('.' + className).each(function() {
|
||||
var $this = $(this);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue