Not sure where this went in Git - probably due to the .gitignore
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 4 Aug 2009 19:26:21 +0000 (13:26 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 4 Aug 2009 20:05:50 +0000 (14:05 -0600)
changes.

turba/js/contact_tabs.js [new file with mode: 0644]

diff --git a/turba/js/contact_tabs.js b/turba/js/contact_tabs.js
new file mode 100644 (file)
index 0000000..c25e661
--- /dev/null
@@ -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;
+}