function views_ajax_command_scroll_top
Scroll to top of the current view.
Return value
array An array suitable for use with the ajax_render() function.
Related topics
1 call to views_ajax_command_scroll_top()
- views_ajax in includes/
ajax.inc - Menu callback to load a view via AJAX.
File
-
includes/
ajax.inc, line 172
Code
function views_ajax_command_scroll_top($selector) {
$command = array(
'command' => 'viewsScrollTop',
'selector' => $selector,
);
return $command;
}