jquery的导航页面12(nodeDocPage.jsp续)

    //分页显示的bar
    function pageListFun(node, doc_total, pageIndexReset){
        if (pageIndexReset) {
            $('#pageBarBottom').pagination({
                total:doc_total,
                pageNumber : 1,
                pageSize: $("#pageSize").val(),
                onSelectPage:function(pageNumber, pageSize){
                    $(this).pagination('loading');
                   
                    $("#product_doc_table_body").html("");
                    $("#product_doc_table_body").append("<tr><td colspan='4'><img width='12' height='12' src='/support/images/NavigationBar/loading.gif'> loading...</td></tr>");
                   
                    $.getJSON(
                        root_url + "pages/navigation/gotoKBNavi.do?actionFlag=getCurPageDocs&d=" + (new Date()).getTime() + "&colID=<%=colID%>&"
                         + $("#selectDictForm").serialize()+ "&itemId="+$(node).attr("id")+"&level_id="+$(node).attr("level")
                         +"&pageIndex="+pageNumber+"&pageSize="+pageSize,
                         function(data) {updatePageDocs(node, data, false);});
                    $("#pageSize").val(pageSize);
                    $(this).pagination('loaded');
                    //改变上面的分页bar
                    $('#pageBarTop').pagination({
                        pageNumber:pageNumber,
                        pageSize:pageSize
                    });
                }
            });
            $('#pageBarTop').pagination({
                total:doc_total,
                pageNumber : 1,
                pageSize: $("#pageSize").val(),
                onSelectPage:function(pageNumber, pageSize){
                    $(this).pagination('loading');
                   
                    $("#product_doc_table_body").html("");
                    $("#product_doc_table_body").append("<tr><td colspan='4'><img width='12' height='12' src='/support/images/NavigationBar/loading.gif'> loading...</td></tr>");
                   
                    $.getJSON(
                        root_url + "pages/navigation/gotoKBNavi.do?actionFlag=getCurPageDocs&d=" + (new Date()).getTime() + "&colID=<%=colID%>&"
                         + $("#selectDictForm").serialize()+ "&itemId="+$(node).attr("id")+"&level_id="+$(node).attr("level")
                         +"&pageIndex="+pageNumber+"&pageSize="+pageSize,
                         function(data) {updatePageDocs(node, data, false);});
                    $("#pageSize").val(pageSize);
                    $(this).pagination('loaded');
                    //改变下面的分页bar
                    $('#pageBarBottom').pagination({
                        pageNumber:pageNumber,
                        pageSize:pageSize
                    });
                }
            });
        }

你可能感兴趣的:(html,jquery,jsp)