From 64e383ea4b2fa712bca1c381dab863256056d5bd Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Sat, 15 Jan 2011 16:27:10 +0000 Subject: [PATCH] fix bug where some images would not be switched when switching themes --- build/js/ox.ui.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/build/js/ox.ui.js b/build/js/ox.ui.js index a1e10dbf..d49af069 100644 --- a/build/js/ox.ui.js +++ b/build/js/ox.ui.js @@ -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) +