changeset 2741:144023c286ee

Now Clicking the All, Open, or Closed buttons in +tickets view clears search field and selected tags
author Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
date Sat, 16 Aug 2014 21:09:17 +0530
parents 122424b4bc22
children a99204e6772d
files MoinMoin/templates/tickets.html
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/templates/tickets.html	Sat Aug 16 20:27:39 2014 +0530
+++ b/MoinMoin/templates/tickets.html	Sat Aug 16 21:09:17 2014 +0530
@@ -8,8 +8,8 @@
 {% set status_values = ['all', 'open', 'closed']  %}
 {{_("Filter:")}}
 {% for status_value in status_values %}
-    <form action="{{ url_for('frontend.tickets', selected_tags=list(selected_tags), time_sorting=time_sorting if time_sorting) }}" method="post" class='moin-ticketsearch-form'>
-        <input type="hidden" name="q" value="{{ query if query }}" >
+    <form action="{{ url_for('frontend.tickets', selected_tags=list(), time_sorting=time_sorting if time_sorting) }}" method="post" class='moin-ticketsearch-form'>
+        <input type="hidden" name="q" value="" >
         &nbsp;<input type="hidden" name="status" value="{{ status_value }}">
         <input type="submit" value="{{ status_value.capitalize() }}" title="{{ _('Show %(status)s tickets', status=status_value) }}" class="{{ 'ticket-query-button active' if status == status_value  else 'ticket-query-button'}}">
     </form>