Version 1
[yaffs-website] / web / core / modules / responsive_image / js / responsive_image.ajax.js
diff --git a/web/core/modules/responsive_image/js/responsive_image.ajax.js b/web/core/modules/responsive_image/js/responsive_image.ajax.js
new file mode 100644 (file)
index 0000000..5209319
--- /dev/null
@@ -0,0 +1,16 @@
+(function (Drupal) {
+
+  'use strict';
+
+  /**
+   * Call picturefill so newly added responsive images are processed.
+   */
+  Drupal.behaviors.responsiveImageAJAX = {
+    attach: function () {
+      if (window.picturefill) {
+        window.picturefill();
+      }
+    }
+  };
+
+})(Drupal);