Browse Source

Minor - format code

Julio Montoya 6 years ago
parent
commit
3df6466cf1
3 changed files with 5 additions and 4 deletions
  1. 1 0
      main/lp/lp_view.php
  2. 3 2
      main/lp/scorm_api.php
  3. 1 2
      main/template/default/learnpath/view.tpl

+ 1 - 0
main/lp/lp_view.php

@@ -531,6 +531,7 @@ $template->assign('glossary_tool_available_list', ['true', 'lp', 'exercise_and_l
 $gamificationMode = api_get_setting('gamification_mode');
 // ...AND this learning path is set in gamification mode, then change the display
 $gamificationMode = $gamificationMode && $lp->seriousgame_mode;
+
 $template->assign('gamification_mode', $gamificationMode);
 $template->assign('glossary_extra_tools', api_get_setting('show_glossary_in_extra_tools'));
 $template->assign('show_glossary_in_documents', api_get_setting('show_glossary_in_documents'));

+ 3 - 2
main/lp/scorm_api.php

@@ -1435,10 +1435,11 @@ function reinit_updatable_vars_list() {
  * @param	string		This parameter can be a string specifying the next
  *						item (like 'next', 'previous', 'first' or 'last') or the id to the next item
  */
-function switch_item(current_item, next_item) {
+function switch_item(current_item, next_item)
+{
     if (olms.lms_initialized == 0) {
         // Fix error when flash is not loaded and SCO is not started BT#14944
-        olms.G_LastError 		= G_NotInitialized;
+        olms.G_LastError = G_NotInitialized;
         olms.G_LastErrorMessage = G_NotInitializedMessage;
         logit_scorm('Error '+ G_NotInitialized + G_NotInitializedMessage, 0);
         window.location.reload(false);

+ 1 - 2
main/template/default/learnpath/view.tpl

@@ -54,7 +54,7 @@
                                 </div>
                             </div>
                         </div>
-                       <!--- end gamification -->
+                        <!--- end gamification -->
                     {% else %}
                         <div id="progress_bar">
                             {{ progress_bar }}
@@ -308,7 +308,6 @@
         {% if disable_js_in_lp_view == 0 %}
             $('iframe#content_id').on('load', function () {
                 var arr = ['link', 'sco'];
-
                 if (!$.inArray(olms.lms_item_type, arr)) {
                     setFrameReady('content_name');
                 }