Fix floating value read

Cette révision appartient à :
Stéphane Goetz 2016-04-08 00:23:12 +02:00
Parent f78a5ec245
révision 108545ee10

Voir le fichier

@ -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);
});