adding an own recipients onChange callback, as set_dragging_dndCompose is also called on hover

This commit is contained in:
Ralf Becker 2015-05-26 16:33:35 +00:00
parent f0da3a71f9
commit ad07c416bf
2 changed files with 12 additions and 4 deletions

View File

@ -4128,7 +4128,7 @@ app.classes.mail = AppJS.extend(
* - make them draggable
* - 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 (this.mailvelope_editor)
@ -4139,6 +4139,14 @@ app.classes.mail = AppJS.extend(
self.egw.message(_err.message, 'error');
});
}
this.set_dragging_dndCompose();
},
/**
* Make recipients draggable
*/
set_dragging_dndCompose: function ()
{
var zIndex = 100;
var dragItems = jQuery('div.ms-sel-item:not(div.ui-draggable)');
dragItems.each(function(i,item){

View File

@ -54,7 +54,7 @@
</row>
<row class="mailComposeHeaders" >
<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>
<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"/>
@ -62,12 +62,12 @@
</row>
<row class="mailComposeHeaders mailComposeJQueryCc">
<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/>
</row>
<row class="mailComposeHeaders mailComposeJQueryBcc">
<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/>
</row>
<row class="mailComposeHeaders">