Author: ralfbecker
New Revision: 55549
URL: http://svn.stylite.de/viewvc/egroupware?rev=55549&view=rev
Log:
remove since 14.3 no longer necessary workaround for submiting mail compose to a different url, which was causing now problems (Application echoed something), and fixed not always instanciate $contacts_objs from previous commit
Modified:
trunk/mail/inc/class.mail_compose.inc.php
trunk/mail/js/app.js
— trunk/mail/inc/class.mail_compose.inc.php (original)
+++ trunk/mail/inc/class.mail_compose.inc.php Tue Mar 29 12:13:32 2016
@@ -812,6 +812,7 @@
if ($_REQUEST['preset']['mailtocontactbyid']) {
if ($GLOBALS['egw_info']['user']['apps']['addressbook']) {
@@ -2613,11 +2614,13 @@
*/
static function resolveEmailAddressList($_emailAddressList)
{
-
$contacts_obs = null;
$addrFromList=array();
foreach((array)$_emailAddressList as $ak => $address)
{
if(is_int($address))
{
-
if (!isset($contacts_obs)) $contacts_obj = new Api\Contacts();
// List was selected, expand to addresses
unset($_emailAddressList[$ak]);
$list = $contacts_obj->search('',array('n_fn','n_prefix','n_given','n_family','org_name','email','email_home'),'','','',False,'AND',false,array('list' =>(int)$address));
@@ -3496,20 +3499,4 @@
$response->error(implode(’,’,$results[‘failed’]));
}
}
- /**
-
- Wrapper for Api\Etemplate::ajax_process_content to be able to identify send request to select different fpm pool
-
-
-
@param string $etemplate_exec_id
-
-
-
@param boolean $no_validation
-
-
@throws egw_exception_wrong_parameter
- */
- static public function ajax_send($etemplate_exec_id, array $content, $no_validation)
- {
-
// setting menuaction is required as it triggers different behavior eg. in egw_framework::window_close()
-
$_GET['menuaction'] = 'Api\Etemplate::ajax_process_content';
-
-
return Api\Etemplate::ajax_process_content($etemplate_exec_id, $content, $no_validation);
- }
}
— trunk/mail/js/app.js (original)
+++ trunk/mail/js/app.js Tue Mar 29 12:13:32 2016
@@ -225,8 +225,6 @@
{
this.mailvelopeAvailable(this.mailvelopeCompose);
}
-
// use a wrapper on a different url to be able to use a different fpm pool
-
et2.menuaction = 'mail_compose::ajax_send';
var that = this;
var textAreaWidget = this.et2.getWidgetById('mail_htmltext');
this.mail_isMainWindow = false;
@@ -857,10 +855,10 @@
{
var _id = this.mail_fetchCurrentlyFocussed(selected);
dataElem = jQuery.extend(dataElem, egw.dataGetUIDdata(_id));
@@ -870,11 +868,11 @@
if (typeof _data == ‘object’)
{
attachmentArea.set_value({content:_data});
@@ -3211,7 +3209,7 @@
var ftree = this.et2.getWidgetById(this.nm_index+’[foldertree]’);
var src_label = _senders[0].id.replace(/^[0-9]+::/,’’);
var dest_label = destination.id.replace(/^[0-9]+::/,’’);
@@ -5156,10 +5154,10 @@
et2_dialog.show_dialog(callbackDialog, this.egw.lang(‘Are you sure you want to delete all selected folders?’), this.egw.lang(‘Delete folder’), {},
et2_dialog.BUTTON_YES_NO, et2_dialog.WARNING_MESSAGE, undefined, egw);
},
-
-
-
@param {type} _action
-
@param {type} _sender
*/
@@ -5167,7 +5165,7 @@
{
// row id in nm
var id = _sender[0].id;
-
var defaultActions= {
actions:['delete', 'forward','reply','flagged'], // default actions to display
check:function(_action){
@@ -5178,10 +5176,10 @@
return false;
}
};
@@ -5193,7 +5191,7 @@
// update local storage with added toolbar actions
egw.dataStoreUID(id,content.data);
}
-
this.viewEntry(_action, _sender, true, function(etemplate){
// et2 object in view
var et2 = etemplate.widgetContainer;
@@ -5207,10 +5205,10 @@
var $details = jQuery(’.et2_details.details’);
// Content
var content = et2.getArrayMgr(‘content’).data;
@@ -5222,9 +5220,9 @@
}
// disable the detials if there’s no details
if (!content.ccaddress) $details.hide();
-
// Request email body from server
iframe.set_src(egw.link('/index.php',{menuaction:'mail.mail_ui.loadEmailBody',_messageID:id}));
jQuery(iframe.getDOMNode()).on('load',function(){
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs