diff --git a/src/webui/www/private/index.html b/src/webui/www/private/index.html
index d3b90928a..76b66e527 100644
--- a/src/webui/www/private/index.html
+++ b/src/webui/www/private/index.html
@@ -62,8 +62,9 @@
QBT_TR(&View)QBT_TR[CONTEXT=MainWindow]
diff --git a/src/webui/www/private/scripts/client.js b/src/webui/www/private/scripts/client.js
index edd0db80a..4d37d387f 100644
--- a/src/webui/www/private/scripts/client.js
+++ b/src/webui/www/private/scripts/client.js
@@ -161,11 +161,20 @@ window.addEvent('load', function () {
$('mochaToolbar').addClass('invisible');
}
+ // Show Status Bar is enabled by default
+ var showStatusBar = true;
+ if (localStorage.getItem('show_status_bar') !== null)
+ showStatusBar = localStorage.getItem('show_status_bar') === "true";
+ if (!showStatusBar) {
+ $('showStatusBarLink').firstChild.style.opacity = '0';
+ $('desktopFooterWrapper').addClass('invisible');
+ }
+
var speedInTitle = localStorage.getItem('speed_in_browser_title_bar') == "true";
if (!speedInTitle)
$('speedInBrowserTitleBarLink').firstChild.style.opacity = '0';
- // After Show Top Toolbar
+ // After showing/hiding the toolbar + status bar
MochaUI.Desktop.setDesktopSize();
var syncMainDataLastResponseId = 0;
@@ -475,6 +484,20 @@ window.addEvent('load', function () {
MochaUI.Desktop.setDesktopSize();
});
+ $('showStatusBarLink').addEvent('click', function(e) {
+ showStatusBar = !showStatusBar;
+ localStorage.setItem('show_status_bar', showStatusBar.toString());
+ if (showStatusBar) {
+ $('showStatusBarLink').firstChild.style.opacity = '1';
+ $('desktopFooterWrapper').removeClass('invisible');
+ }
+ else {
+ $('showStatusBarLink').firstChild.style.opacity = '0';
+ $('desktopFooterWrapper').addClass('invisible');
+ }
+ MochaUI.Desktop.setDesktopSize();
+ });
+
$('speedInBrowserTitleBarLink').addEvent('click', function(e) {
speedInTitle = !speedInTitle;
localStorage.setItem('speed_in_browser_title_bar', speedInTitle.toString());