Fix floating value read

This commit is contained in:
Stéphane Goetz 2016-04-08 00:23:12 +02:00
bovenliggende f78a5ec245
commit 108545ee10

Bestand weergeven

@ -84,10 +84,19 @@ $(function () {
codeBlockView = $('.right-column');
if (!codeBlockView.size()) return;
var floating = $(document.body).hasClass("with-float");
codeBlockState = localStorage.getItem("codeBlockState");
if (!codeBlockState) {
codeBlockState = 2;
} else codeBlockState = parseInt(codeBlockState);
codeBlockState = floating? 2 : 1;
} else {
codeBlockState = parseInt(codeBlockState);
}
if (!floating && codeBlockState == 2) {
codeBlockState = 1;
}
setCodeBlockStyle(codeBlockState);
});