1
0
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:
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

@@ -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>

View File

@@ -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 -->
// ]]>