[TASK] Migrate Workspace-Menu to work with ExtJS4
authorSteffen Ritter <info@rs-websystems.de>
Mon, 19 Dec 2011 11:35:03 +0000 (12:35 +0100)
committerOliver Hader <oliver@typo3.org>
Mon, 19 Dec 2011 18:49:07 +0000 (19:49 +0100)
Even though the Workspace-Menu mainly uses prototype,
newly developed stuff has been written with ExtJS.

Therefore a Migration to ExtJS4 is needed.

Change-Id: I9ab0c9f93416d7f8f928efffe69d4b078e9150ab
Resolves: #32687
Releases: 4.7
Reviewed-on: http://review.typo3.org/7384
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
typo3/sysext/workspaces/Resources/Public/JavaScript/workspacemenu.js

index 5408cd4..4e79aad 100644 (file)
@@ -44,10 +44,10 @@ var WorkspaceMenu = Class.create({
                                function() { TYPO3BackendToolbarManager.positionMenu('workspace-selector-menu'); }
                        );
                        if (top.TYPO3.configuration.inWorkspace == 1) {
-                               Ext.getBody().addClass('typo3-in-workspace');
+                               Ext.getBody().addCls('typo3-in-workspace');
                                this.updateTopBar(top.TYPO3.Workspaces.workspaceTitle);
                        } else {
-                               Ext.getBody().removeClass('typo3-in-workspace');
+                               Ext.getBody().removeCls('typo3-in-workspace');
                        }
                        TYPO3BackendToolbarManager.refreshAll();
                        Event.observe('workspace-selector-menu', 'click', this.toggleMenu);
@@ -148,10 +148,10 @@ var WorkspaceMenu = Class.create({
                top.TYPO3.Workspaces.workspaceTitle = title;
                top.TYPO3.configuration.inWorkspace = id === 0 ? 0 : 1;
                if (top.TYPO3.configuration.inWorkspace == 1) {
-                       Ext.getBody().addClass('typo3-in-workspace');
+                       Ext.getBody().addCls('typo3-in-workspace');
                        this.updateTopBar(top.TYPO3.Workspaces.workspaceTitle);
                } else {
-                       Ext.getBody().removeClass('typo3-in-workspace');
+                       Ext.getBody().removeCls('typo3-in-workspace');
                        this.updateTopBar();
                }
 
@@ -188,5 +188,4 @@ var WorkspaceMenu = Class.create({
 
 });
 
-var TYPO3BackendWorkspaceMenu = new WorkspaceMenu();
-//TYPO3BackendWorkspaceMenu.initialize();
\ No newline at end of file
+var TYPO3BackendWorkspaceMenu = new WorkspaceMenu();
\ No newline at end of file