layouts global registrieren, nicht pro uhr

This commit is contained in:
Manuel Friedli 2013-11-27 17:36:05 +01:00
parent 1c06b7248a
commit 2fa23c2f07
5 changed files with 17 additions and 16 deletions

View file

@ -59,13 +59,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
var theme = $.cookie('theme');
var layout = $.cookie('layout');
var status = $.cookie('status');
if (theme == undefined) {
if (theme === undefined || theme == 'undefined') {
theme = 'black';
}
if(layout == undefined) {
if(layout === undefined || layout == 'undefined') {
layout = 'de_CH';
}
if (status == undefined) {
if (status === undefined || status == 'undefined') {
status = 'on';
}
$('#themeswitcher').val(theme);