Commit f45195e4 authored by alexpott's avatar alexpott

Issue #2205155 by jibran, rteijeiro: Convert custom_block.js into a library.

parent 1370edf9
drupal.custom_block:
version: VERSION
js:
js/custom_block.js: {}
dependencies:
- core/jquery
- core/drupal
- core/drupal.form
......@@ -141,7 +141,7 @@ public function form(array $form, array &$form_state) {
'class' => array('custom-block-form-revision-information'),
),
'#attached' => array(
'js' => array(drupal_get_path('module', 'custom_block') . '/custom_block.js'),
'library' => array('custom_block/drupal.custom_block'),
),
'#weight' => 20,
'#access' => $block->isNewRevision() || $account->hasPermission('administer blocks'),
......
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