X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=js%2Ffunctions.js;h=9915e6808542c57f64be2904afec4be69247e686;hb=22f675e5c4195285b6b5033b451efa9cbb30384b;hp=93b0371524f8e797b8cbc68a7ba44ef3d8963fc2;hpb=2ffe7a3b14caeb55a6338d769255cafa6f67d3c6;p=tt-rss.git diff --git a/js/functions.js b/js/functions.js index 93b03715..9915e680 100644 --- a/js/functions.js +++ b/js/functions.js @@ -44,11 +44,8 @@ function exception_error(location, e, ext_info) { try { - if (ext_info) { - if (ext_info.responseText) { - ext_info = ext_info.responseText; - } - } + if (ext_info) + ext_info = JSON.stringify(ext_info); try { new Ajax.Request("backend.php", { @@ -104,13 +101,15 @@ function exception_error(location, e, ext_info) { title: "Unhandled exception", style: "width: 600px", report: function() { - if (confirm(__("Are you sure to report this exception to tt-rss.org? The report will include your browser information. Your IP would be saved in the database."))) { + if (confirm(__("Are you sure to report this exception to tt-rss.org? The report will include information about your web browser and tt-rss configuration. Your IP will be saved in the database."))) { document.forms['exceptionForm'].params.value = $H({ browserName: navigator.appName, browserVersion: navigator.appVersion, browserPlatform: navigator.platform, browserCookies: navigator.cookieEnabled, + ttrssVersion: __ttrss_version, + initParams: JSON.stringify(init_params), }).toQueryString(); document.forms['exceptionForm'].submit(); @@ -205,6 +204,7 @@ function notify_real(msg, no_hide, n_type) { return; } else { Element.show(n); + new Effect.Highlight(n); } /* types: @@ -833,7 +833,7 @@ function quickAddFeed() { var reply = JSON.parse(transport.responseText); } catch (e) { Element.hide("feed_add_spinner"); - alert(__("Failed to parse output. This can indicate server timeout and/or network issues. Backend output was logged to the browser console.")); + alert(__("Failed to parse output. This can indicate server timeout and/or network issues. Backend output was logged to browser console.")); console.log('quickAddFeed, backend returned:' + transport.responseText); return; } @@ -1294,10 +1294,8 @@ function backend_sanity_check_callback(transport) { console.log('reading init-params...'); for (k in params) { - var v = params[k]; - console.log("IP: " + k + " => " + v); - - if (k == "label_base_index") _label_base_index = parseInt(v); + console.log("IP: " + k + " => " + JSON.stringify(params[k])); + if (k == "label_base_index") _label_base_index = parseInt(params[k]); } init_params = params;