File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -112,6 +112,8 @@ ellipse_text
112112 displayed number interval, this text will be inserted into the gap (inside a
113113 span tag). Can be left blank to avoid the additional tag. Default: ``... ``
114114
115+ load_first_page
116+ If true (default) then the first page will be loaded automatically.
115117
116118Triggering pagination with custom events
117119----------------------------------------
Original file line number Diff line number Diff line change 142142 prev_show_always :true ,
143143 next_show_always :true ,
144144 renderer :"defaultRenderer" ,
145+ load_first_page :false ,
145146 callback :function ( ) { return false ; }
146147 } , opts || { } ) ;
147148
222223 containers . empty ( ) ;
223224 links . appendTo ( containers ) ;
224225 // call callback function
225- opts . callback ( current_page , containers ) ;
226+ if ( opts . load_first_page ) {
227+ opts . callback ( current_page , containers ) ;
228+ }
226229 } // End of $.fn.pagination block
227230
228231} ) ( jQuery ) ;
You can’t perform that action at this time.
0 commit comments