From d13e54b2e6e3886c876f9dc04978e7d4e2799f6b Mon Sep 17 00:00:00 2001 From: Jean-Michel Vedrine Date: Fri, 29 Dec 2017 13:47:37 +0100 Subject: Fix parser style phase 3 --- renderer.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'renderer.php') diff --git a/renderer.php b/renderer.php index d2d00f0..529fb0e 100644 --- a/renderer.php +++ b/renderer.php @@ -85,8 +85,7 @@ class qtype_algebra_renderer extends qtype_renderer { // Javascript function which the button uses to display the rendering // This function sents the source of the iframe to the 'displayformula.php' script giving // it an argument of the formula entered by the student. - $displayfunction = - 'function '.$dfname."() {\n". + $displayfunction = 'function '.$dfname."() {\n". ' var text="vars='.$varnames.'&expr="+escape(document.getElementsByName("'.$inputname.'")[0].value);'."\n". " if(text.length != 0) {\n". ' document.getElementsByName("'.$iframename.'")[0].src="'. -- cgit v1.2.3