summaryrefslogtreecommitdiffstatshomepage
path: root/core/modules/contextual/js/contextual.js
diff options
context:
space:
mode:
authorAlex Pott <alex.a.pott@googlemail.com>2017-03-28 15:25:09 +0100
committerAlex Pott <alex.a.pott@googlemail.com>2017-03-28 15:25:09 +0100
commit488a6b142a2f17411d0c05a282f7fdcac984f058 (patch)
tree4a1e73965862909090705ad708feeb5273f934a5 /core/modules/contextual/js/contextual.js
parent956497377e82b861e4a405051b8b779dde313575 (diff)
downloaddrupal-488a6b142a2f17411d0c05a282f7fdcac984f058.tar.gz
drupal-488a6b142a2f17411d0c05a282f7fdcac984f058.zip
Issue #2650910 by drpal, Anishnirmal, markdorison, Tom Robert, psend, yannickoo, rachel_norfolk, Wim Leers, droplet: Contextual links button is always rendered even when no links are available (with warm client-side cache)
Diffstat (limited to 'core/modules/contextual/js/contextual.js')
-rw-r--r--core/modules/contextual/js/contextual.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/contextual/js/contextual.js b/core/modules/contextual/js/contextual.js
index 7f93a15f4dda..558ea105cc2f 100644
--- a/core/modules/contextual/js/contextual.js
+++ b/core/modules/contextual/js/contextual.js
@@ -163,7 +163,7 @@
// Update all contextual links placeholders whose HTML is cached.
var uncachedIDs = _.filter(ids, function initIfCached(contextualID) {
var html = storage.getItem('Drupal.contextual.' + contextualID);
- if (html !== null) {
+ if (html && html.length) {
// Initialize after the current execution cycle, to make the AJAX
// request for retrieving the uncached contextual links as soon as
// possible, but also to ensure that other Drupal behaviors have had