Das Einblenden von ausgeblendeten CVar-Filtern gefixt.
authorThomas Heck <theck@linet-services.de>
Tue, 4 Dec 2012 16:51:06 +0000 (17:51 +0100)
committerThomas Heck <theck@linet-services.de>
Tue, 4 Dec 2012 16:51:06 +0000 (17:51 +0100)
templates/webpages/amcvar/search_filter.html

index fc2dffa..e2ff615 100644 (file)
    [%- END %]
    [%- END %]
 [% IF hidden_cvar_filters %]
-   <tr><td></td><td colspan="3"><a href="#" id="cvar_filter-toggle"><i>[% 'click here to edit cvars' | $T8 %]</i></a></td></tr>
-   <script type='text/javascript'>
-     $('#cvar_filter-toggle').click(function() { $('[id^="cvar_filter"]').toggle(); $('[id^="l_cvartd_"]').toggle(); });
-     $(document).ready(function(){ $('[id^="cvar_filter_"]').hide(); $('[id^="l_cvartd_"]').hide(); });
-   </script>
+  <tr class="cvar_filter-toggle-wrapper">
+    <td></td>
+    <td colspan="3">
+      <a href="javascript:void(0);" class="cvar_filter-toggle"><i>[% 'click here to edit cvars' | $T8 %]</i></a>
+    </td>
+  </tr>
+  <script type='text/javascript'>
+    $(function(){
+      $('[id^="cvar_filter_"]').hide();
+      $('[id^="l_cvartd_"]').hide();
+
+      $('a.cvar_filter-toggle').click(function(){
+        $(".cvar_filter-toggle-wrapper").hide();
+        $('[id^="cvar_filter"]').show();
+        $('[id^="l_cvartd_"]').show();
+      });
+    });
+  </script>
 [% END %]