]> git.wh0rd.org - tt-rss.git/blobdiff - tt-rss.js
new style exception reporting
[tt-rss.git] / tt-rss.js
index 2e16fc804af9448c76a6f072a8b2633552a3a0d1..2b6f7f822bb3e0d0332dc84c0f9c896d4b4b1a41 100644 (file)
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -131,14 +131,14 @@ function backend_sanity_check_callback(transport) {
                }
 
                if (!transport.responseXML) {
-                       fatalError(3, "[D001, Received reply is not XML]: " + transport.responseText);
+                       fatalError(3, "Sanity check: Received reply is not XML", transport.responseText);
                        return;
                }
 
                var reply = transport.responseXML.firstChild.firstChild;
 
                if (!reply) {
-                       fatalError(3, "[D002, Invalid RPC reply]: " + transport.responseText);
+                       fatalError(3, "Sanity check: invalid RPC reply", transport.responseText);
                        return;
                }
 
@@ -170,7 +170,7 @@ function backend_sanity_check_callback(transport) {
                init_second_stage();
 
        } catch (e) {
-               exception_error("backend_sanity_check_callback", e);    
+               exception_error("backend_sanity_check_callback", e, transport); 
        } 
 }
 
@@ -1292,6 +1292,11 @@ function hotkey_handler(e) {
                                return false;
                        }
 
+                       if (keycode == 76) { // l
+                               addLabel();
+                               return false;
+                       }
+
                        if (keycode == 83) { // s
                                if (typeof collapse_feedlist != 'undefined') {
                                        collapse_feedlist();
@@ -1329,6 +1334,12 @@ function hotkey_handler(e) {
 
                        hotkey_prefix = false;
 
+
+                       if (keycode == 65) { // a
+                               viewfeed(-4);
+                               return false;
+                       }
+
                        if (keycode == 83) { // s
                                viewfeed(-1);
                                return false;
@@ -1408,4 +1419,6 @@ function addLabel() {
        }
 }
 
-
+function visitOfficialSite() {
+       window.open("http://tt-rss.org/");
+}