Commit ac169744 authored by Jelle Sebreghts's avatar Jelle Sebreghts
Browse files

Fix broken libraries.

parent 64e0258f
......@@ -9,7 +9,7 @@
*/
function clientside_validation_jquery_clientside_validation_validator_info_alter(&$validators) {
foreach ($validators as &$validator) {
$validator['attached']['library'][] = 'clientside_validation_jquery/jquery.validate';
$validator['attachments']['library'][] = 'clientside_validation_jquery/cv.jquery.validate';
}
}
......@@ -32,7 +32,7 @@ function clientside_validation_jquery_library_info_alter(&$libraries, $extension
unset($libraries['jquery.validate']['js']['js/lib/dist/jquery.validate.js']);
$libraries['jquery.validate']['js']['https://cdn.jsdelivr.net/jquery.validation/1.14.0/jquery.validate.min.js'] = ['type' => 'external'];
unset($libraries['jquery.validate.additional']['js']['js/lib/dist/additional-methods.js']);
$libraries['jquery.validate']['js']['http://cdn.jsdelivr.net/jquery.validation/1.14.0/additional-methods.min.js'] = ['type' => 'external'];
$libraries['jquery.validate.additional']['js']['http://cdn.jsdelivr.net/jquery.validation/1.14.0/additional-methods.min.js'] = ['type' => 'external'];
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment