mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-02-18 15:11:22 -05:00
* Add eslint to travis.yml * Update eslint package versions and apply new indent rules * Enable the brace-style and block-style eslint rules * Enable the 'curly' eslint rule * Enable the 'keyword-spacing' eslint rule * Enable the 'key-spacing' eslint rule * Enable the 'object-curly-spacing' eslint rule * Enable the 'no-new-object' eslint rule * Only disable the no-caller eslint rule in the one affected file * Enable the 'no-unused-vars' eslint rule for local variables * Add linting of JS in .php files
17 lines
593 B
JavaScript
17 lines
593 B
JavaScript
/*
|
|
* MooTools Extension script to support custom extensions to mootools
|
|
*/
|
|
var zmMooToolsVersion = '1.3.2';
|
|
|
|
/*
|
|
* Firstly, lets check that mootools has been included and thus is present
|
|
*/
|
|
if ( typeof(MooTools) == "undefined" ) {
|
|
alert( "MooTools not found! Please check that it was installed correctly in ZoneMinder web root." );
|
|
} else {
|
|
/* Version check */
|
|
if ( MooTools.version < zmMooToolsVersion ) {
|
|
alert( "MooTools version "+MooTools.version+" found.\nVersion "+zmMooToolsVersion+" required, please check that it was installed correctly in ZoneMinder web root." );
|
|
}
|
|
}
|