MDL-24058 fixed JS string quoting

This commit is contained in:
Petr Skoda
2010-09-02 12:35:47 +00:00
parent 1d28bdbde1
commit 9e07366784
+1 -1
View File
@@ -424,7 +424,7 @@
echo '<div id="scormtablecontainer">';
if ($candelete) {
// Start form
$strreallydel = addslashes(get_string('deleteattemptcheck','scorm'));
$strreallydel = addslashes_js(get_string('deleteattemptcheck','scorm'));
echo '<form id="attemptsform" method="post" action="' . $reporturlwithdisplayoptions->out(true) .
'" onsubmit="return confirm(\''.$strreallydel.'\');">';
echo '<input type="hidden" name="action" value="delete"/>';