[BUGFIX] RTE: Missing hide method in StatusBar 46/35546/2
authorStanislas Rolland <typo3@sjbr.ca>
Wed, 17 Dec 2014 16:13:45 +0000 (11:13 -0500)
committerStanislas Rolland <typo3@sjbr.ca>
Wed, 17 Dec 2014 16:15:46 +0000 (17:15 +0100)
Releases: master
Resolves: #63963
Change-Id: Ia7d4a77837e6c840f6118da24e444c55b395319a
Reviewed-on: http://review.typo3.org/35546
Reviewed-by: Stanislas Rolland <typo3@sjbr.ca>
Tested-by: Stanislas Rolland <typo3@sjbr.ca>
typo3/sysext/rtehtmlarea/Resources/Public/JavaScript/HTMLArea/Editor/Framework.js
typo3/sysext/rtehtmlarea/Resources/Public/JavaScript/HTMLArea/Editor/StatusBar.js

index 1fcd90b..50aa34c 100644 (file)
@@ -308,9 +308,6 @@ define('TYPO3/CMS/Rtehtmlarea/HTMLArea/Editor/Framework',
                        if (this.ready) {
                                this.initEventListeners();
                                this.textAreaContainer.show();
-                               if (!this.getEditor().config.showStatusBar) {
-                                       this.statusBar.hide();
-                               }
                                // Set the initial size of the framework
                                this.onWindowResize();
                                /**
index 0707c44..0526931 100644 (file)
@@ -46,8 +46,11 @@ define('TYPO3/CMS/Rtehtmlarea/HTMLArea/Editor/StatusBar',
                        }
                        this.el = container.appendChild(this.el);
                        this.addComponents();
-                       this.rendered = true;
                        this.initEventListeners();
+                       if (!this.getEditor().config.showStatusBar) {
+                               this.hide();
+                       }
+                       this.rendered = true;
                },
 
                /**
@@ -118,6 +121,20 @@ define('TYPO3/CMS/Rtehtmlarea/HTMLArea/Editor/StatusBar',
                },
 
                /**
+                * Show the status bar
+                */
+               show: function () {
+                       this.getEl().style.display = '';
+               },
+
+               /**
+                * Hide the status bar
+                */
+               hide: function () {
+                       this.getEl().style.display = 'none';
+               },
+
+               /**
                 * Clear the status bar tree
                 */
                clear: function () {