add error notification if trying to toggle widescreen in cdm

This commit is contained in:
Andrew Dolgov 2015-03-06 15:51:54 +03:00
parent 40f147df79
commit 669fc881f3

View file

@ -512,6 +512,8 @@ function init() {
setCookie("ttrss_ci_height", 0); setCookie("ttrss_ci_height", 0);
switchPanelMode(_widescreen_mode); switchPanelMode(_widescreen_mode);
} else {
alert(__("Widescreen is not available in combined mode."));
} }
}; };
hotkey_actions["help_dialog"] = function() { hotkey_actions["help_dialog"] = function() {
@ -711,6 +713,8 @@ function quickMenuGo(opid) {
setCookie("ttrss_ci_height", 0); setCookie("ttrss_ci_height", 0);
switchPanelMode(_widescreen_mode); switchPanelMode(_widescreen_mode);
} else {
alert(__("Widescreen is not available in combined mode."));
} }
break; break;
case "qmcHKhelp": case "qmcHKhelp":