Changeset 4711 in subversion
- Timestamp:
- Apr 29, 2011 2:36:40 PM (2 years ago)
- Location:
- trunk/roundcubemail
- Files:
-
- 3 edited
-
CHANGELOG (modified) (1 diff)
-
program/js/app.js (modified) (4 diffs)
-
program/steps/addressbook/mailto.inc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/CHANGELOG
r4710 r4711 2 2 =========================== 3 3 4 - Fix a bug where selecting too many contacts would produce too large URI request (#1487892) 4 5 - Fix relative URLs handling according to a <base> in HTML (#1487889) 5 6 - Fix handling of top-level domains with more than 5 chars or unicode chars (#1487883) -
trunk/roundcubemail/program/js/app.js
r4707 r4711 809 809 var url = this.env.comm_path+'&_action=compose'; 810 810 811 if (this.task =='mail') {811 if (this.task == 'mail') { 812 812 url += '&_mbox='+urlencode(this.env.mailbox); 813 813 814 if (this.env.mailbox ==this.env.drafts_mailbox) {814 if (this.env.mailbox == this.env.drafts_mailbox) { 815 815 var uid; 816 816 if (uid = this.get_single_uid()) … … 821 821 } 822 822 // modify url if we're in addressbook 823 else if (this.task =='addressbook') {823 else if (this.task == 'addressbook') { 824 824 // switch to mail compose step directly 825 825 if (props && props.indexOf('@') > 0) { … … 830 830 831 831 // use contact_id passed as command parameter 832 var a_cids = [];832 var n, len, a_cids = []; 833 833 if (props) 834 834 a_cids.push(props); … … 836 836 else if (this.contact_list) { 837 837 var selection = this.contact_list.get_selection(); 838 for ( var n=0; n<selection.length; n++)838 for (n=0, len=selection.length; n<len; n++) 839 839 a_cids.push(selection[n]); 840 840 } 841 841 842 842 if (a_cids.length) 843 this.http_ request('mailto', '_cid='+urlencode(a_cids.join(','))+'&_source='+urlencode(this.env.source), true);843 this.http_post('mailto', {_cid: a_cids.join(','), _source: this.env.source}, true); 844 844 845 845 break; 846 846 } 847 848 // don't know if this is necessary...849 url = url.replace(/&_framed=1/, '');850 847 851 848 this.redirect(url); -
trunk/roundcubemail/program/steps/addressbook/mailto.inc
r4424 r4711 20 20 */ 21 21 22 $cid = get_input_value('_cid', RCUBE_INPUT_ GET);22 $cid = get_input_value('_cid', RCUBE_INPUT_POST); 23 23 $recipients = null; 24 24 $mailto = array(); … … 27 27 { 28 28 $CONTACTS->set_page(1); 29 $CONTACTS->set_pagesize( 100);29 $CONTACTS->set_pagesize(substr_count($cid, ',')+2); // +2 to skip counting query 30 30 $recipients = $CONTACTS->search($CONTACTS->primary_key, $cid); 31 31
Note: See TracChangeset
for help on using the changeset viewer.
