mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-27 16:29:52 +01:00
adding an own recipients onChange callback, as set_dragging_dndCompose is also called on hover
This commit is contained in:
parent
f0da3a71f9
commit
ad07c416bf
@ -4128,7 +4128,7 @@ app.classes.mail = AppJS.extend(
|
|||||||
* - make them draggable
|
* - make them draggable
|
||||||
* - check if we have keys for recipients, if we compose an encrypted mail
|
* - check if we have keys for recipients, if we compose an encrypted mail
|
||||||
**/
|
**/
|
||||||
set_dragging_dndCompose: function ()
|
recipients_onchange: function()
|
||||||
{
|
{
|
||||||
// if we compose an encrypted mail, check if we have keys for new recipient
|
// if we compose an encrypted mail, check if we have keys for new recipient
|
||||||
if (this.mailvelope_editor)
|
if (this.mailvelope_editor)
|
||||||
@ -4139,6 +4139,14 @@ app.classes.mail = AppJS.extend(
|
|||||||
self.egw.message(_err.message, 'error');
|
self.egw.message(_err.message, 'error');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
this.set_dragging_dndCompose();
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Make recipients draggable
|
||||||
|
*/
|
||||||
|
set_dragging_dndCompose: function ()
|
||||||
|
{
|
||||||
var zIndex = 100;
|
var zIndex = 100;
|
||||||
var dragItems = jQuery('div.ms-sel-item:not(div.ui-draggable)');
|
var dragItems = jQuery('div.ms-sel-item:not(div.ui-draggable)');
|
||||||
dragItems.each(function(i,item){
|
dragItems.each(function(i,item){
|
||||||
|
@ -54,7 +54,7 @@
|
|||||||
</row>
|
</row>
|
||||||
<row class="mailComposeHeaders" >
|
<row class="mailComposeHeaders" >
|
||||||
<description value="To"/>
|
<description value="To"/>
|
||||||
<taglist-email id="to" width="100%" onclick="app.mail.address_click" include_lists="true" onchange="app.mail.set_dragging_dndCompose"/>
|
<taglist-email id="to" width="100%" onclick="app.mail.address_click" include_lists="true" onchange="app.mail.recipients_onchange"/>
|
||||||
<vbox>
|
<vbox>
|
||||||
<description id="cc_expander" value="Cc" class="et2_button_text" onclick="app.mail.compose_fieldExpander"/>
|
<description id="cc_expander" value="Cc" class="et2_button_text" onclick="app.mail.compose_fieldExpander"/>
|
||||||
<description id="bcc_expander" value="Bcc" class="et2_button_text" onclick="app.mail.compose_fieldExpander"/>
|
<description id="bcc_expander" value="Bcc" class="et2_button_text" onclick="app.mail.compose_fieldExpander"/>
|
||||||
@ -62,12 +62,12 @@
|
|||||||
</row>
|
</row>
|
||||||
<row class="mailComposeHeaders mailComposeJQueryCc">
|
<row class="mailComposeHeaders mailComposeJQueryCc">
|
||||||
<description value="Cc"/>
|
<description value="Cc"/>
|
||||||
<taglist-email id="cc" width="100%" onclick="app.mail.address_click" include_lists="true" onchange="app.mail.set_dragging_dndCompose"/>
|
<taglist-email id="cc" width="100%" onclick="app.mail.address_click" include_lists="true" onchange="app.mail.recipients_onchange"/>
|
||||||
<description/>
|
<description/>
|
||||||
</row>
|
</row>
|
||||||
<row class="mailComposeHeaders mailComposeJQueryBcc">
|
<row class="mailComposeHeaders mailComposeJQueryBcc">
|
||||||
<description value="Bcc"/>
|
<description value="Bcc"/>
|
||||||
<taglist-email id="bcc" width="100%" onclick="app.mail.address_click" include_lists="true" onchange="app.mail.set_dragging_dndCompose"/>
|
<taglist-email id="bcc" width="100%" onclick="app.mail.address_click" include_lists="true" onchange="app.mail.recipients_onchange"/>
|
||||||
<description/>
|
<description/>
|
||||||
</row>
|
</row>
|
||||||
<row class="mailComposeHeaders">
|
<row class="mailComposeHeaders">
|
||||||
|
Loading…
Reference in New Issue
Block a user