From: Andrew Dolgov Date: Fri, 14 Mar 2014 10:08:32 +0000 (+0400) Subject: Revert "exception handler: remove report to tt-rss.org" X-Git-Tag: 1.12~11 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=cbcf6517dca6d3c0ba32745969b6fe4d73d704ba;p=tt-rss.git Revert "exception handler: remove report to tt-rss.org" This reverts commit b55aec078c18b3db85d34329be3f01364e383667. --- diff --git a/js/functions.js b/js/functions.js index 9e40ecf5..1ad15fcc 100644 --- a/js/functions.js +++ b/js/functions.js @@ -88,6 +88,9 @@ function exception_error(location, e, ext_info) { content += "
"; + content += " "; content += ""; @@ -100,6 +103,20 @@ function exception_error(location, e, ext_info) { id: "exceptionDlg", 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."))) { + + document.forms['exceptionForm'].params.value = $H({ + browserName: navigator.appName, + browserVersion: navigator.appVersion, + browserPlatform: navigator.platform, + browserCookies: navigator.cookieEnabled, + }).toQueryString(); + + document.forms['exceptionForm'].submit(); + + } + }, content: content}); dialog.show();