芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/kwesioben.com/paymoney/public/admin/templates/js/app.min.js
/*! AdminLTE app.js * ================ * Main JS application file for AdminLTE v2. This file * should be included in all pages. It controls some layout * options and implements exclusive AdminLTE plugins. * * @Author Almsaeed Studio * @Support
* @Email
* @version 2.3.6 * @license MIT
*/ if("undefined"==typeof jQuery)throw new Error("AdminLTE requires jQuery");function _init(){"use strict";$.AdminLTE.layout={activate:function(){var _this=this;_this.fix(),_this.fixSidebar(),$(window,".wrapper").resize((function(){_this.fix(),_this.fixSidebar()}))},fix:function(){var neg=$(".main-header").outerHeight()+$(".main-footer").outerHeight(),window_height=$(window).height(),sidebar_height=$(".sidebar").height();if($("body").hasClass("fixed"))$(".content-wrapper, .right-side").css("min-height",window_height-$(".main-footer").outerHeight());else{var postSetWidth;window_height>=sidebar_height?($(".content-wrapper, .right-side").css("min-height",window_height-neg),postSetWidth=window_height-neg):($(".content-wrapper, .right-side").css("min-height",sidebar_height),postSetWidth=sidebar_height);var controlSidebar=$($.AdminLTE.options.controlSidebarOptions.selector);void 0!==controlSidebar&&controlSidebar.height()>postSetWidth&&$(".content-wrapper, .right-side").css("min-height",controlSidebar.height())}},fixSidebar:function(){$("body").hasClass("fixed")?(void 0===$.fn.slimScroll&&window.console&&window.console.error("Error: the fixed layout requires the slimscroll plugin!"),$.AdminLTE.options.sidebarSlimScroll&&void 0!==$.fn.slimScroll&&($(".sidebar").slimScroll({destroy:!0}).height("auto"),$(".sidebar").slimscroll({height:$(window).height()-$(".main-header").height()+"px",color:"rgba(0,0,0,0.2)",size:"3px"}))):void 0!==$.fn.slimScroll&&$(".sidebar").slimScroll({destroy:!0}).height("auto")}},$.AdminLTE.pushMenu={activate:function(toggleBtn){var screenSizes=$.AdminLTE.options.screenSizes;$(document).on("click",toggleBtn,(function(e){e.preventDefault(),$(window).width()>screenSizes.sm-1?$("body").hasClass("sidebar-collapse")?$("body").removeClass("sidebar-collapse").trigger("expanded.pushMenu"):$("body").addClass("sidebar-collapse").trigger("collapsed.pushMenu"):$("body").hasClass("sidebar-open")?$("body").removeClass("sidebar-open").removeClass("sidebar-collapse").trigger("collapsed.pushMenu"):$("body").addClass("sidebar-open").trigger("expanded.pushMenu")})),$(".content-wrapper").click((function(){$(window).width()<=screenSizes.sm-1&&$("body").hasClass("sidebar-open")&&$("body").removeClass("sidebar-open")})),($.AdminLTE.options.sidebarExpandOnHover||$("body").hasClass("fixed")&&$("body").hasClass("sidebar-mini"))&&this.expandOnHover()},expandOnHover:function(){var _this=this,screenWidth=$.AdminLTE.options.screenSizes.sm-1;$(".main-sidebar").hover((function(){$("body").hasClass("sidebar-mini")&&$("body").hasClass("sidebar-collapse")&&$(window).width()>screenWidth&&_this.expand()}),(function(){$("body").hasClass("sidebar-mini")&&$("body").hasClass("sidebar-expanded-on-hover")&&$(window).width()>screenWidth&&_this.collapse()}))},expand:function(){$("body").removeClass("sidebar-collapse").addClass("sidebar-expanded-on-hover")},collapse:function(){$("body").hasClass("sidebar-expanded-on-hover")&&$("body").removeClass("sidebar-expanded-on-hover").addClass("sidebar-collapse")}},$.AdminLTE.tree=function(menu){var _this=this,animationSpeed=$.AdminLTE.options.animationSpeed;$(document).off("click",menu+" li a").on("click",menu+" li a",(function(e){var $this=$(this),checkElement=$this.next();if(checkElement.is(".treeview-menu")&&checkElement.is(":visible")&&!$("body").hasClass("sidebar-collapse"))checkElement.slideUp(animationSpeed,(function(){checkElement.removeClass("menu-open")})),checkElement.parent("li").removeClass("active");else if(checkElement.is(".treeview-menu")&&!checkElement.is(":visible")){var parent=$this.parents("ul").first(),ul;parent.find("ul:visible").slideUp(animationSpeed).removeClass("menu-open");var parent_li=$this.parent("li");checkElement.slideDown(animationSpeed,(function(){checkElement.addClass("menu-open"),parent.find("li.active").each((function(){$(this).hasClass("child")||$(this).removeClass("active")})),parent_li.addClass("active"),_this.layout.fix()}))}checkElement.is(".treeview-menu")&&e.preventDefault()}))},$.AdminLTE.controlSidebar={activate:function(){var _this=this,o=$.AdminLTE.options.controlSidebarOptions,sidebar=$(o.selector),btn;$(o.toggleBtnSelector).on("click",(function(e){e.preventDefault(),sidebar.hasClass("control-sidebar-open")||$("body").hasClass("control-sidebar-open")?_this.close(sidebar,o.slide):_this.open(sidebar,o.slide)}));var bg=$(".control-sidebar-bg");_this._fix(bg),$("body").hasClass("fixed")?_this._fixForFixed(sidebar):$(".content-wrapper, .right-side").height()
.box-body, > .box-footer, > form >.box-body, > form > .box-footer");box.hasClass("collapsed-box")?(element.children(":first").removeClass(this.icons.open).addClass(this.icons.collapse),box_content.slideDown(this.animationSpeed,(function(){box.removeClass("collapsed-box")}))):(element.children(":first").removeClass(this.icons.collapse).addClass(this.icons.open),box_content.slideUp(this.animationSpeed,(function(){box.addClass("collapsed-box")})))},remove:function(element){var box;element.parents(".box").first().slideUp(this.animationSpeed)}}}$.AdminLTE={},$.AdminLTE.options={navbarMenuSlimscroll:!0,navbarMenuSlimscrollWidth:"3px",navbarMenuHeight:"200px",animationSpeed:500,sidebarToggleSelector:"[data-toggle='offcanvas']",sidebarPushMenu:!0,sidebarSlimScroll:!0,sidebarExpandOnHover:!1,enableBoxRefresh:!0,enableBSToppltip:!0,BSTooltipSelector:"[data-toggle='tooltip']",enableFastclick:!1,enableControlSidebar:!0,controlSidebarOptions:{toggleBtnSelector:"[data-toggle='control-sidebar']",selector:".control-sidebar",slide:!0},enableBoxWidget:!0,boxWidgetOptions:{boxWidgetIcons:{collapse:"fa-minus",open:"fa-plus",remove:"fa-times"},boxWidgetSelectors:{remove:'[data-widget="remove"]',collapse:'[data-widget="collapse"]'}},directChat:{enable:!0,contactToggleSelector:'[data-widget="chat-pane-toggle"]'},colors:{lightBlue:"#3c8dbc",red:"#f56954",green:"#00a65a",aqua:"#00c0ef",yellow:"#f39c12",blue:"#0073b7",navy:"#001F3F",teal:"#39CCCC",olive:"#3D9970",lime:"#01FF70",orange:"#FF851B",fuchsia:"#F012BE",purple:"#8E24AA",maroon:"#D81B60",black:"#222222",gray:"#d2d6de"},screenSizes:{xs:480,sm:768,md:992,lg:1200}},$((function(){"use strict";$("body").removeClass("hold-transition"),"undefined"!=typeof AdminLTEOptions&&$.extend(!0,$.AdminLTE.options,AdminLTEOptions);var o=$.AdminLTE.options;_init(),$.AdminLTE.layout.activate(),$.AdminLTE.tree(".sidebar"),o.enableControlSidebar&&$.AdminLTE.controlSidebar.activate(),o.navbarMenuSlimscroll&&void 0!==$.fn.slimscroll&&$(".navbar .menu").slimscroll({height:o.navbarMenuHeight,alwaysVisible:!1,size:o.navbarMenuSlimscrollWidth}).css("width","100%"),o.sidebarPushMenu&&$.AdminLTE.pushMenu.activate(o.sidebarToggleSelector),o.enableBSToppltip&&$("body").tooltip({selector:o.BSTooltipSelector}),o.enableBoxWidget&&$.AdminLTE.boxWidget.activate(),o.enableFastclick&&"undefined"!=typeof FastClick&&FastClick.attach(document.body),o.directChat.enable&&$(document).on("click",o.directChat.contactToggleSelector,(function(){var box;$(this).parents(".direct-chat").first().toggleClass("direct-chat-contacts-open")})),$('.btn-group[data-toggle="btn-toggle"]').each((function(){var group=$(this);$(this).find(".btn").on("click",(function(e){group.find(".btn.active").removeClass("active"),$(this).addClass("active"),e.preventDefault()}))}))})),function($){"use strict";$.fn.boxRefresh=function(options){var settings=$.extend({trigger:".refresh-btn",source:"",onLoadStart:function(box){return box},onLoadDone:function(box){return box}},options),overlay=$('
');return this.each((function(){if(""!==settings.source){var box=$(this),rBtn;box.find(settings.trigger).first().on("click",(function(e){e.preventDefault(),start(box),box.find(".box-body").load(settings.source,(function(){done(box)}))}))}else window.console&&window.console.log("Please specify a source first - boxRefresh()")}));function start(box){box.append(overlay),settings.onLoadStart.call(box)}function done(box){box.find(overlay).remove(),settings.onLoadDone.call(box)}}}(jQuery),function($){"use strict";$.fn.activateBox=function(){$.AdminLTE.boxWidget.activate(this)},$.fn.toggleBox=function(){var button=$($.AdminLTE.boxWidget.selectors.collapse,this);$.AdminLTE.boxWidget.collapse(button)},$.fn.removeBox=function(){var button=$($.AdminLTE.boxWidget.selectors.remove,this);$.AdminLTE.boxWidget.remove(button)}}(jQuery),function($){"use strict";$.fn.todolist=function(options){var settings=$.extend({onCheck:function(ele){return ele},onUncheck:function(ele){return ele}},options);return this.each((function(){void 0!==$.fn.iCheck?($("input",this).on("ifChecked",(function(){var ele=$(this).parents("li").first();ele.toggleClass("done"),settings.onCheck.call(ele)})),$("input",this).on("ifUnchecked",(function(){var ele=$(this).parents("li").first();ele.toggleClass("done"),settings.onUncheck.call(ele)}))):$("input",this).on("change",(function(){var ele=$(this).parents("li").first();ele.toggleClass("done"),$("input",ele).is(":checked")?settings.onCheck.call(ele):settings.onUncheck.call(ele)}))}))}}(jQuery);