fix bug where some images would not be switched when switching themes
This commit is contained in:
parent
3f05b547d8
commit
64e383ea4b
1 changed files with 10 additions and 0 deletions
|
@ -1372,6 +1372,14 @@ requires
|
||||||
arg = arguments[0]
|
arg = arguments[0]
|
||||||
$body.addClass('OxTheme' + Ox.toTitleCase(arg));
|
$body.addClass('OxTheme' + Ox.toTitleCase(arg));
|
||||||
if (theme) {
|
if (theme) {
|
||||||
|
$('img').each(function() {
|
||||||
|
var $this = $(this);
|
||||||
|
$this.attr({
|
||||||
|
src: $this.attr('src').replace(
|
||||||
|
'/ox.ui.' + theme + '/', '/ox.ui.' + arg + '/'
|
||||||
|
)
|
||||||
|
});
|
||||||
|
});
|
||||||
$('input[type=image]').each(function() {
|
$('input[type=image]').each(function() {
|
||||||
var $this = $(this);
|
var $this = $(this);
|
||||||
$this.attr({
|
$this.attr({
|
||||||
|
@ -4299,6 +4307,8 @@ requires
|
||||||
type: 'text', // can be 'text' or 'image'
|
type: 'text', // can be 'text' or 'image'
|
||||||
width: 'auto'
|
width: 'auto'
|
||||||
})
|
})
|
||||||
|
// fixme: make default selection restorable
|
||||||
|
// or allow for extra action items below options
|
||||||
.options(options)
|
.options(options)
|
||||||
.addClass(
|
.addClass(
|
||||||
'OxSelect Ox' + Ox.toTitleCase(self.options.size) +
|
'OxSelect Ox' + Ox.toTitleCase(self.options.size) +
|
||||||
|
|
Loading…
Reference in a new issue