Commit 6fa68f4e authored by webchick's avatar webchick
Browse files

Issue #1835074 by rballou: JSHint modules/views/js/ajax-views.js.

parent 0e4c9f59
......@@ -40,7 +40,7 @@ Drupal.views.ajaxView = function(settings) {
var queryString = window.location.search || '';
if (queryString !== '') {
// Remove the question mark and Drupal path component if any.
var queryString = queryString.slice(1).replace(/q=[^&]+&?|&?render=[^&]+/, '');
queryString = queryString.slice(1).replace(/q=[^&]+&?|&?render=[^&]+/, '');
if (queryString !== '') {
// If there is a '?' in ajax_path, clean url are on and & should be used to add parameters.
queryString = ((/\?/.test(ajax_path)) ? '&' : '?') + queryString;
......@@ -116,7 +116,7 @@ Drupal.views.ajaxView.prototype.attachPagerLinkAjax = function(id, link) {
this.pagerAjax = new Drupal.ajax(false, $link, this.element_settings);
};
Drupal.ajax.prototype.commands.viewsScrollTop = function (ajax, response, status) {
Drupal.ajax.prototype.commands.viewsScrollTop = function (ajax, response) {
// Scroll to the top of the view. This will allow users
// to browse newly loaded content after e.g. clicking a pager
// link.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment