[themes] fix bug 49875
This commit is contained in:
parent
3efb5d6d70
commit
1d989777a7
|
@ -250,7 +250,7 @@ define([
|
||||||
|
|
||||||
setTheme: function (id) {
|
setTheme: function (id) {
|
||||||
if ( !!themes_map[id] ) {
|
if ( !!themes_map[id] ) {
|
||||||
var classname = document.documentElement.className.replace(/theme-\w+\s?/, '');
|
var classname = document.body.className.replace(/theme-\w+\s?/, '');
|
||||||
document.body.className = classname;
|
document.body.className = classname;
|
||||||
|
|
||||||
$('body').addClass(id);
|
$('body').addClass(id);
|
||||||
|
|
Loading…
Reference in a new issue