1 ajax.inc views_ajax_command_scroll_top($selector)

Scroll to top of the current view.

Return value

An array suitable for use with the ajax_render() function.:

Related topics

File

core/modules/views/includes/ajax.inc, line 122
Handles the server side AJAX interactions of Views.

Code

function views_ajax_command_scroll_top($selector) {
  $command = array(
    'command' => 'viewsScrollTop',
    'selector' => $selector,
  );
  return $command;
}