summaryrefslogtreecommitdiffstats
path: root/public/javascripts/application.js
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-01-26 17:59:06 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-01-26 17:59:06 +0000
commit190fef513feaeee9a4f72302690ba95d7d392c4b (patch)
treeddb2cef869c8638f19558ee4570dd4e9f51c7e36 /public/javascripts/application.js
parentb9ef10fe3fb6e76e1c913a7c260d48b5feed8260 (diff)
downloadredmine-190fef513feaeee9a4f72302690ba95d7d392c4b.tar.gz
redmine-190fef513feaeee9a4f72302690ba95d7d392c4b.zip
* project settings split in 4 tabs
* prototype.js upgraded to 1.5.0_rc1 git-svn-id: http://redmine.rubyforge.org/svn/trunk@181 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'public/javascripts/application.js')
-rw-r--r--public/javascripts/application.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/public/javascripts/application.js b/public/javascripts/application.js
index 3625914ab..c8a790472 100644
--- a/public/javascripts/application.js
+++ b/public/javascripts/application.js
@@ -16,4 +16,18 @@ function addFileField() {
p = document.getElementById("attachments_p");
p.appendChild(document.createElement("br"));
p.appendChild(f);
+}
+
+function showTab(name) {
+ var f = $$('div#content .tab-content');
+ for(var i=0; i<f.length; i++){
+ Element.hide(f[i]);
+ }
+ var f = $$('div.tabs a');
+ for(var i=0; i<f.length; i++){
+ Element.removeClassName(f[i], "selected");
+ }
+ Element.show('tab-content-' + name);
+ Element.addClassName('tab-' + name, "selected");
+ return false;
} \ No newline at end of file