1
0
Fork 0
forked from 0x2620/oxjs

Ox.UI.getImageURL -> Ox.getImageURL

This commit is contained in:
rlx 2014-09-25 12:28:47 +02:00
commit 4ea696b451
14 changed files with 36 additions and 36 deletions

View file

@ -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});
};