text: /**
   * jQuery EasyUI 1.4.1
   * 
   * Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved.
   *
   * Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt
   * To use it on other terms please contact us at info@jeasyui.com
   *
   */
  
  
  !function($){function _1(_2){function _9(a){var t=_4.nav[a],n=$('<a href="javascript:void(0)"></a>').appendTo(tr);return n.wrap("<td></td>"),n.linkbutton({iconCls:t.iconCls,plain:!0}).unbind(".pagination").bind("click.pagination",function(){t.handler.call(_2)}),n}function _6(a,t){var n=$.inArray(t,a);return n>=0&&a.splice(n,1),a}var _3=$.data(_2,"pagination"),_4=_3.options,bb=_3.bb={},_5=$(_2).addClass("pagination").html('<table cellspacing="0" cellpadding="0" border="0"><tr></tr></table>'),tr=_5.find("tr"),aa=$.extend([],_4.layout);_4.showPageList||_6(aa,"list"),_4.showRefresh||_6(aa,"refresh"),"sep"==aa[0]&&aa.shift(),"sep"==aa[aa.length-1]&&aa.pop();for(var _7=0;_7<aa.length;_7++){var _8=aa[_7];if("list"==_8){var ps=$('<select class="pagination-page-list"></select>');ps.bind("change",function(){_4.pageSize=parseInt($(this).val()),_4.onChangePageSize.call(_2,_4.pageSize),_10(_2,_4.pageNumber)});for(var i=0;i<_4.pageList.length;i++)$("<option></option>").text(_4.pageList[i]).appendTo(ps);$("<td></td>").append(ps).appendTo(tr)}else"sep"==_8?$('<td><div class="pagination-btn-separator"></div></td>').appendTo(tr):"first"==_8?bb.first=_9("first"):"prev"==_8?bb.prev=_9("prev"):"next"==_8?bb.next=_9("next"):"last"==_8?bb.last=_9("last"):"manual"==_8?($('<span style="padding-left:6px;"></span>').html(_4.beforePageText).appendTo(tr).wrap("<td></td>"),bb.num=$('<input class="pagination-num" type="text" value="1" size="2">').appendTo(tr).wrap("<td></td>"),bb.num.unbind(".pagination").bind("keydown.pagination",function(a){if(13==a.keyCode){var t=parseInt($(this).val())||1;return _10(_2,t),!1}}),bb.after=$('<span style="padding-right:6px;"></span>').appendTo(tr).wrap("<td></td>")):"refresh"==_8?bb.refresh=_9("refresh"):"links"==_8&&$('<td class="pagination-links"></td>').appendTo(tr)}if(_4.buttons)if($('<td><div class="pagination-btn-separator"></div></td>').appendTo(tr),$.isArray(_4.buttons))for(var i=0;i<_4.buttons.length;i++){var _b=_4.buttons[i];if("-"==_b)$('<td><div class="pagination-btn-separator"></div></td>').appendTo(tr);else{var td=$("<td></td>").appendTo(tr),a=$('<a href="javascript:void(0)"></a>').appendTo(td);a[0].onclick=eval(_b.handler||function(){}),a.linkbutton($.extend({},_b,{plain:!0}))}}else{var td=$("<td></td>").appendTo(tr);$(_4.buttons).appendTo(td).show()}$('<div class="pagination-info"></div>').appendTo(_5),$('<div style="clear:both;"></div>').appendTo(_5)}function _10(a,t){var n=$.data(a,"pagination").options;_14(a,{pageNumber:t}),n.onSelectPage.call(a,n.pageNumber,n.pageSize)}function _14(a,t){var n=$.data(a,"pagination"),e=n.options,i=n.bb;$.extend(e,t||{});var o=$(a).find("select.pagination-page-list");o.length&&(o.val(e.pageSize+""),e.pageSize=parseInt(o.val()));var p=Math.ceil(e.total/e.pageSize)||1;e.pageNumber<1&&(e.pageNumber=1),e.pageNumber>p&&(e.pageNumber=p),0==e.total&&(e.pageNumber=0,p=0),i.num&&i.num.val(e.pageNumber),i.after&&i.after.html(e.afterPageText.replace(/{pages}/,p));var r=$(a).find("td.pagination-links");if(r.length){r.empty();var s=e.pageNumber-Math.floor(e.links/2);s<1&&(s=1);var l=s+e.links-1;l>p&&(l=p),s=l-e.links+1,s<1&&(s=1);for(var g=s;g<=l;g++){var d=$('<a class="pagination-link" href="javascript:void(0)"></a>').appendTo(r);d.linkbutton({plain:!0,text:g}),g==e.pageNumber?d.linkbutton("select"):d.unbind(".pagination").bind("click.pagination",{pageNumber:g},function(t){_10(a,t.data.pageNumber)})}}var u=e.displayMsg;u=u.replace(/{from}/,0==e.total?0:e.pageSize*(e.pageNumber-1)+1),u=u.replace(/{to}/,Math.min(e.pageSize*e.pageNumber,e.total)),u=u.replace(/{total}/,e.total),$(a).find("div.pagination-info").html(u),i.first&&i.first.linkbutton({disabled:!e.total||1==e.pageNumber}),i.prev&&i.prev.linkbutton({disabled:!e.total||1==e.pageNumber}),i.next&&i.next.linkbutton({disabled:e.pageNumber==p}),i.last&&i.last.linkbutton({disabled:e.pageNumber==p}),_1d(a,e.loading)}function _1d(a,t){var n=$.data(a,"pagination"),e=n.options;e.loading=t,e.showRefresh&&n.bb.refresh&&n.bb.refresh.linkbutton({iconCls:e.loading?"pagination-loading":"pagination-load"})}$.fn.pagination=function(a,t){return"string"==typeof a?$.fn.pagination.methods[a](this,t):(a=a||{},this.each(function(){var t,n=$.data(this,"pagination");n?t=$.extend(n.options,a):(t=$.extend({},$.fn.pagination.defaults,$.fn.pagination.parseOptions(this),a),$.data(this,"pagination",{options:t})),_1(this),_14(this)}))},$.fn.pagination.methods={options:function(a){return $.data(a[0],"pagination").options},loading:function(a){return a.each(function(){_1d(this,!0)})},loaded:function(a){return a.each(function(){_1d(this,!1)})},refresh:function(a,t){return a.each(function(){_14(this,t)})},select:function(a,t){return a.each(function(){_10(this,t)})}},$.fn.pagination.parseOptions=function(_28){var t=$(_28);return $.extend({},$.parser.parseOptions(_28,[{total:"number",pageSize:"number",pageNumber:"number",links:"number"},{loading:"boolean",showPageList:"boolean",showRefresh:"boolean"}]),{pageList:t.attr("pageList")?eval(t.attr("pageList")):void 0})},$.fn.pagination.defaults={total:1,pageSize:10,pageNumber:1,pageList:[10,20,30,50],loading:!1,buttons:null,showPageList:!0,showRefresh:!0,links:10,layout:["list","sep","first","prev","sep","manual","sep","next","last","sep","refresh"],onSelectPage:function(a,t){},onBeforeRefresh:function(a,t){},onRefresh:function(a,t){},onChangePageSize:function(a){},beforePageText:"Page",afterPageText:"of {pages}",displayMsg:"Displaying {from} to {to} of {total} items",nav:{first:{iconCls:"pagination-first",handler:function(){$(this).pagination("options").pageNumber>1&&$(this).pagination("select",1)}},prev:{iconCls:"pagination-prev",handler:function(){var a=$(this).pagination("options");a.pageNumber>1&&$(this).pagination("select",a.pageNumber-1)}},next:{iconCls:"pagination-next",handler:function(){var a=$(this).pagination("options"),t=Math.ceil(a.total/a.pageSize);a.pageNumber<t&&$(this).pagination("select",a.pageNumber+1)}},last:{iconCls:"pagination-last",handler:function(){var a=$(this).pagination("options"),t=Math.ceil(a.total/a.pageSize);a.pageNumber<t&&$(this).pagination("select",t)}},refresh:{iconCls:"pagination-refresh",handler:function(){var a=$(this).pagination("options");0!=a.onBeforeRefresh.call(this,a.pageNumber,a.pageSize)&&($(this).pagination("select",a.pageNumber),a.onRefresh.call(this,a.pageNumber,a.pageSize))}}}}}(jQuery);
  //# sourceMappingURL=jquery.pagination.js.map