forked from 0x2620/oxjs
Ox -> Ox.UI
This commit is contained in:
parent
e2a42ab04e
commit
552aba4271
17 changed files with 46 additions and 46 deletions
|
|
@ -46,7 +46,7 @@ Ox.IconItem = function(options, self) {
|
|||
infoIsObject: Ox.isObject(self.options.info),
|
||||
lineLength: self.options.itemWidth == 64 ? 15 : 23,
|
||||
lines: self.options.itemWidth == 64 ? 4 : 5,
|
||||
url: Ox.UI_PATH + 'png/transparent.png'
|
||||
url: Ox.UI.PATH + 'png/transparent.png'
|
||||
});
|
||||
|
||||
self.title = formatText(self.options.title, self.lines - 1 - self.infoIsObject, self.lineLength);
|
||||
|
|
|
|||
|
|
@ -253,7 +253,7 @@ Ox.TableList = function(options, self) {
|
|||
tooltip: self.options.clearButtonTooltip
|
||||
})
|
||||
.addClass('OxClear')
|
||||
.attr({src: Ox.getImageURL('symbolClose')})
|
||||
.attr({src: Ox.UI.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.getImageURL(
|
||||
src: Ox.UI.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.getImageURL(
|
||||
src: Ox.UI.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.getImageURL(
|
||||
src: Ox.UI.getImageURL(
|
||||
'symbol' + Ox.toTitleCase(self.visibleColumns[pos].titleImage),
|
||||
isSelected ? 'selected' : ''
|
||||
)
|
||||
|
|
@ -950,16 +950,16 @@ Ox.TableList = function(options, self) {
|
|||
// FIXME: not yet used
|
||||
that.$body.find('img').each(function(i, element) {
|
||||
var $element = $(element),
|
||||
data = Ox.getImageData($element.attr('src'));
|
||||
data = Ox.UI.getImageData($element.attr('src'));
|
||||
if (data && data.color == 'selected') {
|
||||
$element.attr({src: Ox.getImageURL(data.name, 'default')});
|
||||
$element.attr({src: Ox.UI.getImageURL(data.name, 'default')});
|
||||
}
|
||||
});
|
||||
that.$body.find('.OxSelected img').each(function(i, element) {
|
||||
var $element = $(element),
|
||||
data = Ox.getImageData($element.attr('src'));
|
||||
data = Ox.UI.getImageData($element.attr('src'));
|
||||
if (data && data.color == 'default') {
|
||||
$element.attr({src: Ox.getImageURL(data.name, 'selected')});
|
||||
$element.attr({src: Ox.UI.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.getImageURL(
|
||||
src: Ox.UI.getImageURL(
|
||||
'symbol' + (operator == '+' ? 'Up' : 'Down'),
|
||||
'selected'
|
||||
)
|
||||
|
|
|
|||
|
|
@ -128,7 +128,7 @@ Ox.TreeList = function(options, self) {
|
|||
$icon = $('<img>').attr({src: self.options.icon});
|
||||
}
|
||||
} else {
|
||||
$icon = $('<img>').attr({src: Ox.getImageURL(
|
||||
$icon = $('<img>').attr({src: Ox.UI.getImageURL(
|
||||
'symbol' + (expanded ? 'Down' : 'Right')
|
||||
)});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue