]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 741627: Add ability to toggle search description in bug lists like
authorTiago Mello <timello@gmail.com>
Fri, 13 Apr 2012 00:18:15 +0000 (21:18 -0300)
committerTiago Mello <timello@gmail.com>
Fri, 13 Apr 2012 00:18:15 +0000 (21:18 -0300)
'Show Advanced Fields' does in enter bug.
r/a=LpSolit

template/en/default/list/list.html.tmpl

index 6c600c6fa86721b1dc25baa4c03d23e9fac74d78..1dfdf51c2824f42177537e4dfdc10a2cecc91f27 100644 (file)
@@ -57,7 +57,7 @@
   style = style
   atomlink = "buglist.cgi?$urlquerypart&title=$title&ctype=atom" 
   yui = [ 'autocomplete', 'calendar' ]
-  javascript_urls = [ "js/util.js", "js/field.js" ]
+  javascript_urls = [ "js/util.js", "js/field.js", "js/TUI.js" ]
   style_urls = [ "skins/standard/buglist.css" ]
   doc_section = "query.html#list"
 %]
   'changedfrom', 'changedto', 'changedby', 'notsubstring', 'nowords',
   'nowordssubstr', 'notmatches',
 ] %]
+<a id="search_description_controller" class="bz_default_hidden"
+   href="javascript:TUI_toggle_class('search_description')">Hide Search Description</a>
+[%# Show the link if the browser supports JS %]
+<script type="text/javascript">
+  TUI_alternates['search_description'] = 'Show Search Description';
+  YAHOO.util.Dom.removeClass('search_description_controller', 
+                             'bz_default_hidden');
+</script>
+
 <ul class="search_description">
 [% FOREACH desc_item = search_description %]
   <li>