Bug 129375 - disable filter in simple template

git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@1809 6955db30-a419-402b-8a0d-67ecbb4d7f56
master
akrasilnikov 2013-09-20 11:47:09 +00:00
parent 05b2de5ca0
commit d1faa45bb2
2 changed files with 6 additions and 0 deletions

View File

@ -1352,6 +1352,8 @@ _close_standby_message($contenttype, $disposition, $serverpush);
# Content Generation
################################################################################
$vars->{'template_format'} = $format->{'template'};
# Generate and return the UI (HTML page) from the appropriate template.
my $output;
$template->process($format->{'template'}, $vars, \$output)

View File

@ -51,6 +51,7 @@
[% tableheader = BLOCK %]
<table class="bz_buglist sortable" cellspacing="0" cellpadding="4" width="100%">
[% IF template_format != "list/list-simple.html.tmpl" %]
<tr>
[% i = lsearch(order_columns, 'bug_id') %]
<td><input type="button" value="Apply" id="usr_filter_submit" /></td>
@ -59,6 +60,7 @@
[% PROCESS columnheaderfilter key=loop.count() %]
[% END %]
</tr>
[% END %]
<thead>
<tr class="bz_buglist_header bz_first_buglist_header">
[% IF dotweak %]
@ -267,6 +269,7 @@
</tbody>
</table>
[% IF template_format != "list/list-simple.html.tmpl" %]
<script type="text/javascript">
addListener('usr_filter_submit', 'click', function (e) {
var inputs = [ "bug_severity", "priority", "bug_status", "resolution" ];
@ -289,6 +292,7 @@
window.location.href = href;
});
</script>
[% END %]
[% BLOCK time_summary_line %]
<tr class="bz_time_summary_line">