Commit f1c1c276 authored by osman's avatar osman

Issue #3016695: Javascript error when uploading an image

parent c4cc1370
......@@ -4,7 +4,7 @@
Drupal.behaviors.lazy = {
attach: function (context, settings) {
var options = settings.lazy.bLazy ? settings.lazy.bLazy : {};
var options = settings.lazy ? settings.lazy : {};
Drupal.lazy = new Blazy(options);
}
};
......
......@@ -236,7 +236,7 @@ function lazy_page_build(&$page) {
'validateDelay' => intval(variable_get('lazy_filter_validateDelay')),
);
$attached['js'][] = array(
'data' => array('lazy' => array('bLazy' => $settings)),
'data' => array('lazy' => $settings),
'type' => 'setting',
);
$attached['libraries_load'][] = array('blazy');
......
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