Skip to content

Commit

Permalink
Fix edit lp item - refs #7972
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelFQC committed Nov 19, 2015
1 parent 2c93a77 commit 92c5d94
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion main/newscorm/lp_edit_item.php
Expand Up @@ -25,7 +25,25 @@
/* Header and action code */

$htmlHeadXtra[] = '
<script>'.$_SESSION['oLP']->get_js_dropdown_array().'
<script>'.$_SESSION['oLP']->get_js_dropdown_array().

'function load_cbo(id){' ."\n" .
'if (!id) {return false;}'.
'var cbo = document.getElementById(\'previous\');' .
'for(var i = cbo.length - 1; i > 0; i--) {' .
'cbo.options[i] = null;' .
'}' ."\n" .
'var k=0;' .
'for(var i = 1; i <= child_name[id].length; i++){' ."\n" .
' cbo.options[i] = new Option(child_name[id][i-1], child_value[id][i-1]);' ."\n" .
' k=i;' ."\n" .
'}' ."\n" .
//'if( typeof cbo != "undefined" ) {'."\n" .
'cbo.options[k].selected = true;'."\n" .
//'}'."\n" .

'$(\'#previous\').selectpicker(\'refresh\');' .
'}
$(document).on("ready", function() {
CKEDITOR.on("instanceReady", function (e) {
Expand Down

0 comments on commit 92c5d94

Please sign in to comment.