fixes to main app to support reports

This commit is contained in:
Oliver Gorwits
2013-03-10 23:40:53 +00:00
parent 55a0f3d8dc
commit 13af853582
6 changed files with 25 additions and 2 deletions

View File

@@ -7,6 +7,11 @@
$('[% "#${tab.tag}_form" %]').submit(function(event){ do_search(event, '[% tab.tag %]'); });
[% END %]
// and for the reports page
[% IF report %]
$('[% "#${report.tag}_form" %]').submit(function(event){ do_search(event, '[% report.tag %]'); });
[% END %]
// on page load, load the content for the active tab
[% IF params.tab %]
$('#[% params.tab %]_form').trigger("submit");