complete the code for admin tasks page loading

This commit is contained in:
Oliver Gorwits
2013-05-05 21:45:17 +01:00
parent 38f70624f3
commit 3271c01931
7 changed files with 63 additions and 17 deletions

View File

@@ -0,0 +1,11 @@
// used by the tabbing interface to make sure the correct
// ajax content is loaded
var path = 'admin';
// this is called by do_search to support local code
// here, when tab changes need to strike/unstrike the navbar search
function inner_view_processing(tab) { }
// on load, check initial Device Search Options form state,
// and on each change to the form fields
$(document).ready(function() { });

View File

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