Commit 0dc0b32e authored by Jelle Sebreghts's avatar Jelle Sebreghts
Browse files

Issue #1251394 by igorik: Fixed wysiwyg problem with client side validation.

parent 009b994e
......@@ -141,7 +141,7 @@ function clientside_validation_webform_after_build(&$form, &$form_state) {
drupal_add_js(drupal_get_path('module', 'clientside_validation') . '/jquery-validate/jquery.validate.min.js');
}
//add our js file to the footer to support vertical_tabs
drupal_add_js(drupal_get_path('module', 'clientside_validation') . '/clientside_validation.js', array('scope' => 'footer'));
drupal_add_js(drupal_get_path('module', 'clientside_validation') . '/clientside_validation.js', array('scope' => 'footer', 'weight' => 20));
drupal_add_js($settings, 'setting');
}
return $form;
......@@ -221,7 +221,7 @@ function clientside_validation_form_after_build(&$form, &$form_state) {
drupal_add_js(drupal_get_path('module', 'clientside_validation') . '/jquery-validate/jquery.validate.min.js');
}
//add our js file to the footer to support vertical_tabs
drupal_add_js(drupal_get_path('module', 'clientside_validation') . '/clientside_validation.js', array('scope' => 'footer'));
drupal_add_js(drupal_get_path('module', 'clientside_validation') . '/clientside_validation.js', array('scope' => 'footer', 'weight' => 20));
drupal_add_js($settings, 'setting');
$form_ids[$form['#id']] = TRUE;
}
......
......@@ -9,7 +9,7 @@
function clientside_validation_html5_clientside_validation_form_alter(&$form, &$form_state, &$js_rules) {
static $js_added = FALSE;
if (!$js_added) {
drupal_add_js(drupal_get_path('module', 'clientside_validation_html5') . '/clientside_validation_html5.js', array('scope' => 'footer'));
drupal_add_js(drupal_get_path('module', 'clientside_validation_html5') . '/clientside_validation_html5.js', array('scope' => 'footer', 'weight' => 20));
$js_added = TRUE;
}
clientside_validation_html5_after_build_recurse($form['#id'], $form, $form_state, $js_rules);
......
Supports Markdown
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