mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Added CDATA to Javascript
This commit is contained in:
parent
a4e2f9e9bb
commit
5e87b920e3
3 changed files with 8 additions and 4 deletions
|
@ -1045,6 +1045,7 @@ function validate_' . $this->_attributes['id'] . '(frm) {
|
|||
|
||||
function getLockOptionEndScript(){
|
||||
$js = '<script type="text/javascript" language="javascript">'."\n";
|
||||
$js .= '//<![CDATA['."\n";
|
||||
$js .= "var ".$this->getAttribute('id')."items= {";
|
||||
foreach ($this->_dependencies as $dependentOn => $elements){
|
||||
$js .= "'$dependentOn'".' : {dependents :[';
|
||||
|
@ -1065,6 +1066,7 @@ function validate_' . $this->_attributes['id'] . '(frm) {
|
|||
$js=rtrim($js, ",\n");
|
||||
$js .= '};'."\n";
|
||||
$js .="lockoptionsallsetup('".$this->getAttribute('id')."');\n";
|
||||
$js .='//]]>'."\n";
|
||||
$js .='</script>'."\n";
|
||||
return $js;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue