change id for tag in device and search tab plugins

This commit is contained in:
Oliver Gorwits
2013-03-10 18:37:19 +00:00
parent b818d4156f
commit af8f124bb2
13 changed files with 31 additions and 31 deletions

View File

@@ -1,10 +1,10 @@
$(document).ready(function() {
// search hook for each tab
[% FOREACH tab IN settings.search_tabs %]
$('[% "#${tab.id}_form" %]').submit(function(event){ do_search(event, '[% tab.id %]'); });
$('[% "#${tab.tag}_form" %]').submit(function(event){ do_search(event, '[% tab.tag %]'); });
[% END %]
[% FOREACH tab IN settings.device_tabs %]
$('[% "#${tab.id}_form" %]').submit(function(event){ do_search(event, '[% tab.id %]'); });
$('[% "#${tab.tag}_form" %]').submit(function(event){ do_search(event, '[% tab.tag %]'); });
[% END %]
// on page load, load the content for the active tab