X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fsieve.c;h=ab6050ce1f0862b7c53b89b34f4d6da8985e5169;hb=55f834c5de07386ad55948e8ec2cc605799d6c1e;hp=56dc27a0cc9c4871b9772c1015d7004f0278ff2d;hpb=986f920a8095112450371b3ae0e0f6444f6667ef;p=citadel.git
diff --git a/webcit/sieve.c b/webcit/sieve.c
index 56dc27a0c..ab6050ce1 100644
--- a/webcit/sieve.c
+++ b/webcit/sieve.c
@@ -374,9 +374,50 @@ void create_script(void) {
void display_rules_editor_inner_div(void) {
int i;
+/*
+ * This script should get called by every onChange event...
+ *
+ */
+ wprintf(" \n"
+ );
+
+
+/*
+ * Show/hide alternating rows. This is obviously bogus, it's just here to test the show/hide logic.
+ wprintf(" for (i=0; i<%d; ++i) { \n", MAX_RULES);
+ wprintf(" if ( (i % 2) == 0 ) { \n"
+ " $('rule' + i).style.display = 'block'; \n"
+ " } \n"
+ " else { \n"
+ " $('rule' + i).style.display = 'none'; \n"
+ " } \n"
+ " } \n"
+ "} \n"
+ " \n"
+*/
+
wprintf("
");
- wprintf("
"); - wprintf(" | "); wprintf("");
- wprintf(" | ");
wprintf("");
- wprintf(" ", i);
+ wprintf("", i);
+ wprintf(" ");
+
+ wprintf("", i);
+ wprintf("", i);
+ wprintf(" ");
wprintf(" | ");
+
+
wprintf("%s | ", _("and then") ); wprintf("");
- wprintf(" |