Skip to content
Snippets Groups Projects
Commit 55da66b8 authored by Esben von Buchwald's avatar Esben von Buchwald
Browse files

Changed drupal_add_js in form_alter to #attached instead.

parent 7666402f
No related branches found
No related tags found
No related merge requests found
......@@ -226,8 +226,8 @@ function soft_length_limit_form_node_form_alter(&$form, $form_state) {
$form['title']['#attributes']['class'][] = 'soft-length-limit';
$form['title']['#attributes']['data-soft-length-limit'] = $max_length;
$form['title']['#attributes']['data-soft-length-minimum'] = $min_length;
drupal_add_js(drupal_get_path('module', 'soft_length_limit') . '/jquery.textchange.min.js');
drupal_add_js(drupal_get_path('module', 'soft_length_limit') . '/soft_length_limit.js');
drupal_add_css(drupal_get_path('module', 'soft_length_limit') . '/soft_length_limit.css');
# $form['#attached']['js'][] = drupal_get_path('module', 'soft_length_limit') . '/jquery.textchange.min.js';
# $form['#attached']['js'][] = drupal_get_path('module', 'soft_length_limit') . '/soft_length_limit.js';
# $form['#attached']['css'][] = drupal_get_path('module', 'soft_length_limit') . '/soft_length_limit.css';
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment