Commit 16f3648b authored by d11e9's avatar d11e9

better naming for RHP toggle

parent 292d87d4
......@@ -463,12 +463,12 @@
// ----------------- toggle right hand panel -----------------
var toggledRHP = false;
var hidingRHP = false;
$('.toggleRHP').click(function(){
toggledRHP = !toggledRHP;
setEditorSize( toggledRHP ? 0 : window.localStorage[EDITOR_SIZE_CACHE_KEY] );
$('.toggleRHP').toggleClass('toggled', toggledRHP);
if (!toggledRHP) compile();
hidingRHP = !hidingRHP;
setEditorSize( hidingRHP ? 0 : window.localStorage[EDITOR_SIZE_CACHE_KEY] );
$('.toggleRHP').toggleClass('hiding', hidingRHP);
if (!hidingRHP) compile();
});
......@@ -530,7 +530,7 @@
});
}
if (noFatalErrors && !toggledRHP) renderContracts(data, editor.getValue());
if (noFatalErrors && !hidingRHP) renderContracts(data, editor.getValue());
};
var compileTimeout = null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment