# HG changeset patch # User Mads Kiilerich # Date 2013-03-19 21:50:28 # Node ID 72c8917108ee7f95dba010d13f49b27112f9c0c2 # Parent 7967d00e469258cebc85a801452f58c9e5d445cb journal: don't show "error" popup when navigating away from page while lazy info is loading The "error" box would pop up in the Journal view when quickly pointing and clicking a link while the info was loading. This fix might prevent showing valid error messages in some browsers. diff --git a/rhodecode/public/js/rhodecode.js b/rhodecode/public/js/rhodecode.js --- a/rhodecode/public/js/rhodecode.js +++ b/rhodecode/public/js/rhodecode.js @@ -425,7 +425,9 @@ var ajaxGET = function(url,success) { var callback = { success: success, failure: function (o) { - alert("error"); + if (o.status != 0) { + alert("error: " + o.statusText); + }; }, };