Jelajahi Sumber

bug fix: loading bar

Igor 2 tahun lalu
induk
melakukan
cccdfc25cc
1 mengubah file dengan 6 tambahan dan 0 penghapusan
  1. 6 0
      js/iassign-integration-functions.js

+ 6 - 0
js/iassign-integration-functions.js

@@ -302,6 +302,8 @@ function prepareActivityToStudent (ilm_cont) {
         $('.assessment_button').removeClass('disabled');
 
       renderAlgorithm();
+
+      $('.ivprog_visual_panel').removeClass("loading");
       return;
     }
     catch (e) {
@@ -313,6 +315,7 @@ function prepareActivityToStudent (ilm_cont) {
     // Ver arquivo js/util/iassignHelpers.js
     var content = ivprogCore.prepareActivityToStudentHelper(ilm_cont).getOrElse(null);
     if(!content) {
+      $('.ivprog_visual_panel').removeClass("loading");
       showInvalidData();
       return;
     }
@@ -330,6 +333,7 @@ function prepareActivityToStudent (ilm_cont) {
         includePreviousAlgorithm();
     }
     $('.assessment_button').removeClass('disabled');
+    $('.ivprog_visual_panel').removeClass("loading");
     renderAlgorithm();
 
     ivprogTextualOrVisual();
@@ -350,6 +354,8 @@ function prepareEnvironment () {
   // portanto, a "DIV" de resolução é liberada
   if (iLMparameters.iLM_PARAM_SendAnswer == 'false') {
     //$('.resolucao').css("display","block");
+    $('.ivprog_visual_panel').addClass("loading");
+
     getiLMContent();
 
     // $('.div_to_body').mousemove(function(e) {