芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/.trash/media/vendor/debugbar/openhandler.min.js
if(void 0===PhpDebugBar){var PhpDebugBar={};PhpDebugBar.$=jQuery}!function(t){var e=function(t){return PhpDebugBar.utils.csscls(t,"phpdebugbar-openhandler-")};PhpDebugBar.OpenHandler=PhpDebugBar.Widget.extend({className:"phpdebugbar-openhandler",defaults:{items_per_page:20},render:function(){var n=this;this.$el.appendTo("body").hide(),this.$closebtn=t('
'),this.$table=t("
"),t("
PHP DebugBar | Open
").addClass(e("header")).append(this.$closebtn).appendTo(this.$el),t('
Date
Method
URL
IP
Filter data
').append(this.$table).appendTo(this.$el),this.$actions=t("
").addClass(e("actions")).appendTo(this.$el),this.$closebtn.on("click",(function(){n.hide()})),this.$loadmorebtn=t("
Load more
").appendTo(this.$actions).on("click",(function(){n.find(n.last_find_request,n.last_find_request.offset+n.get("items_per_page"),n.handleFind.bind(n))})),this.$showonlycurrentbtn=t("
Show only current URL
").appendTo(this.$actions).on("click",(function(){n.$table.empty(),n.find({uri:window.location.pathname},0,n.handleFind.bind(n))})),this.$showallbtn=t("
Show all
").appendTo(this.$actions).on("click",(function(){n.refresh()})),this.$clearbtn=t("
Delete all
").appendTo(this.$actions).on("click",(function(){n.clear((function(){n.hide()}))})),this.addSearch(),this.$overlay=t("
").addClass(e("overlay")).hide().appendTo("body"),this.$overlay.on("click",(function(){n.hide()}))},refresh:function(){this.$table.empty(),this.$loadmorebtn.show(),this.find({},0,this.handleFind.bind(this))},addSearch:function(){var e=this,n=t("
").text("Search").attr("type","submit").on("click",(function(n){e.$table.empty();var a={},i=t(this).parent().serializeArray();t.each(i,(function(){this.value&&(a[this.name]=this.value)})),e.find(a,0,e.handleFind.bind(e)),n.preventDefault()}));t("
").append("
Filter results
").append('Method:
GET
POST
PUT
DELETE
').append('Uri:
').append('IP:
').append(n).appendTo(this.$actions)},handleFind:function(e){var n=this;t.each(e,(function(e,a){t("
").text("Load dataset").on("click",(function(t){n.hide(),n.load(a.id,(function(t){n.callback(a.id,t)})),t.preventDefault()})),t("
").text(a.method).on("click",(function(t){n.$table.empty(),n.find({method:a.method},0,n.handleFind.bind(n)),t.preventDefault()}));var i=t("
").text(a.uri).on("click",(function(t){n.hide(),n.load(a.id,(function(t){n.callback(a.id,t)})),t.preventDefault()})),d=t("
").text(a.ip).on("click",(function(t){n.$table.empty(),n.find({ip:a.ip},0,n.handleFind.bind(n)),t.preventDefault()})),o=t("
").text("Show URL").on("click",(function(t){n.$table.empty(),n.find({uri:a.uri},0,n.handleFind.bind(n)),t.preventDefault()}));t("
").append("
"+a.datetime+"
").append("
"+a.method+"
").append(t("
").append(i)).append(t("
").append(d)).append(t("
").append(o)).appendTo(n.$table)})),e.length