thomascube
2008-09-10 f9365018cb8462a07bfc86dfe080cece956aacb5
Make xmlhttp requests asynchronous + show message on error

1 files modified
3 ■■■■ changed files
program/js/app.js 3 ●●●● patch | view | raw | blame | history
program/js/app.js
@@ -3816,6 +3816,7 @@
    request_obj.reset();
    request_obj.__lock = false;
    this.display_message('Unknown Serer Error!', 'error');
    };
@@ -3980,7 +3981,7 @@
    this.busy = true;
    this.xmlhttp.onreadystatechange = function(){ _ref.xmlhttp_onreadystatechange(); };
    this.xmlhttp.open('GET', url);
    this.xmlhttp.open('GET', url, true);
    this.xmlhttp.setRequestHeader('X-RoundCube-Referer', bw.get_cookie('roundcube_sessid'));
    this.xmlhttp.send(null);
    };