浏览代码

Fixed error progress bar css issue in FM

Toby Chui 2 年之前
父节点
当前提交
03e2a26dad
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 5 5
      web/SystemAO/file_system/file_explorer.html

+ 5 - 5
web/SystemAO/file_system/file_explorer.html

@@ -3027,7 +3027,7 @@
                         success: function(data){
                             if (data.error !== undefined){
                                 //Error
-                                targetTaskDisplayObject.find(".progress").removeClass("preparing").removeClass("primary").addClass("negative");
+                                targetTaskDisplayObject.find(".progress").removeClass("preparing").removeClass("primary").addClass("error");
                                 msgbox("red remove",applocale.getString("message/" + data.error,data.error));
                             }else{
                                 //Zip completed.
@@ -3056,7 +3056,7 @@
                             
                         }, 
                         error: function(){
-                            targetTaskDisplayObject.find(".progress").removeClass("preparing").removeClass("primary").addClass("negative");
+                            targetTaskDisplayObject.find(".progress").removeClass("preparing").removeClass("primary").addClass("error");
                             targetTaskDisplayObject.find(".bar").css("width", "100%");
                             msgbox("red remove",applocale.getString("message/zip/fail", "Zipping failed due to unknown reason"));
 
@@ -4696,7 +4696,7 @@
                                     if ($(this).attr("taskID") == taskUUID){
                                         //Update this progress bar to completed
                                         $(this).find(".bar").css("width","100%");
-                                        $(this).find(".progress").attr("class","ui tiny negative progress");
+                                        $(this).find(".progress").attr("class","ui tiny error progress");
                                         $(this).find(".uploadTaskRemoveIcon").show();
                                         $(this).addClass("ended");
                                     }
@@ -4864,8 +4864,8 @@
                         console.log(xhr);
                         $(".uploadTask").each(function(){
                             if ($(this).attr("taskID") == taskUUID){
-                                //Upload screwed up. Show negative
-                                $(this).find(".progress").attr("class","ui tiny negative progress");
+                                //Upload screwed up. Show error
+                                $(this).find(".progress").attr("class","ui tiny error progress");
                                 $(this).find(".uploadTaskRemoveIcon").show();
                                 $(this).addClass("ended");
                             }