mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
eliminate this nasty JavaScript that prints the button.
This commit is contained in:
parent
18dfa59377
commit
dca29e98dc
@ -382,24 +382,20 @@
|
||||
if (!empty($CFG->usesid) && !isset($_COOKIE[session_name()])) {
|
||||
$attempturl = sid_process_url($attempturl);
|
||||
}
|
||||
|
||||
// TODO eliminate this nasty JavaScript that prints the button.
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
document.write('<input type="button" value="<?php echo $buttontext ?>" onclick="javascript: <?php
|
||||
|
||||
echo '<input type="button" value="'.$buttontext.'" onclick="javascript:';
|
||||
if ($strconfirmstartattempt) {
|
||||
echo "if (confirm(\\'".addslashes_js($strconfirmstartattempt)."\\'))";
|
||||
}
|
||||
?> window.open(\'<?php echo $attempturl ?>\', \'<?php echo $window ?>\', \'<?php echo $windowoptions ?>\'); " />');
|
||||
//]]>
|
||||
</script>
|
||||
}
|
||||
echo " window.open('$attempturl','$window','$windowoptions'); ".' " />';
|
||||
|
||||
?>
|
||||
<noscript>
|
||||
<div>
|
||||
<?php print_heading(get_string('noscript', 'quiz')); ?>
|
||||
</div>
|
||||
</noscript>
|
||||
<?php
|
||||
<?php
|
||||
}
|
||||
|
||||
echo "</div>\n";
|
||||
|
Loading…
x
Reference in New Issue
Block a user