فهرست منبع

Fixed file version applocale load sequence issue

Toby Chui 3 سال پیش
والد
کامیت
4615363825
1فایلهای تغییر یافته به همراه9 افزوده شده و 6 حذف شده
  1. 9 6
      web/SystemAO/file_system/file_versions.html

+ 9 - 6
web/SystemAO/file_system/file_versions.html

@@ -51,19 +51,22 @@
             var currentVersionList = [];
             if (files.length >= 1){
                 targetFile = files[0];
-                loadVersionHistory(targetFile);
-
+                applocale.init("../../SystemAO/locale/file_versions.json", function(){
+                    applocale.translate();
+                    loadVersionHistory(targetFile);
+                });
+                
                 setInterval(function(){
                     checkHistoryListUpdate(targetFile);
                 }, 3000)
             }else{
                 //No file selected
-
+                applocale.init("../../SystemAO/locale/file_versions.json", function(){
+                    applocale.translate();
+                });
             }
 
-            applocale.init("../../SystemAO/locale/file_versions.json", function(){
-                applocale.translate();
-            });
+