forked from 0x2620/oxjs
Ox.UI.getImageURL -> Ox.getImageURL
This commit is contained in:
parent
1000cfe73e
commit
4ea696b451
14 changed files with 36 additions and 36 deletions
|
|
@ -99,7 +99,7 @@ Ox.Theme = (function() {
|
|||
$('.OxColor').each(function() {
|
||||
var $element = $(this);
|
||||
if ($element.hasClass('OxColorName')) {
|
||||
$element.attr({src: Ox.UI.getImageURL(
|
||||
$element.attr({src: Ox.getImageURL(
|
||||
$element.data('OxImage'), $element.data('OxColor'), theme
|
||||
)});
|
||||
} else {
|
||||
|
|
@ -121,7 +121,7 @@ Ox.Theme = (function() {
|
|||
var $element = $(this),
|
||||
data = Ox.UI.getImageData($element.attr('src'));
|
||||
data && $element.attr({
|
||||
src: Ox.UI.getImageURL(data.name, data.color, theme)
|
||||
src: Ox.getImageURL(data.name, data.color, theme)
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
@ -166,7 +166,7 @@ Ox.Theme = (function() {
|
|||
that.getColorImage = function(name, value, tooltip) {
|
||||
return (tooltip ? Ox.Element({element: '<img>', tooltip: tooltip}) : $('<img>'))
|
||||
.addClass('OxColor OxColorName')
|
||||
.attr({src: Ox.UI.getImageURL(name, value)})
|
||||
.attr({src: Ox.getImageURL(name, value)})
|
||||
.data({OxColor: value, OxImage: name});
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue