diff options
Diffstat (limited to 'phpBB/styles/subsilver2/template/ucp_prefs_personal.html')
-rw-r--r-- | phpBB/styles/subsilver2/template/ucp_prefs_personal.html | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/phpBB/styles/subsilver2/template/ucp_prefs_personal.html b/phpBB/styles/subsilver2/template/ucp_prefs_personal.html index 3dd6e3cfb4..e2266b7d38 100644 --- a/phpBB/styles/subsilver2/template/ucp_prefs_personal.html +++ b/phpBB/styles/subsilver2/template/ucp_prefs_personal.html @@ -1,7 +1,7 @@ <!-- INCLUDE ucp_header.html --> <script type="text/javascript"> -<!-- +// <![CDATA[ /** * Set display of page element * s[-1,0,1] = hide,toggle display,show @@ -15,7 +15,9 @@ } e.style.display = (s == 1) ? 'block' : 'none'; } -//--> + + var default_dateformat = '{A_DEFAULT_DATEFORMAT}'; +// ]]> </script> <table class="tablebg" width="100%" cellspacing="1"> @@ -82,7 +84,7 @@ <tr> <td class="row1" width="50%"><b class="genmed">{L_BOARD_DATE_FORMAT}:</b><br /><span class="gensmall">{L_BOARD_DATE_FORMAT_EXPLAIN}</span></td> <td class="row2"> - <select name="dateoptions" id="dateoptions" onchange="if(this.value=='custom'){dE('custom_date',1);}else{dE('custom_date',-1);} if (this.value == 'custom') { document.getElementById('dateformat').value = '{A_DEFAULT_DATEFORMAT}'; } else { document.getElementById('dateformat').value = this.value; }"> + <select name="dateoptions" id="dateoptions" onchange="if(this.value=='custom'){dE('custom_date',1);}else{dE('custom_date',-1);} if (this.value == 'custom') { document.getElementById('dateformat').value = default_dateformat; } else { document.getElementById('dateformat').value = this.value; }"> {S_DATEFORMAT_OPTIONS} </select> <div id="custom_date"<!-- IF not S_CUSTOM_DATEFORMAT --> style="display:none;"<!-- ENDIF -->><input type="text" name="dateformat" id="dateformat" value="{DATE_FORMAT}" maxlength="30" class="post" style="margin-top: 3px;" /></div> |