PageSourceSearch

https://www.lawsociety.ie/UI/js/helpers/kendoPagerHelper__lsi.js

js lawsociety.ie collected 2026-10-02 02:57:18 UTC 2,164 bytes, 62 lines download raw bytes

1(function ($) {
2    $(document).ready(function () {
3        function repositionPagerInfo() {
4            $('.pagination-paging').each(function () {
5                var $container = $(this);
6                var $pagerWrap = $container.find('.k-pager-wrap');
7                var $originalPagerInfo = $pagerWrap.find('.k-pager-info').first();
8
9                if ($originalPagerInfo.length === 0) return;
10
11                $container.find('.pager-info-moved').remove();
12
13                var $infoClone = $originalPagerInfo.clone();
14                $infoClone.addClass('pager-info-moved');
15                $infoClone.removeAttr('style');
16                $infoClone.css('display', 'block'); 
17
18                $pagerWrap.before($infoClone);
19
20                $originalPagerInfo.hide();
21
22                $container.data('originalPagerInfo', $originalPagerInfo);
23                $container.data('clonedPagerInfo', $infoClone);
24
25                $container.addClass('pager-restructured');
26            });
27        }
28
29        function updateClonedPagerInfo() {
30            $('.pagination-paging.pager-restructured').each(function () {
31                var $container = $(this);
32                var $originalPagerInfo = $container.data('originalPagerInfo');
33                var $clonedPagerInfo = $container.data('clonedPagerInfo');
34
35                if ($originalPagerInfo && $originalPagerInfo.length && $clonedPagerInfo && $clonedPagerInfo.length) {
36                    var newContent = $originalPagerInfo.html();
37                    if ($clonedPagerInfo.html() !== newContent) {
38                        $clonedPagerInfo.html(newContent);
39                    }
40                }
41            });
42        }
43
44        repositionPagerInfo();
45
46        $(document).on('dataBound', '.k-grid', function () {
47            setTimeout(function () {
48                repositionPagerInfo();
49            }, 100);
50        });
51
52        $(document).ajaxComplete(function () {
53            setTimeout(function () {
54                updateClonedPagerInfo();
55            }, 100);
56        });
57
58        setInterval(function () {
59            updateClonedPagerInfo();
60        }, 500);
61    });
62})(jQuery);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.