1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-09 10:16:36 +02:00

Removing minimum times from registration

git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8408 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Henry Sudhof
2008-02-27 15:10:52 +00:00
parent 0a37e9a929
commit 38c636deb5
5 changed files with 5 additions and 95 deletions

View File

@@ -1,26 +1,5 @@
<!-- INCLUDE overall_header.html -->
<script type="text/javascript" defer="defer" >
// <![CDATA[
function disable(disabl, name)
{
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, "agreed")');
setInterval('disable(false, "agreed")', {S_TIME});
<!-- ENDIF -->
// ]]>
</script>
<!-- IF S_SHOW_COPPA or S_REGISTRATION -->

View File

@@ -11,24 +11,6 @@
document.forms['register'].submit.click();
}
function disable(disabl, name)
{
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, "submit")');
setInterval('disable(false, "submit")', {S_TIME});
<!-- ENDIF -->
// ]]>
</script>

View File

@@ -1,30 +1,6 @@
<!-- INCLUDE overall_header.html -->
<script type="text/javascript" defer="defer" >
// <![CDATA[
var old_func = window.onload;
function disable(disabl)
{
document.getElementById("agreed").disabled = disabl;
}
function disable_and_handle()
{
if (old_func)
{
old_func();
}
disable(true);
}
<!-- IF S_TIME -->
window.onload = disable_and_handle;
setInterval("disable(false)", {S_TIME});
<!-- ENDIF -->
// ]]>
</script>
<!-- IF S_SHOW_COPPA or S_REGISTRATION -->

View File

@@ -11,26 +11,6 @@
document.forms['register'].submit.click();
}
var old_func = window.onload;
function disable(disabl)
{
document.getElementById("submit").disabled = disabl;
}
function disable_and_handle()
{
if (old_func)
{
old_func();
}
disable(true);
}
<!-- IF S_TIME -->
window.onload = disable_and_handle;
setInterval("disable(false)", {S_TIME});
<!-- ENDIF -->
// ]]>
</script>