Changeset 2364 in ExiteCMS for branches/ITXP/includes/templates/admin.forums.tpl
- Timestamp:
- 07/29/10 17:16:11 (22 months ago)
- File:
-
- 1 edited
-
branches/ITXP/includes/templates/admin.forums.tpl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/ITXP/includes/templates/admin.forums.tpl
r2342 r2364 65 65 <tr> 66 66 <td colspan='2' class='tbl'> 67 <input type='checkbox' name='forum_prefix' value='1' onchange='togglefields("prefixes");'{if $forum_prefix} checked="checked"{/if} /> {$locale.495} 68 </td> 69 </tr> 70 <tr id='prefixes'{if !$forum_prefix} style='display:none'{/if}> 71 <td colspan='2' class='tbl'> 67 72 {$locale.494} 68 73 <br /> … … 145 150 <tr> 146 151 <td colspan='2' class='tbl'> 147 <input type='checkbox' name='forum_attach' value='1' onchange='togglefields( );'{if $forum_attach} checked="checked"{/if} /> {$locale.469}152 <input type='checkbox' name='forum_attach' value='1' onchange='togglefields("attachtypes");'{if $forum_attach} checked="checked"{/if} /> {$locale.469} 148 153 </td> 149 154 </tr> … … 167 172 </form> 168 173 {literal}<script type='text/javascript'> 169 function togglefields( ) {174 function togglefields(name) { 170 175 if(navigator.appName.indexOf('Microsoft') > -1) { 171 176 state = 'block'; … … 173 178 state = 'table-row'; 174 179 } 175 if (document.getElementById( 'attachtypes').style.display == 'none') {176 document.getElementById( 'attachtypes').style.display = state;180 if (document.getElementById(name).style.display == 'none') { 181 document.getElementById(name).style.display = state; 177 182 } else { 178 document.getElementById( 'attachtypes').style.display = 'none';183 document.getElementById(name).style.display = 'none'; 179 184 } 180 185 }
Note: See TracChangeset
for help on using the changeset viewer.
