Commit 8bdcd407 authored by dawehner's avatar dawehner Committed by tim.plunkett
Browse files

Issue #1695820 by dawehner: Added Store the javascript object in a global variable.

parent ed028998
......@@ -11,13 +11,13 @@ Drupal.behaviors.ViewsAjaxView = {};
Drupal.behaviors.ViewsAjaxView.attach = function() {
if (Drupal.settings && Drupal.settings.views && Drupal.settings.views.ajaxViews) {
$.each(Drupal.settings.views.ajaxViews, function(i, settings) {
// @todo: Figure out where to store the object.
new Drupal.views.ajaxView(settings);
Drupal.views.instances[i] = new Drupal.views.ajaxView(settings);
});
}
};
Drupal.views = {};
Drupal.views.instances = {};
/**
* Javascript object for a certain view.
......
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