@@ -35,7 +35,7 @@ |
||
| 35 | 35 | |
| 36 | 36 | // Using the resource linker as a tool for adding resources to the learning path. |
| 37 | 37 | if ($action=="add" and $type=="learnpathitem") { |
| 38 | - $htmlHeadXtra[] = "<script language='JavaScript' type='text/javascript'> window.location=\"../resourcelinker/resourcelinker.php?source_id=5&action=$action&learnpath_id=$learnpath_id&chapter_id=$chapter_id&originalresource=no\"; </script>"; |
|
| 38 | + $htmlHeadXtra[] = "<script language='JavaScript' type='text/javascript'> window.location=\"../resourcelinker/resourcelinker.php?source_id=5&action=$action&learnpath_id=$learnpath_id&chapter_id=$chapter_id&originalresource=no\"; </script>"; |
|
| 39 | 39 | } |
| 40 | 40 | if ((!$is_allowed_to_edit) || ($isStudentView)) { |
| 41 | 41 | error_log('New LP - User not authorized in lp_build.php'); |
@@ -81,7 +81,7 @@ |
||
| 81 | 81 | |
| 82 | 82 | // Using the resource linker as a tool for adding resources to the learning path. |
| 83 | 83 | if ($action == 'add' && $type == 'learnpathitem') { |
| 84 | - $htmlHeadXtra[] = "<script type='text/javascript'> window.location=\"../resourcelinker/resourcelinker.php?source_id=5&action=$action&learnpath_id=$learnpath_id&chapter_id=$chapter_id&originalresource=no\"; </script>"; |
|
| 84 | + $htmlHeadXtra[] = "<script type='text/javascript'> window.location=\"../resourcelinker/resourcelinker.php?source_id=5&action=$action&learnpath_id=$learnpath_id&chapter_id=$chapter_id&originalresource=no\"; </script>"; |
|
| 85 | 85 | } |
| 86 | 86 | if ((!$is_allowed_to_edit)) { |
| 87 | 87 | error_log('New LP - User not authorized in lp_add_item.php'); |
@@ -47,10 +47,10 @@ |
||
| 47 | 47 | " . |
| 48 | 48 | "\n" . |
| 49 | 49 | '$().ready(function() {'."\n" . |
| 50 | - 'if ($(\'#previous\')) {'."\n" . |
|
| 50 | + 'if ($(\'#previous\')) {'."\n" . |
|
| 51 | 51 | 'if(\'parent is\'+$(\'#idParent\').val()) {'. |
| 52 | - 'load_cbo($(\'#idParent\').val());'."\n" . |
|
| 53 | - '}}'."\n" . |
|
| 52 | + 'load_cbo($(\'#idParent\').val());'."\n" . |
|
| 53 | + '}}'."\n" . |
|
| 54 | 54 | '});</script>'."\n" ; |
| 55 | 55 | |
| 56 | 56 | /* Constants and variables */ |