API page: http://api.drupal.org/api/views/views.api.php/function/hook_views_ajax_d...

Inside the foreach loop shown as an example for this function command should be used as the a key and not method, method is not a defined index of the $commands array.

For example
This:

foreach ($commands as $command) {
    if ($command['method'] == 'viewsScrollTop') {
      $command['method'] .= 'myScrollTop';
    }
  }

Should be:

foreach ($commands as $command) {
    if ($command['command'] == 'viewsScrollTop') {
      $command['command'] .= 'myScrollTop';
    }
  }

Isssue posted for drupal8 - https://drupal.org/node/1887892

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sandipmkhairnar’s picture

Issue summary: View changes
sandipmkhairnar’s picture

sandipmkhairnar’s picture

Status: Active » Needs review
amool’s picture

Status: Needs review » Reviewed & tested by the community

Tested it. It works!

DamienMcKenna’s picture

Version: 7.x-3.3 » 7.x-3.x-dev
Assigned: sandipmkhairnar » Unassigned
DamienMcKenna’s picture

Status: Reviewed & tested by the community » Needs review
DamienMcKenna’s picture

Status: Needs review » Reviewed & tested by the community

How do we re-trigger the tests when they never finished the first time?

dawehner’s picture

Status: Reviewed & tested by the community » Fixed

This doc fix looks perfect. Let's commit it.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.