[themes] debug themes toggle
This commit is contained in:
parent
538945fef2
commit
a166cf858c
|
@ -259,7 +259,7 @@ define([
|
|||
|
||||
setTheme: function (id, force) {
|
||||
if ( (this.currentThemeId() != id || force) && !!themes_map[id] ) {
|
||||
var classname = document.body.className.replace(/theme-\w+\s?/, '');
|
||||
var classname = document.body.className.replace(/theme-[\w-]+\s?/, '');
|
||||
document.body.className = classname;
|
||||
|
||||
$('body').addClass(id);
|
||||
|
|
Loading…
Reference in a new issue