diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-01-26 17:59:06 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-01-26 17:59:06 +0000 |
commit | 190fef513feaeee9a4f72302690ba95d7d392c4b (patch) | |
tree | ddb2cef869c8638f19558ee4570dd4e9f51c7e36 /public/javascripts/application.js | |
parent | b9ef10fe3fb6e76e1c913a7c260d48b5feed8260 (diff) | |
download | redmine-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.js | 14 |
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 |