contrib modules updates
This commit is contained in:
@@ -50,6 +50,17 @@ class TokenTreeController extends ControllerBase {
|
||||
$build['#cache']['contexts'][] = 'url.query_args:options';
|
||||
$build['#title'] = $this->t('Available tokens');
|
||||
|
||||
// If this is an AJAX/modal request, add a wrapping div to the contents so
|
||||
// that Drupal.behaviors.tokenTree and Drupal.behaviors.tokenAttach can
|
||||
// stil find the elements they need to.
|
||||
// @see https://www.drupal.org/project/token/issues/2994671
|
||||
// @see https://www.drupal.org/node/2940704
|
||||
// @see http://danielnouri.org/notes/2011/03/14/a-jquery-find-that-also-finds-the-root-element/
|
||||
if ($request->isXmlHttpRequest()) {
|
||||
$build['#prefix'] = '<div>';
|
||||
$build['#suffix'] = '</div>';
|
||||
}
|
||||
|
||||
return $build;
|
||||
}
|
||||
|
||||
|
||||
+3
-3
@@ -5,8 +5,8 @@ package: Testing
|
||||
# core: 8.x
|
||||
hidden: TRUE
|
||||
|
||||
# Information added by Drupal.org packaging script on 2018-09-08
|
||||
version: '8.x-1.4'
|
||||
# Information added by Drupal.org packaging script on 2018-09-21
|
||||
version: '8.x-1.5'
|
||||
core: '8.x'
|
||||
project: 'token'
|
||||
datestamp: 1536408485
|
||||
datestamp: 1537557488
|
||||
|
||||
+3
-3
@@ -7,8 +7,8 @@ hidden: TRUE
|
||||
dependencies:
|
||||
- image
|
||||
|
||||
# Information added by Drupal.org packaging script on 2018-09-08
|
||||
version: '8.x-1.4'
|
||||
# Information added by Drupal.org packaging script on 2018-09-21
|
||||
version: '8.x-1.5'
|
||||
core: '8.x'
|
||||
project: 'token'
|
||||
datestamp: 1536408485
|
||||
datestamp: 1537557488
|
||||
|
||||
@@ -5,8 +5,8 @@ description: Provides a user interface for the Token API and some missing core t
|
||||
dependencies:
|
||||
- drupal:system (>= 8.5)
|
||||
|
||||
# Information added by Drupal.org packaging script on 2018-09-08
|
||||
version: '8.x-1.4'
|
||||
# Information added by Drupal.org packaging script on 2018-09-21
|
||||
version: '8.x-1.5'
|
||||
core: '8.x'
|
||||
project: 'token'
|
||||
datestamp: 1536408485
|
||||
datestamp: 1537557488
|
||||
|
||||
Reference in New Issue
Block a user