Download & Extend

JavaScript error when using vdt with non-ajax views

Project:Views Display Tabs
Version:6.x-1.0-beta6
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review

Issue Summary

I'm getting the following .js error when displaying a non-ajax view with display tabs:

Error: Drupal.settings.views is undefined
Sourcefile: http://sitename.com/sites/all/modules/viewsdisplaytabs/viewsdisplaytabs....
Line: 27

Using Views Display Tabs 6.x-1.0-beta6 along with Views Or 6.x-1.x-dev and Views 6.x-2.12.

Has anyone got an idea what's this about?

Comments

#1

Status:active» needs review

Ran into this issue as well. Looks like Drupal.settings.views doesn't exist unless the view is AJAX enabled.

Attaching a patch that adds a couple of sanity checks.

AttachmentSize
viewsdisplaytabs-non_ajax_views_js_error-1079244-1.patch 6.59 KB
nobody click here