| | |
| | | break; |
| | | |
| | | case 'logout': |
| | | this.goto_url('logout'); |
| | | this.goto_url('logout', true); |
| | | break; |
| | | |
| | | // commands to switch task |
| | |
| | | |
| | | this.redirect = function(url, lock) |
| | | { |
| | | if (lock || lock == NULL) |
| | | if (lock || lock === null) |
| | | this.set_busy(true); |
| | | |
| | | if (this.env.framed && window.parent) |
| | |
| | | return false; |
| | | } |
| | | |
| | | var ref = this; |
| | | var _ref = this; |
| | | this.url = url; |
| | | this.busy = true; |
| | | |
| | | this.xmlhttp.onreadystatechange = function(){ ref.xmlhttp_onreadystatechange(); }; |
| | | this.xmlhttp.onreadystatechange = function(){ _ref.xmlhttp_onreadystatechange(); }; |
| | | this.xmlhttp.open('GET', url); |
| | | this.xmlhttp.setRequestHeader('X-RoundCube-Referer', bw.get_cookie('sessid')); |
| | | this.xmlhttp.send(null); |
| | | }; |
| | | |
| | |
| | | this.xmlhttp.onreadystatechange = function() { ref.xmlhttp_onreadystatechange(); }; |
| | | this.xmlhttp.open('POST', url, true); |
| | | this.xmlhttp.setRequestHeader('Content-Type', contentType); |
| | | this.xmlhttp.setRequestHeader('X-RoundCube-Referer', bw.get_cookie('sessid')); |
| | | this.xmlhttp.send(req_body); |
| | | }; |
| | | |