mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-12 19:54:12 +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:
@@ -2,14 +2,22 @@
|
||||
|
||||
<script type="text/javascript" defer="defer" >
|
||||
// <![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 -->
|
||||
onload_functions.push('disable(true)');
|
||||
setTimeout("disable(false)", {S_TIME});
|
||||
onload_functions.push('disable(true, "agreed")');
|
||||
setTimeout('disable(false, "agreed")', {S_TIME});
|
||||
<!-- ENDIF -->
|
||||
// ]]>
|
||||
</script>
|
||||
|
@@ -11,14 +11,22 @@
|
||||
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 -->
|
||||
onload_functions.push('disable(true)');
|
||||
setTimeout("disable(false)", {S_TIME});
|
||||
onload_functions.push('disable(true, "submit")');
|
||||
setTimeout('disable(false, "submit")', {S_TIME});
|
||||
<!-- ENDIF -->
|
||||
|
||||
// ]]>
|
||||
|
Reference in New Issue
Block a user