From 555bfa16d03df34a40b477667cfde4d4b83afc61 Mon Sep 17 00:00:00 2001 From: csantossaenz Date: Fri, 11 May 2007 10:57:20 +0000 Subject: [PATCH] Added function addslashes_js() to make the javacript receive the strings correctly --- mod/scorm/mod.html | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/mod/scorm/mod.html b/mod/scorm/mod.html index 3bb8c070858..6ed9c1d7ad2 100755 --- a/mod/scorm/mod.html +++ b/mod/scorm/mod.html @@ -100,6 +100,10 @@ $strmenubar = get_string('menubar', 'scorm'); $strtoolbar = get_string('toolbar', 'scorm'); $strstatus = get_string('statusbar', 'scorm'); + $strerrorlog = get_string('errorlogs','scorm'); + $strvalidation = print_string('validation','scorm'); + $strerrorlog = addslashes_js($strerrorlog); + $strvalidation = addslashes_js($strvalidation); ?> @@ -161,9 +165,11 @@ return false; } } else { - result = ': '+ result + '\n'; + //result = ': '+ result + '\n'; + result = ': '+ result + '\n'; if (errorlogs != '') { - result.concat(':\n'+errorlogs); + //result.concat(':\n'+errorlogs); + result = ': '+ result + '\n'; } alert(result); return false;