]> git.wh0rd.org Git - tt-rss.git/commitdiff
add error notification if trying to toggle widescreen in cdm
authorAndrew Dolgov <noreply@fakecake.org>
Fri, 6 Mar 2015 12:51:54 +0000 (15:51 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Fri, 6 Mar 2015 12:51:54 +0000 (15:51 +0300)
js/tt-rss.js

index e79f47176e0b398347828167adeae154534ba642..38182c7ad981f7b90ce746b9376779b7237d0f6d 100644 (file)
@@ -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":