]> git.wh0rd.org - tt-rss.git/blobdiff - js/tt-rss.js
Merge pull request #301 from derekschrock/patch-1
[tt-rss.git] / js / tt-rss.js
index 46e282351d595b95ca660e2b075836aa674c5c35..b5bbd9f57b2511096ba2dfb433c4a6e9552ce8f5 100644 (file)
@@ -573,13 +573,17 @@ function init_second_stage() {
 
                        var tmph = dojo.connect(dijit.byId('feeds-holder'), 'resize',
                                function (args) {
-                                       setCookie("ttrss_fh_width", args.w, getInitParam("cookie_lifetime"));
+                                       if (args && args.w >= 0) {
+                                               setCookie("ttrss_fh_width", args.w, getInitParam("cookie_lifetime"));
+                                       }
                        });
 
                        var tmph = dojo.connect(dijit.byId('content-insert'), 'resize',
                                function (args) {
-                                       setCookie("ttrss_ci_width", args.w, getInitParam("cookie_lifetime"));
-                                       setCookie("ttrss_ci_height", args.h, getInitParam("cookie_lifetime"));
+                                       if (args && args.w >= 0 && args.h >= 0) {
+                                               setCookie("ttrss_ci_width", args.w, getInitParam("cookie_lifetime"));
+                                               setCookie("ttrss_ci_height", args.h, getInitParam("cookie_lifetime"));
+                                       }
                        });
 
                });
@@ -888,7 +892,7 @@ function hotkey_handler(e) {
                        cmdline.innerHTML = keychar;
                        Element.show(cmdline);
 
-                       return true;
+                       return false;
                }
 
                Element.hide(cmdline);