✏️ 正在编辑: doofinder-pagination_15.js
路径:
/home/bpioifn/www/pigmentse/modules/doofinder/views/js/doofinder-pagination_15.js
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
/** * NOTICE OF LICENSE * * This file is licenced under the Software License Agreement. * With the purchase or the installation of the software in your application * you accept the licence agreement. * * You must not modify, adapt or create derivative works of this source code * * @author Doofinder * @copyright Doofinder * @license GPLv3 */ if(typeof(current_friendly_url) == 'undefined'){ var current_friendly_url = ''; } function paginationButton(nulled,nulled_1) { $('#pagination a').not(':hidden').each(function () { if ($(this).attr('href').search(/[&|\?]p=/) == -1) var page = 1; else var page = $(this).attr('href').replace(/^.*[&|\?]p=(\d+).*$/, '$1'); var location = window.location.href.replace(/#.*$/, ''); $(this).attr('href', location+current_friendly_url.replace(/\/page-(\d+)/, '')+'/page-'+page); }); $('#pagination li').not('.current, .disabled').each(function () { var nbPage = 0; if ($(this).attr('id') == 'pagination_next') nbPage = parseInt($('#pagination li.current').children().html())+ 1; else if ($(this).attr('id') == 'pagination_previous') nbPage = parseInt($('#pagination li.current').children().html())- 1; $(this).children().click(function () { if (nbPage == 0) p = parseInt($(this).html()) + parseInt(nbPage); else p = nbPage; p = '&p='+ p; reloadContent(p); nbPage = 0; return false; }); }); }
💾 保存文件
← 返回文件管理器