Now you can toggle mathbox and waterfall

This commit is contained in:
ha7ilm 2016-08-11 22:57:46 +02:00
parent 327ef6b51b
commit 81be5fb49a

View File

@ -2101,9 +2101,10 @@ function mathbox_init()
function mathbox_toggle()
{
mathbox_container.style.display="block";
if(mathbox_mode == MATHBOX_MODES.UNINITIALIZED) mathbox_init();
mathbox_mode = (mathbox_mode == MATHBOX_MODES.NONE) ? MATHBOX_MODES.WATERFALL : MATHBOX_MODES.NONE;
mathbox_container.style.display = (mathbox_mode == MATHBOX_MODES.WATERFALL) ? "block" : "none";
mathbox_clear_data();
waterfall_clear();
}