prewikka/master: Fix advanced/simple mode issue when iterating inline filter state

[email protected] Tue, 30 Jun 2009 10:22:01 +0200 (CEST)
Newsgroups gmane.comp.security.ids.prelude.cvs
Message-ID <[email protected]>
commit a0d129564d8a39573c69f1b3dd1d6399fafb9e56
Author: Yoann Vandoorselaere <[email protected]>
Date:   Mon Jun 29 16:39:33 2009 +0200

    Fix advanced/simple mode issue when iterating inline filter state
    
    When iterating different inline filter state (current, saved, default),
    we wouldn't appropriatly reset to "simple" mode if the previous state
    was "advanced".


========================================

 prewikka/templates/AlertListing.tmpl |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

========================================

diff --git a/prewikka/templates/AlertListing.tmpl b/prewikka/templates/AlertListing.tmpl
index e933721..1d14414 100644
--- a/prewikka/templates/AlertListing.tmpl
+++ b/prewikka/templates/AlertListing.tmpl
@@ -202,6 +202,10 @@ function ${type}_zero() {
  filter_table.find("tr:not(':first')").remove()
  filter_table.find("input[type=text]").val("")
  \$("#${type} table.aggregation_table tr:not(':first')").remove()
+
+ ## reset to non expert mode.
+ if ( filter_table.find(".td_container_path").children().is(":visible") )
+   filter_table.find(".expert_mode").click();
 }
 
 function ${type}_set_default() {
_______________________________________________
Prelude-cvslog site list
[email protected]
http://lists.prelude-ids.org/mailman/listinfo/prelude-cvslog