Julio Montoya 10 anos atrás
pai
commit
784e1db4b7
2 arquivos alterados com 31 adições e 32 exclusões
  1. 27 28
      main/inc/lib/javascript/jquery.lp_minipanel.js
  2. 4 4
      main/install/index.php

+ 27 - 28
main/inc/lib/javascript/jquery.lp_minipanel.js

@@ -1,48 +1,47 @@
 /* For licensing terms, see /license.txt */
-/*
- Learning Path minipanel - Chamilo 1.8.8
- Adding mini panel to browse Learning Paths
- Requirements: JQuery 1.4.4, JQuery UI 1.8.7
- @author Alberto Torreblanca @albert1t0
- @author Julio Montoya Cleaning/fixing some code
- @author Alex Aragon Cleaning/fixing code update
- **/
 
-$(document).ready(function(){
+/**
+    Learning Path minipanel - Chamilo 1.8.8
+    Adding mini panel to browse Learning Paths
+    Requirements: JQuery 1.4.4, JQuery UI 1.8.7
+    @author Alberto Torreblanca @albert1t0
+    @author Julio Montoya Cleaning/fixing code
+    @author Alex Aragon Cleaning/fixing code update
+**/
 
-   $('#touch-button').click(function(){
+$(document).ready(function() {
 
-        $('#learning_path_left_zone').toggle("slow",function(){
-                $('#learning_path_right_zone').toggleClass('total');
-                $(function(){
-                    $('#learning_path_right_zone').slideToggle(300);
-                    $('#control-bottom').toggle("slow");
-                });
-        }
-        );
-       $(this).toggleClass('show-touch');
-       $('#learning_path_right_zone').slideToggle(300);
-   });
-    //effects items scorm content
-    $('.scorm_item_normal').click(function(){
+    $('#touch-button').click(function() {
+        $('#learning_path_left_zone').toggle("slow", function(){
+            $('#learning_path_right_zone').toggleClass('total');
+            $(function(){
+                $('#learning_path_right_zone').slideToggle(300);
+                $('#control-bottom').toggle("slow");
+            });
+        });
+        $(this).toggleClass('show-touch');
+        $('#learning_path_right_zone').slideToggle(300);
+    });
+
+    // effects items scorm content
+    $('.scorm_item_normal').click(function() {
         $('#learning_path_right_zone').fadeOut(300);
         setTimeout(function(){
             $('#learning_path_right_zone').fadeIn(300);
         },300);
-
     });
-    $('.scorm-previous').click(function(){
+
+    $('.scorm-previous').click(function() {
         $('#learning_path_right_zone').fadeOut(300);
         setTimeout(function(){
             $('#learning_path_right_zone').fadeIn(300);
         },300);
-
     });
-    $('.scorm-next').click(function(){
+
+    $('.scorm-next').click(function() {
         $('#learning_path_right_zone').fadeOut(300);
         setTimeout(function(){
             $('#learning_path_right_zone').fadeIn(300);
         },300);
-
     });
 });

+ 4 - 4
main/install/index.php

@@ -405,11 +405,11 @@ if ($encryptPassForm == '1') {
         $(document).ready( function() {
             $(".advanced_parameters").click(function() {
                 if ($("#id_contact_form").css("display") == "none") {
-                        $("#id_contact_form").css("display","block");
-                        $("#img_plus_and_minus").html('&nbsp;<img src="<?php echo api_get_path(WEB_IMG_PATH) ?>div_hide.gif" alt="<?php echo get_lang('Hide') ?>" title="<?php echo get_lang('Hide')?>" style ="vertical-align:middle" >&nbsp;<?php echo get_lang('ContactInformation') ?>');
+					$("#id_contact_form").css("display","block");
+					$("#img_plus_and_minus").html('&nbsp;<img src="<?php echo api_get_path(WEB_IMG_PATH) ?>div_hide.gif" alt="<?php echo get_lang('Hide') ?>" title="<?php echo get_lang('Hide')?>" style ="vertical-align:middle" >&nbsp;<?php echo get_lang('ContactInformation') ?>');
                 } else {
-                        $("#id_contact_form").css("display","none");
-                        $("#img_plus_and_minus").html('&nbsp;<img src="<?php echo api_get_path(WEB_IMG_PATH) ?>div_show.gif" alt="<?php echo get_lang('Show') ?>" title="<?php echo get_lang('Show') ?>" style ="vertical-align:middle" >&nbsp;<?php echo get_lang('ContactInformation') ?>');
+					$("#id_contact_form").css("display","none");
+					$("#img_plus_and_minus").html('&nbsp;<img src="<?php echo api_get_path(WEB_IMG_PATH) ?>div_show.gif" alt="<?php echo get_lang('Show') ?>" title="<?php echo get_lang('Show') ?>" style ="vertical-align:middle" >&nbsp;<?php echo get_lang('ContactInformation') ?>');
                 }
             });
         });