fix bug where some images would not be switched when switching themes

This commit is contained in:
rlx 2011-01-15 16:27:10 +00:00
parent 3f05b547d8
commit 64e383ea4b

View file

@ -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) +