Fix so modifier type select wasn't hidden after hiding modifier select on header change

pull/7066/head
Aleksander Machniak 5 years ago
parent ffeebff3f9
commit 006f7d1087

@ -2,6 +2,7 @@ CHANGELOG Roundcube Webmail
=========================== ===========================
- Managesieve: Replace "Filter disabled" with "Filter enabled" (#7028) - Managesieve: Replace "Filter disabled" with "Filter enabled" (#7028)
- Managesieve: Fix so modifier type select wasn't hidden after hiding modifier select on header change
- Enigma: Add script to import keys from filesystem to the db storage (for multihost) - Enigma: Add script to import keys from filesystem to the db storage (for multihost)
- Fix so type attribute on script tags is not used on HTML5 pages (#6975) - Fix so type attribute on script tags is not used on HTML5 pages (#6975)
- Fix unread count after purge on a folder that is not currently selected (#7051) - Fix unread count after purge on a folder that is not currently selected (#7051)

@ -1,4 +1,5 @@
- Replace "Filter disabled" with "Filter enabled" (#7028) - Replace "Filter disabled" with "Filter enabled" (#7028)
- Fix so modifier type select wasn't hidden after hiding modifier select on header change
* version 9.3 [2019-04-21] * version 9.3 [2019-04-21]
----------------------------------------------------------- -----------------------------------------------------------

@ -679,7 +679,7 @@ function rule_header_select(id)
rule.val('contains'); rule.val('contains');
rule_op_select(op, id, h); rule_op_select(op, id, h);
rule_mod_select(id, h); rule_mod_select(id, h, !is_header);
rule_mime_select(id); rule_mime_select(id);
obj.style.width = h == '...' ? '40px' : ''; obj.style.width = h == '...' ? '40px' : '';
@ -703,13 +703,16 @@ function rule_trans_select(id)
target.style.display = obj.value != 'content' ? 'none' : 'inline'; target.style.display = obj.value != 'content' ? 'none' : 'inline';
}; };
function rule_mod_select(id, header) function rule_mod_select(id, header, reset)
{ {
var obj = document.getElementById('rule_mod_op' + id), var obj = document.getElementById('rule_mod_op' + id),
target = document.getElementById('rule_mod_type' + id), target = document.getElementById('rule_mod_type' + id),
duplicate = document.getElementById('rule_duplicate_div' + id), duplicate = document.getElementById('rule_duplicate_div' + id),
index = document.getElementById('rule_index_div' + id); index = document.getElementById('rule_index_div' + id);
if (reset)
obj.value = '';
if (!header) if (!header)
header = document.getElementById('header' + id).value; header = document.getElementById('header' + id).value;

Loading…
Cancel
Save