Ox.UI.getImageURL -> Ox.getImageURL

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

View file

@ -145,8 +145,8 @@ Ox.DocPage = function(options, self) {
Ox.$('<img>')
.attr({
src: isExpanded
? Ox.UI.getImageURL('symbolDown')
: Ox.UI.getImageURL('symbolRight')
? Ox.getImageURL('symbolDown')
: Ox.getImageURL('symbolRight')
})
.css({
width: '12px',
@ -156,11 +156,11 @@ Ox.DocPage = function(options, self) {
.on({
click: function() {
var $this = $(this),
isExpanded = $this.attr('src') == Ox.UI.getImageURL('symbolRight');
isExpanded = $this.attr('src') == Ox.getImageURL('symbolRight');
$this.attr({
src: isExpanded
? Ox.UI.getImageURL('symbolDown')
: Ox.UI.getImageURL('symbolRight')
? Ox.getImageURL('symbolDown')
: Ox.getImageURL('symbolRight')
});
$('.' + className).each(function() {
var $this = $(this), isHidden = false;

View file

@ -197,7 +197,7 @@ Ox.DocPanel = function(options, self) {
self.options.showTooltips ? getTooltip(results) : null
);
} else if (!Ox.endsWith(id, '/')) {
$icon = $('<img>').attr({src: Ox.UI.getImageURL('symbolCenter')});
$icon = $('<img>').attr({src: Ox.getImageURL('symbolCenter')});
}
return $icon;
}
@ -293,7 +293,7 @@ Ox.DocPanel = function(options, self) {
expanded: self.options.expanded,
icon: self.options.showTests
? getIcon
: Ox.UI.getImageURL('symbolCenter'),
: Ox.getImageURL('symbolCenter'),
items: treeItems,
selected: self.options.selected ? [self.options.selected] : '',
width: self.options.size

View file

@ -75,7 +75,7 @@ Ox.ExamplePanel = function(options, self) {
});
self.$list = Ox.TreeList({
expanded: true,
icon: Ox.UI.getImageURL('symbolCenter'),
icon: Ox.getImageURL('symbolCenter'),
items: treeItems,
selected: self.options.selected ? [self.options.selected] : [],
width: self.options.size

View file

@ -19,7 +19,7 @@ Ox.LoadingIcon = function(options, self) {
.options(options || {})
.addClass('OxLoadingIcon')
.attr({
src: Ox.UI.getImageURL(
src: Ox.getImageURL(
'symbolLoading',
self.options.video ? 'videoIcon' : null
)

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

View file

@ -152,7 +152,7 @@ Ox.Button = function(options, self) {
function setTitle() {
if (self.options.type == 'image') {
that.attr({
src: Ox.UI.getImageURL(
src: Ox.getImageURL(
'symbol' + self.options.title[0].toUpperCase()
+ self.options.title.slice(1),
self.options.style == 'overlay' ? 'overlay' + (

View file

@ -31,7 +31,7 @@ Ox.FormPanel = function(options, self) {
format: function(value) {
return $('<img>')
.attr({
src: Ox.UI.getImageURL('symbolCheck')
src: Ox.getImageURL('symbolCheck')
})
.css({
width: '10px',

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

View file

@ -81,7 +81,7 @@ Ox.BlockVideoTimeline = function(options, self) {
self.$positionMarker = Ox.$('<img>')
.attr({
src: Ox.UI.getImageURL('markerPosition')
src: Ox.getImageURL('markerPosition')
})
.addClass('OxMarkerPosition')
.appendTo(that);
@ -94,7 +94,7 @@ Ox.BlockVideoTimeline = function(options, self) {
self.$pointMarker[point] = Ox.$('<img>')
.addClass('OxMarkerPoint' + titlecase)
.attr({
src: Ox.UI.getImageURL('marker' + titlecase)
src: Ox.getImageURL('marker' + titlecase)
})
.appendTo(that);
setPointMarker(point);

View file

@ -98,10 +98,10 @@ Ox.LargeVideoTimeline = function(options, self) {
setTimeout(function() {
var $cut = $('<img>')
.addClass('OxCut')
.attr({src: Ox.UI.getImageURL('markerCut')}),
.attr({src: Ox.getImageURL('markerCut')}),
$chapter = $('<img>')
.addClass('OxChapter')
.attr({src: Ox.UI.getImageURL('markerChapter')}),
.attr({src: Ox.getImageURL('markerChapter')}),
chapters = self.options.chapters.slice(1).map(function(chapter) {
return chapter.position;
});
@ -115,7 +115,7 @@ Ox.LargeVideoTimeline = function(options, self) {
self.$markerPosition = $('<img>')
.addClass('OxMarkerPosition')
.attr({src: Ox.UI.getImageURL('markerPosition')})
.attr({src: Ox.getImageURL('markerPosition')})
.appendTo(that);
setMarker();
@ -124,7 +124,7 @@ Ox.LargeVideoTimeline = function(options, self) {
var titlecase = Ox.toTitleCase(point);
self.$pointMarker[point] = $('<img>')
.addClass('OxMarkerPoint' + titlecase)
.attr({src: Ox.UI.getImageURL('marker' + titlecase)})
.attr({src: Ox.getImageURL('marker' + titlecase)})
.appendTo(self.$timeline);
setPointMarker(point);
});

View file

@ -127,7 +127,7 @@ Ox.SmallVideoTimeline = function(options, self) {
self.$positionMarker = $('<img>')
.addClass('OxMarkerPosition')
.attr({
src: Ox.UI.getImageURL('markerPosition')
src: Ox.getImageURL('markerPosition')
})
.appendTo(that);
}
@ -140,7 +140,7 @@ Ox.SmallVideoTimeline = function(options, self) {
self.$pointMarker[point] = $('<img>')
.addClass('OxMarkerPoint' + titlecase)
.attr({
src: Ox.UI.getImageURL('marker' + titlecase)
src: Ox.getImageURL('marker' + titlecase)
})
.appendTo(that);
setPointMarker(point);

View file

@ -552,7 +552,7 @@ Ox.VideoPlayer = function(options, self) {
self.$playIcon = $('<img>')
.addClass('OxPlayIcon OxVideo')
.attr({
src: Ox.UI.getImageURL('symbol' + (
src: Ox.getImageURL('symbol' + (
self.options.paused ? 'Play' : 'Pause'
), 'videoIcon')
})
@ -572,7 +572,7 @@ Ox.VideoPlayer = function(options, self) {
})
.addClass('OxCensoredIcon OxVideo')
.attr({
src: Ox.UI.getImageURL(
src: Ox.getImageURL(
'symbol' + self.options.censoredIcon, 'videoIcon'
)
})
@ -609,7 +609,7 @@ Ox.VideoPlayer = function(options, self) {
self.$pointMarker[point][edge] = $('<img>')
.addClass('OxPointMarker OxPointMarker' + titleCase)
.attr({
src: Ox.UI.getImageURL('marker' + titleCase)
src: Ox.getImageURL('marker' + titleCase)
})
.appendTo(self.$videoContainer);
});
@ -2665,7 +2665,7 @@ Ox.VideoPlayer = function(options, self) {
function togglePlayIcon() {
self.$playIcon.attr({
src: Ox.UI.getImageURL(
src: Ox.getImageURL(
'symbol' + (self.options.paused ? 'Play' : 'Pause'
), 'videoIcon')
});

View file

@ -24,7 +24,7 @@ Ox.VideoPlayerMenu = function(options, self) {
return $item.data().group == group;
}).forEach(function($item) {
$($item.children()[1]).attr({
src: Ox.UI.getImageURL('symbol' + (
src: Ox.getImageURL('symbol' + (
$item.data().id == id ? 'Check' : 'None'
))
});
@ -62,7 +62,7 @@ Ox.VideoPlayerMenu = function(options, self) {
}
$('<div>').html(item.title).appendTo($item);
$('<img>').attr({
src: Ox.UI.getImageURL(
src: Ox.getImageURL(
'symbol' + (item.checked ? 'Check' : 'None')
)
}).appendTo($item);