1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-06 15:45:34 +02:00

Let's be not quite that ambigious.

git-svn-id: file:///svn/phpbb/trunk@8158 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Henry Sudhof 2007-10-09 15:42:39 +00:00
parent 96617d8902
commit 4cce6105c2
4 changed files with 30 additions and 9 deletions

View File

@ -208,7 +208,7 @@ $lang = array_merge($lang, array(
'MIN_CHARS' => 'Min', 'MIN_CHARS' => 'Min',
'MIN_TIME_REG' => 'Minimum time for registration', 'MIN_TIME_REG' => 'Minimum time for registration',
'MIN_TIME_REG_EXPLAIN' => 'The registration form cannot be submitted before this time has passed.', 'MIN_TIME_REG_EXPLAIN' => 'The registration form cannot be submitted before this time has passed.',
'MIN_TIME_TERMS' => 'Minimum time for registration', 'MIN_TIME_TERMS' => 'Minimum time for accepting terms',
'MIN_TIME_TERMS_EXPLAIN' => 'The terms page cannot be skipped before this time has passed.', 'MIN_TIME_TERMS_EXPLAIN' => 'The terms page cannot be skipped before this time has passed.',
'NO_AUTH_PLUGIN' => 'No suitable auth plugin found.', 'NO_AUTH_PLUGIN' => 'No suitable auth plugin found.',
'PASSWORD_LENGTH' => 'Password length', 'PASSWORD_LENGTH' => 'Password length',

View File

@ -2,14 +2,22 @@
<script type="text/javascript" defer="defer" > <script type="text/javascript" defer="defer" >
// <![CDATA[ // <![CDATA[
function disable(disabl) function disable(disabl, name)
{ {
document.getElementById("agreed").disabled = disabl; document.getElementById(name).disabled = disabl;
if (disabl)
{
document.getElementById(name).className = 'button1 disabled';
}
else
{
document.getElementById(name).className = 'button1 enabled';
}
} }
<!-- IF S_TIME --> <!-- IF S_TIME -->
onload_functions.push('disable(true)'); onload_functions.push('disable(true, "agreed")');
setTimeout("disable(false)", {S_TIME}); setTimeout('disable(false, "agreed")', {S_TIME});
<!-- ENDIF --> <!-- ENDIF -->
// ]]> // ]]>
</script> </script>

View File

@ -11,14 +11,22 @@
document.forms['register'].submit.click(); document.forms['register'].submit.click();
} }
function disable(disabl) function disable(disabl, name)
{ {
document.getElementById("submit").disabled = disabl; document.getElementById(name).disabled = disabl;
if (disabl)
{
document.getElementById(name).className = 'button1 disabled';
}
else
{
document.getElementById(name).className = 'button1 enabled';
}
} }
<!-- IF S_TIME --> <!-- IF S_TIME -->
onload_functions.push('disable(true)'); onload_functions.push('disable(true, "submit")');
setTimeout("disable(false)", {S_TIME}); setTimeout('disable(false, "submit")', {S_TIME});
<!-- ENDIF --> <!-- ENDIF -->
// ]]> // ]]>

View File

@ -355,6 +355,11 @@ a.button1:hover, input.button1:hover, a.button2:hover, input.button2:hover, inpu
color: #BCBCBC; color: #BCBCBC;
} }
input.disabled {
font-weight: normal;
color: #666666;
}
/* Topic and forum Search */ /* Topic and forum Search */
.search-box { .search-box {
margin-top: 3px; margin-top: 3px;