2007-11-11 23:59:29 +08:00
|
|
|
/*
|
|
|
|
* MooTools Extension script to support custom extensions to mootools
|
|
|
|
*/
|
2011-01-31 16:54:39 +08:00
|
|
|
var zmMooToolsVersion = '1.2.5';
|
2007-11-11 23:59:29 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Firstly, lets check that mootools has been included and thus is present
|
|
|
|
*/
|
|
|
|
if ( typeof(MooTools) == "undefined" )
|
|
|
|
{
|
|
|
|
alert( "MooTools not found! Please download from\nhttp://mootools.net and install in ZoneMinder web root." );
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
//console.log( "Got MooTools version "+MooTools.version );
|
|
|
|
|
|
|
|
/* Version check */
|
|
|
|
if ( MooTools.version < zmMooToolsVersion )
|
|
|
|
{
|
|
|
|
alert( "MooTools version "+MooTools.version+" found.\nVersion "+zmMooToolsVersion+" required, please upgrade." );
|
|
|
|
}
|
|
|
|
}
|