var _Paging = /** @class */ (function () {
    function _Paging() {
    }
    _Paging.prototype.PageScripts = function () {
        _Paging.prototype.OnLoadScripts();
    };
    _Paging.prototype.OnLoadScripts = function () {
        if ($("._Paging").length > 0) {
            $("._Paging").each(function (index, element) {
                var isViewAll = CommonHelper.prototype.JQControl(element, "#isViewAll").val();
                totalPages = parseInt($("#hdnTotalPages").val(), 10);
                var pageno = ZSearch.prototype.GetQueryStringParameterByName("pagenumber");
                if (totalPages == 1 || isViewAll == "true") {
                    $('.prev-page-search').addClass('disabled');
                    $('.next-page-search').addClass('disabled');
                    return false;
                }
                if (parseInt(pageno) == 1 || pageno == "") {
                    $('.prev-page-search').addClass('disabled');
                    return false;
                }
                if (parseInt(pageno) == (totalPages)) {
                    $('.next-page-search').addClass('disabled');
                    return false;
                }
            });
        }
    };
    return _Paging;
}());
$(document).ready(function () {
    _Paging.prototype.PageScripts();
    var notification = new ZnodeNotification();
    notification.DisplayNotificationMessages();
});
//# sourceMappingURL=_Paging.js.map