From: Michael M Slusarz Date: Wed, 10 Mar 2010 06:08:51 +0000 (-0700) Subject: Allow auto forward/reply notice box to be closed X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=3ee55b19e4134c3253866ebb660a1150fd246c1b;p=horde.git Allow auto forward/reply notice box to be closed --- diff --git a/imp/js/compose-dimp.js b/imp/js/compose-dimp.js index ad4a1539f..6b35b6d95 100644 --- a/imp/js/compose-dimp.js +++ b/imp/js/compose-dimp.js @@ -668,7 +668,8 @@ var DimpCompose = { return; } - var elt = orig = e.element(), + var elt = e.element(), + orig = elt, atc_num, id; while (Object.isElement(elt)) { @@ -733,12 +734,14 @@ var DimpCompose = { }.bind(this), duration: 0.4 }); - if (id.startsWith('reply')) { - $('to_loading_img').show(); - DimpCore.doAction('getReplyData', { headeronly: 1, imp_compose: $F('composeCache'), type: 'reply' }, { callback: this.swapToAddressCallback.bind(this) }); - } else { - DimpCore.doAction('GetForwardData', { dataonly: 1, imp_compose: $F('composeCache'), type: (id == 'fwdattachnotice' ? 'forward_body' : 'forward_attach') }, { callback: this.forwardAddCallback.bind(this) }); - $('composeMessage').stopObserving('keydown'); + if (!orig.match('SPAN.closeImg')) { + if (id.startsWith('reply')) { + $('to_loading_img').show(); + DimpCore.doAction('getReplyData', { headeronly: 1, imp_compose: $F('composeCache'), type: 'reply' }, { callback: this.swapToAddressCallback.bind(this) }); + } else { + DimpCore.doAction('GetForwardData', { dataonly: 1, imp_compose: $F('composeCache'), type: (id == 'fwdattachnotice' ? 'forward_body' : 'forward_attach') }, { callback: this.forwardAddCallback.bind(this) }); + $('composeMessage').stopObserving('keydown'); + } } e.stop(); return; diff --git a/imp/templates/chunks/compose.php b/imp/templates/chunks/compose.php index f8fe20584..32ec64c77 100644 --- a/imp/templates/chunks/compose.php +++ b/imp/templates/chunks/compose.php @@ -125,10 +125,10 @@ $compose_disable = !IMP::canCompose(); diff --git a/imp/themes/dimp/screen.css b/imp/themes/dimp/screen.css index 023a8f4f2..b99734d48 100644 --- a/imp/themes/dimp/screen.css +++ b/imp/themes/dimp/screen.css @@ -624,6 +624,11 @@ div.dimpActionsCompose, div.dimpActionsMsg { .msgwrite .dimpOptions label, #replyallnotice, #replylistnotice { cursor: pointer; } +#noticerow li span.closeImg { + float: right; + margin: -1px 0 0; + padding-left: 3px; +} .msgwrite tr { vertical-align: top; }