Hi, DrupalForFirebug breaks the new views AJAX. Views dev (from git)

When working with views UI, instead of showing the popups, DrupalForFirebug intercepts them an shows the AJAX call.

E.g. Create a view and click "permissions" You'll get a message box with the text below instead of the UI popup:


An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /admin/structure/views/ajax/display/services/block/access
StatusText: OK
ResponseText: [{"command":"settings","settings":{"basePath":"\/","ajaxPageState":{"theme":"seven","theme_token":"9ZoIUVud3EBTBYpSfyrWDZ5C79b6fMuGrT0PXwkGYoQ","css":[]},"admin_menu":{"destination":"destination=admin\/structure\/views\/ajax\/display\/services\/block\/access","replacements":{".admin-menu-users a":"0 \/ 1"},"margin_top":1}},"merge":true},{"command":"viewsSetForm","output":"\u003cform action=\"\/admin\/structure\/views\/ajax\/display\/services\/block\/access\" method=\"post\" id=\"views-ui-edit-display-form\" accept-charset=\"UTF-8\"\u003e\u003cdiv\u003e\u003cdiv class=\"views-override clearfix container-inline\"\u003e\u003cdiv class=\"form-item form-type-select form-item-override-dropdown\"\u003e\n  \u003clabel for=\"edit-override-dropdown\"\u003eFor \u003c\/label\u003e\n \u003cselect id=\"edit-override-dropdown\" name=\"override[dropdown]\" class=\"form-select\"\u003e\u003coption value=\"default\"\u003eAll displays\u003c\/option\u003e\u003coption value=\"block\"\u003eThis block (override)\u003c\/option\u003e\u003c\/select\u003e\n\u003c\/div\u003e\n\u003c\/div\u003e\u003cdiv class=\"scroll form-wrapper\" id=\"edit-options\"\u003e\u003cdiv class=\"clearfix\"\u003e\u003cdiv id=\"edit-access-type\" class=\"form-radios\"\u003e\u003cdiv class=\"form-item form-type-radio form-item-access-type\"\u003e\n \u003cinput type=\"radio\" id=\"edit-access-type-none\" name=\"access[type]\" value=\"none\" class=\"form-radio\" \/\u003e  \u003clabel class=\"option\" for=\"edit-access-type-none\"\u003eNone \u003c\/label\u003e\n\n\u003c\/div\u003e\n\u003cdiv class=\"form-item form-type-radio form-item-access-type\"\u003e\n \u003cinput type=\"radio\" id=\"edit-access-type-perm\" name=\"access[type]\" value=\"perm\" checked=\"checked\" class=\"form-radio\" \/\u003e  \u003clabel class=\"option\" for=\"edit-access-type-perm\"\u003ePermission \u003c\/label\u003e\n\n\u003c\/div\u003e\n\u003cdiv class=\"form-item form-type-radio form-item-access-type\"\u003e\n \u003cinput type=\"radio\" id=\"edit-access-type-role\" name=\"access[type]\" value=\"role\" class=\"form-radio\" \/\u003e  \u003clabel class=\"option\" for=\"edit-access-type-role\"\u003eRole \u003c\/label\u003e\n\n\u003c\/div\u003e\n\u003c\/div\u003e\u003c\/div\u003e\u003cdiv class=\"form-item description\"\u003eYou may also adjust the \u003ca href=\"\/admin\/structure\/views\/nojs\/display\/services\/block\/access_options\" class=\"views-ajax-link \" title=\"settings\" id=\"views-block-access-options\"\u003esettings\u003c\/a\u003e for the currently selected access restriction.\u003c\/div\u003e\u003c\/div\u003e\u003cdiv class=\"clearfix\"\u003e\u003cdiv class=\"form-buttons\"\u003e\u003cinput type=\"submit\" id=\"edit-submit\" name=\"op\" value=\"Apply\" class=\"form-submit\" \/\u003e\u003cinput type=\"submit\" id=\"edit-cancel\" name=\"op\" value=\"Cancel\" class=\"form-submit\" \/\u003e\u003c\/div\u003e\u003c\/div\u003e\u003cinput type=\"hidden\" name=\"form_build_id\" value=\"form-QtjhulSI5lI9rdXVExnvs3WfhKUUDiOYDmOBfeqOI3o\" \/\u003e\n\u003cinput type=\"hidden\" name=\"form_token\" value=\"I-e573BeJ-dhocnEcwLYbQynF2GttUemQ-IeS6aGex8\" \/\u003e\n\u003cinput type=\"hidden\" name=\"form_id\" value=\"views_ui_edit_display_form\" \/\u003e\n\u003c\/div\u003e\u003c\/form\u003e","title":"Block: Access restrictions","url":"http:\/\/pro.p1\/admin\/structure\/views\/ajax\/display\/services\/block\/access"}]Drupal for Firebug General MessagesThere were no messages sent to the general log. Please use "firep($item, $optional_title)" to output messages to this console.Query Logging is Not EnabledPlease enable "Collect query info" in the Devel Module Settings (admin/settings/devel) to use this feature. $form->views_ui_edit_display_form $form = (      [options] => array (            [#theme_wrappers] => array (                [0] => [container]            )            [#attributes] => array (                [class] => array (                    [0] => [scroll]                )            )            [#section] => [default-access]            [access] => array (                [#prefix] => [<div class="clearfix">]                [#suffix] => [</div>]                [#tree] => [1]                [type] => array (                    [#type] => [radios]                    [#options] => array (                        [none] => [None]                        [perm] => [Permission]                        [role] => [Role]                    )                    [#default_value] => [perm]                )            )            [markup] => array (                [#prefix] => [<div class="form-item description">]                [#markup] => [You may also adjust the <a href="/admin/structure/views/nojs/display/services/block/access_options" class="views-ajax-link " title="settings" id="views-block-access-options">settings</a> for the currently selected access restriction.]                [#suffix] => [</div>]            )        )        [#title] => [Block: Access restrictions]        [override] => array (            [#prefix] => [<div class="views-override clearfix container-inline">]            [#suffix] => [</div>]            [#weight] => [-1000]            [#tree] => [1]            [dropdown] => array (                [#type] => [select]                [#title] => [For]                [#options] => array (                    [default] => [All displays]                    [block] => [This block (override)]                )                [#default_value] => [defaults]            )        )        [buttons] => array (            [#prefix] => [<div class="clearfix"><div class="form-buttons">]            [#suffix] => [</div></div>]            [submit] => array (                [#type] => [submit]                [#value] => [Apply]                [#submit] => array (                    [0] => [views_ui_standard_submit]                )                [#values] => array (                    [0] => [Apply]                    [1] => [Apply and continue]                )                [#process] => array (                    [0] => [views_ui_form_button_was_clicked]                    [1] => [ajax_process_form]          

Comments

naught101’s picture

Status: Active » Closed (duplicate)