prewikka/master: Fix inline filter reset button labelling problem
[email protected] Tue, 30 Jun 2009 10:22:01 +0200 (CEST)
| Newsgroups | gmane.comp.security.ids.prelude.cvs |
|---|---|
| Message-ID | <[email protected]> |
commit 5be546010187312586e656fd348dfbc664bbd69f Author: Yoann Vandoorselaere <[email protected]> Date: Mon Jun 29 16:21:08 2009 +0200 Fix inline filter reset button labelling problem Sometime, the reset button would propose the user to "Reset to current", when it should have been "Reset to saved". Make sure we check that the current state is not equal to the saved state on loading. ======================================== prewikka/templates/AlertListing.tmpl | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) ======================================== diff --git a/prewikka/templates/AlertListing.tmpl b/prewikka/templates/AlertListing.tmpl index e7bcf78..e933721 100644 --- a/prewikka/templates/AlertListing.tmpl +++ b/prewikka/templates/AlertListing.tmpl @@ -381,6 +381,9 @@ function ${type}_set_${state}() { if ( Equals(saved_forms["${type}"]["current"], saved_forms["${type}"]["default"]) ) saved_forms["${type}"]["current"] = null; + if ( Equals(saved_forms["${type}"]["current"], saved_forms["${type}"]["saved"]) ) + saved_forms["${type}"]["current"] = null; + ## Set the current state if ( Equals(form, saved_forms["${type}"]["default"]) ) saved_state["$type"] = "default"; _______________________________________________ Prelude-cvslog site list [email protected] http://lists.prelude-ids.org/mailman/listinfo/prelude-cvslog