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

@ -253,7 +253,7 @@ Ox.TableList = function(options, self) {
tooltip: self.options.clearButtonTooltip
})
.addClass('OxClear')
.attr({src: Ox.UI.getImageURL('symbolClose')})
.attr({src: Ox.getImageURL('symbolClose')})
.css(Ox.UI.SCROLLBAR_SIZE == 16 ? {
paddingLeft: '4px',
paddingRight: '2px',
@ -467,7 +467,7 @@ Ox.TableList = function(options, self) {
if (column.titleImage) {
self.$titleImages[i] = $('<img>').
attr({
src: Ox.UI.getImageURL(
src: Ox.getImageURL(
'symbol' + Ox.toTitleCase(column.titleImage)
)
})
@ -478,7 +478,7 @@ Ox.TableList = function(options, self) {
if (column.operator) {
self.$orderImages[i] = $('<img>')
.attr({
src: Ox.UI.getImageURL(
src: Ox.getImageURL(
'symbol' + (column.operator == '+' ? 'Up' : 'Down'),
'selected'
)
@ -909,7 +909,7 @@ Ox.TableList = function(options, self) {
});
if (self.visibleColumns[pos].titleImage) {
self.$titleImages[pos].attr({
src: Ox.UI.getImageURL(
src: Ox.getImageURL(
'symbol' + Ox.toTitleCase(self.visibleColumns[pos].titleImage),
isSelected ? 'selected' : ''
)
@ -952,14 +952,14 @@ Ox.TableList = function(options, self) {
var $element = $(element),
data = Ox.UI.getImageData($element.attr('src'));
if (data && data.color == 'selected') {
$element.attr({src: Ox.UI.getImageURL(data.name, 'default')});
$element.attr({src: Ox.getImageURL(data.name, 'default')});
}
});
that.$body.find('.OxSelected img').each(function(i, element) {
var $element = $(element),
data = Ox.UI.getImageData($element.attr('src'));
if (data && data.color == 'default') {
$element.attr({src: Ox.UI.getImageURL(data.name, 'selected')});
$element.attr({src: Ox.getImageURL(data.name, 'selected')});
}
});
}
@ -969,7 +969,7 @@ Ox.TableList = function(options, self) {
pos = getColumnPositionById(id);
if (pos > -1) {
self.$orderImages[pos].attr({
src: Ox.UI.getImageURL(
src: Ox.getImageURL(
'symbol' + (operator == '+' ? 'Up' : 'Down'),
'selected'
)

View file

@ -128,7 +128,7 @@ Ox.TreeList = function(options, self) {
$icon = $('<img>').attr({src: self.options.icon});
}
} else {
$icon = $('<img>').attr({src: Ox.UI.getImageURL(
$icon = $('<img>').attr({src: Ox.getImageURL(
'symbol' + (expanded ? 'Down' : 'Right')
)});
}