Skip to content
Snippets Groups Projects
Commit 8bdcd407 authored by Daniel Wehner's avatar Daniel Wehner Committed by Tim Plunkett
Browse files

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

parent ed028998
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -11,13 +11,13 @@ Drupal.behaviors.ViewsAjaxView = {}; ...@@ -11,13 +11,13 @@ Drupal.behaviors.ViewsAjaxView = {};
Drupal.behaviors.ViewsAjaxView.attach = function() { Drupal.behaviors.ViewsAjaxView.attach = function() {
if (Drupal.settings && Drupal.settings.views && Drupal.settings.views.ajaxViews) { if (Drupal.settings && Drupal.settings.views && Drupal.settings.views.ajaxViews) {
$.each(Drupal.settings.views.ajaxViews, function(i, settings) { $.each(Drupal.settings.views.ajaxViews, function(i, settings) {
// @todo: Figure out where to store the object. Drupal.views.instances[i] = new Drupal.views.ajaxView(settings);
new Drupal.views.ajaxView(settings);
}); });
} }
}; };
Drupal.views = {}; Drupal.views = {};
Drupal.views.instances = {};
/** /**
* Javascript object for a certain view. * Javascript object for a certain view.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment