Issue #1695820 by dawehner: Added Store the javascript object in a global variable.
parent
ed0289989d
commit
8bdcd407b2
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue