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]
|
||||
$body.addClass('OxTheme' + Ox.toTitleCase(arg));
|
||||
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() {
|
||||
var $this = $(this);
|
||||
$this.attr({
|
||||
|
@ -4299,6 +4307,8 @@ requires
|
|||
type: 'text', // can be 'text' or 'image'
|
||||
width: 'auto'
|
||||
})
|
||||
// fixme: make default selection restorable
|
||||
// or allow for extra action items below options
|
||||
.options(options)
|
||||
.addClass(
|
||||
'OxSelect Ox' + Ox.toTitleCase(self.options.size) +
|
||||
|
|
Loading…
Reference in a new issue