Mercurial > kallithea
changeset 3553:72c8917108ee beta
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.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Tue, 19 Mar 2013 22:50:28 +0100 |
parents | 7967d00e4692 |
children | 189ce0d7b7c6 |
files | rhodecode/public/js/rhodecode.js |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/public/js/rhodecode.js Tue Mar 19 21:47:34 2013 +0100 +++ b/rhodecode/public/js/rhodecode.js Tue Mar 19 22:50:28 2013 +0100 @@ -425,7 +425,9 @@ var callback = { success: success, failure: function (o) { - alert("error"); + if (o.status != 0) { + alert("error: " + o.statusText); + }; }, };