Bläddra i källkod

Merge branch 'master' of https://github.com/unaio/una

AntonLV 7 år sedan
förälder
incheckning
ab16fa51b4
2 ändrade filer med 5 tillägg och 7 borttagningar
  1. 4 6
      inc/js/functions.js
  2. 1 1
      modules/boonex/google_connect/install/sql/enable.sql

+ 4 - 6
inc/js/functions.js

@@ -1062,15 +1062,16 @@ function bx_get_scripts (aFiles, fCallback)
                   // during multiple loadings of the same file
                   glBxLoadedScripts[sFile].queue.map(sFunc => sFunc());
                   // This part is executed only when the last file from the list is loaded
-                  if (((iLength-1) === iCounter) && typeof fCallback === 'function')
-                    fCallback();
+                   if (((iLength-1) === iCounter) && typeof fCallback === 'function')
+                       fCallback();
+                   else
+                        fDone(iCounter + 1);
               });
           };
 
     if ('undefined' === typeof(glBxLoadedScripts))
         glBxLoadedScripts = {};
 
-    while(iCounter < iLength){
         let sFile = aFiles[iCounter];
         if ('undefined' === typeof(glBxLoadedScripts[sFile])) {
             // call the function if the file doesn't exist in global scope yet
@@ -1084,9 +1085,6 @@ function bx_get_scripts (aFiles, fCallback)
             else
                 fCallback(); // executes callback only in case when the file is completely loaded and exists in global scope
         }
-
-        iCounter++;
-    }
 }
 
 jQuery.bxGetCachedScript = function(sUrl, oOptions) 

+ 1 - 1
modules/boonex/google_connect/install/sql/enable.sql

@@ -7,7 +7,7 @@ INSERT INTO `sys_email_templates` (`Module`, `NameSystem`, `Name`, `Subject`, `B
 -- Auth objects
 
 INSERT INTO `sys_objects_auths` (`Name`, `Title`, `Link`, `Icon`, `Style`) VALUES
-('bx_googlecon', '_bx_googlecon_auth_title', 'modules/?r=googlecon/start', 'fab google-plus-square', 'a:1:{s:7:".bx-btn";a:1:{s:10:"background";s:18:"#cb4023 !important";}}');
+('bx_googlecon', '_bx_googlecon_auth_title', 'modules/?r=googlecon/start', 'fab google', 'a:1:{s:7:".bx-btn";a:1:{s:10:"background";s:18:"#cb4023 !important";}}');
 
 -- Alerts