Skip to content

Commit

Permalink
support start limit mode
Browse files Browse the repository at this point in the history
  • Loading branch information
balibell committed Nov 14, 2014
1 parent 182628a commit 0f0131c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion js/woo.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@
"batchnum" : 2,


// 翻页方式 0 ?page=cp 1 ?start=parseInt(cp*unitsnum)
"pageflips": 0,




// 当前页码前后显示的页码数
Expand Down Expand Up @@ -1540,7 +1544,7 @@
type : 'GET',
dataType : c.ajaxDataType,
cache : typeof DEBUG !== 'undefined' && DEBUG ? false : !!c.ajaxCache,
url : typeof DEBUG !== 'undefined' && DEBUG ? '?page='+cp : Woo.getFormAction($form) + cp + arrurl[1],
url: typeof DEBUG !== 'undefined' && DEBUG ? '?page=' + cp : Woo.conf.pageflips === 0 ? Woo.getFormAction($form) + cp + arrurl[1] : Woo.getFormAction($form) + (cp - 1) * Woo.conf.unitsnum + arrurl[1],
data : Woo.paramForm($form),
timeout : 20000,
success : function(h){
Expand Down

0 comments on commit 0f0131c

Please sign in to comment.