mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-01-31 09:31:14 -05:00
30 lines
448 B
JavaScript
30 lines
448 B
JavaScript
function validateForm( form )
|
|
{
|
|
return( true );
|
|
}
|
|
|
|
function submitForm( form )
|
|
{
|
|
form.submit();
|
|
}
|
|
|
|
|
|
function limitRange( field, minValue, maxValue )
|
|
{
|
|
if ( parseInt(field.value) < parseInt(minValue) )
|
|
{
|
|
field.value = minValue;
|
|
}
|
|
else if ( parseInt(field.value) > parseInt(maxValue) )
|
|
{
|
|
field.value = maxValue;
|
|
}
|
|
}
|
|
|
|
function initPage()
|
|
{
|
|
return( true );
|
|
}
|
|
|
|
window.addEvent( 'domready', initPage );
|