From: Michael M Slusarz Date: Tue, 4 Aug 2009 19:26:21 +0000 (-0600) Subject: Not sure where this went in Git - probably due to the .gitignore X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=d8ca543eb24ec0a900e27582676e414259ce4a16;p=horde.git Not sure where this went in Git - probably due to the .gitignore changes. --- diff --git a/turba/js/contact_tabs.js b/turba/js/contact_tabs.js new file mode 100644 index 000000000..c25e66164 --- /dev/null +++ b/turba/js/contact_tabs.js @@ -0,0 +1,19 @@ +var contactTabs = null; +function ShowTab(tab) +{ + if (contactTabs == null) { + contactTabs = $('page').select('.tabset')[0].down(); + } + + contactTabs.select('li').each(function(item) { + if (item.id == 'tab' + tab) { + item.addClassName('activeTab'); + $(item.id.substring(3)).show(); + } else { + item.removeClassName('activeTab'); + $(item.id.substring(3)).hide(); + } + }); + + return false; +}