| | |
| | | this.env.request_timeout = 180; // seconds |
| | | this.env.draft_autosave = 0; // seconds |
| | | this.env.comm_path = './'; |
| | | this.env.bin_path = './bin/'; |
| | | this.env.blankpage = 'program/blank.gif'; |
| | | |
| | | // set jQuery ajax options |
| | |
| | | } |
| | | |
| | | // replace quota image |
| | | obj.innerHTML = ''; |
| | | $(obj).append(bar1).append(bar2).append(main); |
| | | $(obj).html('').append(bar1).append(bar2).append(main); |
| | | }; |
| | | |
| | | /********************************************************/ |
| | |
| | | this.html2plain = function(htmlText, id) |
| | | { |
| | | var rcmail = this, |
| | | url = this.env.bin_path + 'html2text.php'; |
| | | url = '?_task=utils&_action=html2text'; |
| | | |
| | | this.set_busy(true, 'converting'); |
| | | console.log('HTTP POST: ' + url); |
| | |
| | | // handle HTTP response |
| | | this.http_response = function(response) |
| | | { |
| | | if (window.console) { |
| | | var date1 = new Date(); |
| | | var milliseconds1 = date1.getTime(); |
| | | } |
| | | |
| | | if (response.unlock) |
| | | this.set_busy(false); |
| | | |
| | |
| | | } |
| | | break; |
| | | } |
| | | if (window.console) { |
| | | var date2 = new Date(); |
| | | var milliseconds2 = date2.getTime(); |
| | | console.log('Response execution time: ' + (milliseconds2 - milliseconds1) + 'ms'); |
| | | } |
| | | |
| | | }; |
| | | |
| | | // handle HTTP request errors |