From 669fc881f3dc26782c0ff6fe1d5cc6e6b5fa775c Mon Sep 17 00:00:00 2001
From: Andrew Dolgov <noreply@fakecake.org>
Date: Fri, 6 Mar 2015 15:51:54 +0300
Subject: [PATCH] add error notification if trying to toggle widescreen in cdm

---
 js/tt-rss.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/js/tt-rss.js b/js/tt-rss.js
index e79f47176..38182c7ad 100644
--- a/js/tt-rss.js
+++ b/js/tt-rss.js
@@ -512,6 +512,8 @@ function init() {
 					setCookie("ttrss_ci_height", 0);
 
 					switchPanelMode(_widescreen_mode);
+				} else {
+					alert(__("Widescreen is not available in combined mode."));
 				}
 		};
 		hotkey_actions["help_dialog"] = function() {
@@ -711,6 +713,8 @@ function quickMenuGo(opid) {
 				setCookie("ttrss_ci_height", 0);
 
 				switchPanelMode(_widescreen_mode);
+			} else {
+				alert(__("Widescreen is not available in combined mode."));
 			}
 			break;
 		case "qmcHKhelp":
-- 
GitLab