Browse Source

add error notification if trying to toggle widescreen in cdm

Andrew Dolgov 4 years ago
parent
commit
669fc881f3
1 changed files with 4 additions and 0 deletions
  1. 4 0
      js/tt-rss.js

+ 4 - 0
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":