thomascube
2007-08-10 fc73746eb48c4b3bfad9ee04f1fb229788062ffc
Fix compose function from address book + mozilla compatibility

4 files modified
8 ■■■■ changed files
CHANGELOG 3 ●●●● patch | view | raw | blame | history
program/js/app.js 2 ●●● patch | view | raw | blame | history
program/steps/addressbook/mailto.inc 2 ●●●●● patch | view | raw | blame | history
skins/default/mail.css 1 ●●●● patch | view | raw | blame | history
CHANGELOG
@@ -8,6 +8,7 @@
- Fix display of multipart messages from Apple Mail (closes #1484027)
- Protect AJAX request from being fetched by a foreign site (XSS)
- Make autocomplete for loginform configurable by the skin template
- Fix compose function from address book (closes #1484426)
2007/08/09 (richs)
@@ -19,7 +20,7 @@
- Lowered status message time from 5 to 3 seconds to improve responsiveness
- Added note to INSTALL about .htaccess limiting upload_max_filesize
- Raised .htaccess upload_max_filesize from 2M to 5M to differ from default php.ini
- Increased "mailboxcontrols" mail.css width from 160 to 170px to fix non-english languages
- Increased "mailboxcontrols" mail.css width from 160 to 170px to fix non-english languages (#1484499)
- Fixed empty-message sending with TinyMCE plain-text mode, or if it's not installed
program/js/app.js
@@ -2289,7 +2289,7 @@
    this.enable_command('delete', 'compose', false);
    // send request to server
    var url = (src ? '&_source='+urlencode(src) : '') + (page ? '&_page='+page : '');
    var url = (src ? '_source='+urlencode(src) : '') + (page ? (src?'&':'') + '_page='+page : '');
    this.env.source = src;
    
    // also send search request to get the right messages 
program/steps/addressbook/mailto.inc
@@ -25,6 +25,8 @@
if ($cid && preg_match('/^[a-z0-9\-_=]+(,[a-z0-9\-_=]+)*$/i', $cid) && $CONTACTS->ready)
{
  $CONTACTS->set_page(1);
  $CONTACTS->set_pagesize(100);
  $recipients = $CONTACTS->search($CONTACTS->primary_key, $cid);
  while (is_object($recipients) && ($rec = $recipients->iterate()))
skins/default/mail.css
@@ -655,6 +655,7 @@
{
  margin: 0px;
  padding: 0px;
  white-space: -moz-pre-wrap !important;
  white-space: pre;
  font-family: monospace;
}