Ignore:
Timestamp:
07/29/10 17:16:11 (22 months ago)
Author:
root
Message:

merged trunk into branches PLi-Fusion and ITXP

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ITXP/includes/templates/admin.forums.tpl

    r2342 r2364  
    6565            <tr> 
    6666                <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'> 
    6772                    {$locale.494} 
    6873                    <br /> 
     
    145150            <tr> 
    146151                <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} 
    148153                </td> 
    149154            </tr> 
     
    167172    </form> 
    168173{literal}<script type='text/javascript'> 
    169 function togglefields() { 
     174function togglefields(name) { 
    170175    if(navigator.appName.indexOf('Microsoft') > -1) { 
    171176        state = 'block'; 
     
    173178        state = 'table-row'; 
    174179    } 
    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; 
    177182    } else { 
    178         document.getElementById('attachtypes').style.display = 'none'; 
     183        document.getElementById(name).style.display = 'none'; 
    179184    } 
    180185} 
Note: See TracChangeset for help on using the changeset viewer.