Changeset 4982 in subversion
- Timestamp:
- Jul 28, 2011 2:23:12 AM (23 months ago)
- File:
-
- 1 edited
-
trunk/roundcubemail/program/js/app.js (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/js/app.js
r4972 r4982 430 430 }; 431 431 432 this.log = function(msg) 433 { 434 if (window.console && console.log) 435 console.log(msg); 436 }; 432 437 433 438 /*********************************************************/ … … 5498 5503 lock = this.set_busy(true, 'converting'); 5499 5504 5500 console.log('HTTP POST: ' + url);5505 this.log('HTTP POST: ' + url); 5501 5506 5502 5507 $.ajax({ type: 'POST', url: url, data: htmlText, contentType: 'application/octet-stream', 5503 5508 error: function(o, status, err) { rcmail.http_error(o, status, err, lock); }, 5504 success: function(data) { rcmail.set_busy(false, null, lock); $(document.getElementById(id)).val(data); console.log(data); }5509 success: function(data) { rcmail.set_busy(false, null, lock); $(document.getElementById(id)).val(data); rcmail.log(data); } 5505 5510 }); 5506 5511 }; … … 5595 5600 5596 5601 // send request 5597 console.log('HTTP GET: ' + url);5602 this.log('HTTP GET: ' + url); 5598 5603 5599 5604 return $.ajax({ … … 5627 5632 5628 5633 // send request 5629 console.log('HTTP POST: ' + url);5634 this.log('HTTP POST: ' + url); 5630 5635 5631 5636 return $.ajax({ … … 5661 5666 // if we get javascript code from server -> execute it 5662 5667 if (response.exec) { 5663 console.log(response.exec);5668 this.log(response.exec); 5664 5669 eval(response.exec); 5665 5670 }
Note: See TracChangeset
for help on using the changeset viewer.
