Jelajahi Sumber

Fix to TripalUploader

Chun-Huai Cheng 8 tahun lalu
induk
melakukan
407f88610d
1 mengubah file dengan 3 tambahan dan 2 penghapusan
  1. 3 2
      tripal/theme/js/TripalUploadFile.js

+ 3 - 2
tripal/theme/js/TripalUploadFile.js

@@ -122,7 +122,8 @@
             self.updateProgressBar();
             self.updateProgressBar();
           }
           }
         },
         },
-        error : function() {
+        error : function(jqXHR, textStatus, errorThrown) {
+          alert(errorThrown);
           self.curr_chunk = 0;
           self.curr_chunk = 0;
           self._upload();
           self._upload();
         }
         }
@@ -447,4 +448,4 @@
   // Export the objects to the window for use in other JS files.
   // Export the objects to the window for use in other JS files.
   window.TripalUploadFile = TripalUploadFile;
   window.TripalUploadFile = TripalUploadFile;
   
   
-})(jQuery);
+})(jQuery);