[BUGFIX] Loading elements is not shown on module initialization
authorOliver Hader <oliver@typo3.org>
Wed, 28 Mar 2012 16:17:36 +0000 (18:17 +0200)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Fri, 17 Aug 2012 21:10:36 +0000 (23:10 +0200)
If the workspace module is just initialized, it's not visualized
that the workspace elements are fetched by a separate ExtDirect
call. By modifying the initialization order, it works fine.
Ext.grid.GridPanel.loadMask just needs to be initialized first.

Change-Id: I58f1e22b9bcf1354405e1557b28e4dc4d9498f11
Fixes: #35336
Releases: 6.0, 4.7, 4.6, 4.5
Reviewed-on: http://review.typo3.org/10061
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
typo3/sysext/workspaces/Resources/Public/JavaScript/workspaces.js

index 7c2c561..5c04e71 100644 (file)
@@ -29,11 +29,12 @@ Ext.ns('TYPO3.Workspaces');
 TYPO3.Workspaces.App = {
 
        init : function() {
+               TYPO3.Workspaces.WorkspaceGrid.initColModel();
+               TYPO3.Workspaces.WorkspaceGrid.render('workspacegrid');
+
                TYPO3.Workspaces.MainStore.load();
                TYPO3.Workspaces.Toolbar.selectActionStore.load();
                TYPO3.Workspaces.Toolbar.selectMassActionStore.load();
-               TYPO3.Workspaces.WorkspaceGrid.initColModel();
-               TYPO3.Workspaces.WorkspaceGrid.render('workspacegrid');
        }
 };