This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Js file to add load more button on the search result page. | |
*/ | |
(function ($) { | |
Drupal.behaviors.loadMoreAjax = { | |
attach: function (context, settings) { | |
$('.load-more-ajax', context).click(function () { | |
var nextPage = $('.pager .pager__item--next a').attr('href'); | |
var lastPage = $('.pager .pager__item--last a').attr('href'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @file | |
* Template file for the example display. | |
* | |
* Variables available: | |
* | |
* $plugin: The pager plugin object. This contains the view. | |
* | |
* $plugin->view |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($){ | |
Drupal.behaviors.viewsInfiniteScroll = { | |
attach: function (context, settings) { | |
$(function(){ | |
if (this.processed) return; | |
this.processed=true; | |
if ($('.search-results').length==0) return; | |
var $container = $('.search-results'); | |
$container.imagesLoaded( function(){ | |
$container.infinitescroll({ |
NewerOlder