summaryrefslogtreecommitdiff
path: root/skins/default/templates/settings.html
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-10-02 08:39:49 +0000
committeralecpl <alec@alec.pl>2008-10-02 08:39:49 +0000
commit5f660cd7c4662c30921b76b04a7b9d92e82182df (patch)
tree39403ec7f26d27eb66c2efcae0cd65dd39debec7 /skins/default/templates/settings.html
parenta2740628bb1dcfaa84d00ac05a80a92afdaffbd6 (diff)
- Minimize "inline" javascript use (#1485433)
Diffstat (limited to 'skins/default/templates/settings.html')
-rw-r--r--skins/default/templates/settings.html16
1 files changed, 3 insertions, 13 deletions
diff --git a/skins/default/templates/settings.html b/skins/default/templates/settings.html
index 0bc0f1853..f30d093bb 100644
--- a/skins/default/templates/settings.html
+++ b/skins/default/templates/settings.html
@@ -4,17 +4,9 @@
<title><roundcube:object name="pagetitle" /></title>
<roundcube:include file="/includes/links.html" />
<link rel="stylesheet" type="text/css" href="/settings.css" />
-<script type="text/javascript">
-function show_adv(box)
-{
- var rows = document.getElementsByTagName('TR');
- for(var i=0; i<rows.length; i++)
- if(rows[i].className && rows[i].className.match(/advanced/))
- rows[i].style.display = box.checked ? (bw.ie ? 'block' : 'table-row') : 'none';
-}
-</script>
+<script type="text/javascript" src="/functions.js"></script>
</head>
-<body>
+<body onload="rcube_init_settings_tabs()">
<roundcube:include file="/includes/taskbar.html" />
<roundcube:include file="/includes/header.html" />
@@ -34,10 +26,8 @@ function show_adv(box)
<div class="advswitch">
<label for="advswitch"><roundcube:label name="advancedoptions"><label>
-<input type="checkbox" id="advswitch" name="_advanced" value="0" onclick="show_adv(this)" />
+<input type="checkbox" id="advswitch" name="_advanced" value="0" onclick="rcube_show_advanced(this.checked)" />
</div>
-<roundcube:include file="/includes/settingscripts.html" />
-
</body>
</html>