Commit 3ed3cbe0 authored by webchick's avatar webchick

Issue #2205161 by jibran, rteijeiro | sun: Convert node.js into a library.

parent e4f16547
......@@ -114,7 +114,7 @@ public function form(array $form, array &$form_state) {
'class' => array('node-form-revision-information'),
),
'#attached' => array(
'js' => array(drupal_get_path('module', 'node') . '/node.js'),
'library' => array('node/drupal.node'),
),
'#weight' => 20,
'#optional' => TRUE,
......@@ -152,8 +152,8 @@ public function form(array $form, array &$form_state) {
'class' => array('node-form-author'),
),
'#attached' => array(
'library' => array('node/drupal.node'),
'js' => array(
drupal_get_path('module', 'node') . '/node.js',
array(
'type' => 'setting',
'data' => array('anonymous' => $user_config->get('anonymous')),
......@@ -194,7 +194,7 @@ public function form(array $form, array &$form_state) {
'class' => array('node-form-options'),
),
'#attached' => array(
'js' => array(drupal_get_path('module', 'node') . '/node.js'),
'library' => array('node/drupal.node'),
),
'#weight' => 95,
'#optional' => TRUE,
......
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