From: Art Cancro Date: Sun, 12 Nov 2006 05:34:11 +0000 (+0000) Subject: Fleshed out the rules editor some more X-Git-Tag: v7.86~3850 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=f0de34e3bbd81ba6b80479409a36a02da31e4d7d;hp=2b7406ea4d8a83d06c5f3f9d251bd7e0c83b206a;p=citadel.git Fleshed out the rules editor some more --- diff --git a/webcit/sieve.c b/webcit/sieve.c index ba982d328..6c39881e9 100644 --- a/webcit/sieve.c +++ b/webcit/sieve.c @@ -414,6 +414,19 @@ void display_rules_editor_inner_div(void) { " else { \n" " d.style.display = 'none'; \n" " } \n" + " d = ($('hfield'+i).options[$('hfield'+i).selectedIndex].value); \n" + " if (d == 'all') { \n" + " $('div_size'+i).style.display = 'none'; \n" + " $('div_compare'+i).style.display = 'none'; \n" + " } \n" + " else if (d == 'size') { \n" + " $('div_size'+i).style.display = 'block'; \n" + " $('div_compare'+i).style.display = 'none'; \n" + " } \n" + " else { \n" + " $('div_size'+i).style.display = 'none'; \n" + " $('div_compare'+i).style.display = 'block'; \n" + " } \n" " d = ($('action'+i).options[$('action'+i).selectedIndex].value); \n" " if (d == 'fileinto') { \n" " $('div_fileinto'+i).style.display = 'block'; \n" @@ -463,8 +476,10 @@ void display_rules_editor_inner_div(void) { " things[4] = 'fileinto'; \n" " things[5] = 'redirect'; \n" " things[6] = 'final'; \n" + " things[7] = 'sizecomp'; \n" + " things[8] = 'sizeval'; \n" " \n" - " for (i=0; i<7; ++i) { \n" + " for (i=0; i<9; ++i) { \n" " tempval=$(things[i]+ra).value; \n" " $(things[i]+ra).value = $(things[i]+rb).value; \n" " $(things[i]+rb).value = tempval; \n" @@ -517,27 +532,58 @@ void display_rules_editor_inner_div(void) { wprintf(""); wprintf(""); wprintf(""); + + wprintf("
", i); wprintf(""); wprintf("", i, i); + wprintf("
"); + + wprintf("
", i); + wprintf(""); + + wprintf("", i, i); + wprintf("bytes"); + wprintf("
"); + wprintf(""); wprintf(""); wprintf(""); wprintf("
", i);