projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Security update for Core, with self-updated composer
[yaffs-website]
/
web
/
core
/
modules
/
responsive_image
/
js
/
responsive_image.ajax.es6.js
diff --git a/web/core/modules/responsive_image/js/responsive_image.ajax.es6.js
b/web/core/modules/responsive_image/js/responsive_image.ajax.es6.js
new file mode 100644
(file)
index 0000000..
64f630d
--- /dev/null
+++ b/
web/core/modules/responsive_image/js/responsive_image.ajax.es6.js
@@ -0,0
+1,12
@@
+(function (Drupal) {
+ /**
+ * Call picturefill so newly added responsive images are processed.
+ */
+ Drupal.behaviors.responsiveImageAJAX = {
+ attach() {
+ if (window.picturefill) {
+ window.picturefill();
+ }
+ },
+ };
+}(Drupal));