Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
知鸟1号
AdminLTE
提交
3c0552ab
A
AdminLTE
项目概览
知鸟1号
/
AdminLTE
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
AdminLTE
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
3c0552ab
编写于
2月 10, 2015
作者:
A
Abdullah Almsaeed
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Removed unused selectors from prepare layout function
上级
79e8c739
变更
10
展开全部
隐藏空白更改
内联
并排
Showing
10 changed file
with
40 addition
and
11 deletion
+40
-11
build/less/sidebar.less
build/less/sidebar.less
+4
-2
build/less/skins/skin-blue.less
build/less/skins/skin-blue.less
+4
-1
dist/css/AdminLTE.css
dist/css/AdminLTE.css
+2
-0
dist/css/AdminLTE.min.css
dist/css/AdminLTE.min.css
+1
-1
dist/css/skins/_all-skins.css
dist/css/skins/_all-skins.css
+11
-0
dist/css/skins/_all-skins.min.css
dist/css/skins/_all-skins.min.css
+1
-1
dist/css/skins/skin-blue.css
dist/css/skins/skin-blue.css
+11
-0
dist/css/skins/skin-blue.min.css
dist/css/skins/skin-blue.min.css
+1
-1
dist/js/app.js
dist/js/app.js
+4
-4
dist/js/app.min.js
dist/js/app.min.js
+1
-1
未找到文件。
build/less/sidebar.less
浏览文件 @
3c0552ab
...
...
@@ -33,8 +33,10 @@
.sidebar {
padding-bottom: 10px;
overflow: auto;
height: 100%;
.fixed & {
overflow: auto;
height: 100%;
}
}
// remove border from form
.sidebar-form {
...
...
build/less/skins/skin-blue.less
浏览文件 @
3c0552ab
...
...
@@ -36,7 +36,7 @@
}
}
//Logo
.logo {
.logo {
.logo-variant(darken(@light-blue, 5%));
}
...
...
@@ -132,4 +132,7 @@
.border-radius(0, 2px, 0, 2px)!important;
}
}
}
.skin-blue.layout-top-nav .main-header > .logo {
.logo-variant(@light-blue);
}
\ No newline at end of file
dist/css/AdminLTE.css
浏览文件 @
3c0552ab
...
...
@@ -434,6 +434,8 @@ a:focus {
}
.sidebar
{
padding-bottom
:
10px
;
}
.fixed
.sidebar
{
overflow
:
auto
;
height
:
100%
;
}
...
...
dist/css/AdminLTE.min.css
浏览文件 @
3c0552ab
此差异已折叠。
点击以展开。
dist/css/skins/_all-skins.css
浏览文件 @
3c0552ab
...
...
@@ -138,6 +138,17 @@
border-bottom-right-radius
:
2px
!important
;
border-bottom-left-radius
:
0
!important
;
}
.skin-blue.layout-top-nav
.main-header
>
.logo
{
background-color
:
#3c8dbc
;
color
:
#ffffff
;
border-bottom
:
1px
solid
transparent
;
}
.skin-blue.layout-top-nav
.main-header
>
.logo
>
a
{
color
:
#ffffff
;
}
.skin-blue.layout-top-nav
.main-header
>
.logo
:hover
{
background
:
#3b8ab8
;
}
/*
* Skin: Black
* -----------
...
...
dist/css/skins/_all-skins.min.css
浏览文件 @
3c0552ab
此差异已折叠。
点击以展开。
dist/css/skins/skin-blue.css
浏览文件 @
3c0552ab
...
...
@@ -138,3 +138,14 @@
border-bottom-right-radius
:
2px
!important
;
border-bottom-left-radius
:
0
!important
;
}
.skin-blue.layout-top-nav
.main-header
>
.logo
{
background-color
:
#3c8dbc
;
color
:
#ffffff
;
border-bottom
:
1px
solid
transparent
;
}
.skin-blue.layout-top-nav
.main-header
>
.logo
>
a
{
color
:
#ffffff
;
}
.skin-blue.layout-top-nav
.main-header
>
.logo
:hover
{
background
:
#3b8ab8
;
}
dist/css/skins/skin-blue.min.css
浏览文件 @
3c0552ab
.skin-blue
.main-header
.navbar
{
background-color
:
#3c8dbc
}
.skin-blue
.main-header
.navbar
.nav
>
li
>
a
{
color
:
#fff
}
.skin-blue
.main-header
.navbar
.nav
>
li
>
a
:hover
,
.skin-blue
.main-header
.navbar
.nav
>
li
>
a
:active
,
.skin-blue
.main-header
.navbar
.nav
>
li
>
a
:focus
,
.skin-blue
.main-header
.navbar
.nav
.open
>
a
,
.skin-blue
.main-header
.navbar
.nav
.open
>
a
:hover
,
.skin-blue
.main-header
.navbar
.nav
.open
>
a
:focus
{
background
:
rgba
(
0
,
0
,
0
,
0.1
);
color
:
#f6f6f6
}
.skin-blue
.main-header
.navbar
.navbar-custom-menu
>
.nav
{
margin-right
:
10px
}
.skin-blue
.main-header
.navbar
.sidebar-toggle
{
color
:
#fff
}
.skin-blue
.main-header
.navbar
.sidebar-toggle
:hover
{
color
:
#f6f6f6
;
background
:
rgba
(
0
,
0
,
0
,
0.1
)}
.skin-blue
.main-header
.navbar
.sidebar-toggle
{
color
:
#fff
}
.skin-blue
.main-header
.navbar
.sidebar-toggle
:hover
{
background-color
:
#367fa9
}
@media
(
max-width
:
767px
){
.skin-blue
.main-header
.navbar
.dropdown-menu
li
.divider
{
background-color
:
rgba
(
255
,
255
,
255
,
0.1
)}
.skin-blue
.main-header
.navbar
.dropdown-menu
li
a
{
color
:
#fff
}
.skin-blue
.main-header
.navbar
.dropdown-menu
li
a
:hover
{
background
:
#367fa9
}}
.skin-blue
.main-header
.logo
{
background-color
:
#367fa9
;
color
:
#fff
;
border-bottom
:
1px
solid
transparent
}
.skin-blue
.main-header
.logo
>
a
{
color
:
#fff
}
.skin-blue
.main-header
.logo
:hover
{
background
:
#357ca5
}
.skin-blue
.main-header
li
.user-header
{
background-color
:
#3c8dbc
}
.skin-blue
.content-header
{
background
:
transparent
}
.skin-blue
.user-panel
>
.info
,
.skin-blue
.user-panel
>
.info
>
a
{
color
:
#fff
}
.skin-blue
.sidebar-menu
>
li
.header
{
color
:
#4b646f
;
background
:
#1a2226
}
.skin-blue
.sidebar-menu
>
li
>
a
{
border-left
:
3px
solid
transparent
;
margin-right
:
1px
}
.skin-blue
.sidebar-menu
>
li
>
a
:hover
,
.skin-blue
.sidebar-menu
>
li
.active
>
a
{
color
:
#fff
;
background
:
#1e282c
;
border-left-color
:
#3c8dbc
}
.skin-blue
.sidebar-menu
>
li
>
.treeview-menu
{
margin
:
0
1px
;
background
:
#2c3b41
}
.skin-blue
.wrapper
,
.skin-blue
.main-sidebar
,
.skin-blue
.left-side
{
background
:
#222d32
}
.skin-blue
.sidebar
a
{
color
:
#b8c7ce
}
.skin-blue
.sidebar
a
:hover
{
text-decoration
:
none
}
.skin-blue
.treeview-menu
>
li
>
a
{
color
:
#8aa4af
}
.skin-blue
.treeview-menu
>
li
.active
>
a
,
.skin-blue
.treeview-menu
>
li
>
a
:hover
{
color
:
#fff
}
.skin-blue
.sidebar-form
{
border-radius
:
3px
;
border
:
1px
solid
#374850
;
margin
:
10px
10px
}
.skin-blue
.sidebar-form
input
[
type
=
"text"
],
.skin-blue
.sidebar-form
.btn
{
box-shadow
:
none
;
background-color
:
#374850
;
border
:
1px
solid
transparent
;
height
:
35px
;
-webkit-transition
:
all
.3s
cubic-bezier
(
.32
,
1.25
,
.375
,
1.15
);
-o-transition
:
all
.3s
cubic-bezier
(
.32
,
1.25
,
.375
,
1.15
);
transition
:
all
.3s
cubic-bezier
(
.32
,
1.25
,
.375
,
1.15
)}
.skin-blue
.sidebar-form
input
[
type
=
"text"
]
{
color
:
#666
;
border-top-left-radius
:
2px
!important
;
border-top-right-radius
:
0
!important
;
border-bottom-right-radius
:
0
!important
;
border-bottom-left-radius
:
2px
!important
}
.skin-blue
.sidebar-form
input
[
type
=
"text"
]
:focus
,
.skin-blue
.sidebar-form
input
[
type
=
"text"
]
:focus
+
.input-group-btn
.btn
{
background-color
:
#fff
;
color
:
#666
}
.skin-blue
.sidebar-form
input
[
type
=
"text"
]
:focus
+
.input-group-btn
.btn
{
border-left-color
:
#fff
}
.skin-blue
.sidebar-form
.btn
{
color
:
#999
;
border-top-left-radius
:
0
!important
;
border-top-right-radius
:
2px
!important
;
border-bottom-right-radius
:
2px
!important
;
border-bottom-left-radius
:
0
!important
}
\ No newline at end of file
.skin-blue
.main-header
.navbar
{
background-color
:
#3c8dbc
}
.skin-blue
.main-header
.navbar
.nav
>
li
>
a
{
color
:
#fff
}
.skin-blue
.main-header
.navbar
.nav
>
li
>
a
:hover
,
.skin-blue
.main-header
.navbar
.nav
>
li
>
a
:active
,
.skin-blue
.main-header
.navbar
.nav
>
li
>
a
:focus
,
.skin-blue
.main-header
.navbar
.nav
.open
>
a
,
.skin-blue
.main-header
.navbar
.nav
.open
>
a
:hover
,
.skin-blue
.main-header
.navbar
.nav
.open
>
a
:focus
{
background
:
rgba
(
0
,
0
,
0
,
0.1
);
color
:
#f6f6f6
}
.skin-blue
.main-header
.navbar
.navbar-custom-menu
>
.nav
{
margin-right
:
10px
}
.skin-blue
.main-header
.navbar
.sidebar-toggle
{
color
:
#fff
}
.skin-blue
.main-header
.navbar
.sidebar-toggle
:hover
{
color
:
#f6f6f6
;
background
:
rgba
(
0
,
0
,
0
,
0.1
)}
.skin-blue
.main-header
.navbar
.sidebar-toggle
{
color
:
#fff
}
.skin-blue
.main-header
.navbar
.sidebar-toggle
:hover
{
background-color
:
#367fa9
}
@media
(
max-width
:
767px
){
.skin-blue
.main-header
.navbar
.dropdown-menu
li
.divider
{
background-color
:
rgba
(
255
,
255
,
255
,
0.1
)}
.skin-blue
.main-header
.navbar
.dropdown-menu
li
a
{
color
:
#fff
}
.skin-blue
.main-header
.navbar
.dropdown-menu
li
a
:hover
{
background
:
#367fa9
}}
.skin-blue
.main-header
.logo
{
background-color
:
#367fa9
;
color
:
#fff
;
border-bottom
:
1px
solid
transparent
}
.skin-blue
.main-header
.logo
>
a
{
color
:
#fff
}
.skin-blue
.main-header
.logo
:hover
{
background
:
#357ca5
}
.skin-blue
.main-header
li
.user-header
{
background-color
:
#3c8dbc
}
.skin-blue
.content-header
{
background
:
transparent
}
.skin-blue
.user-panel
>
.info
,
.skin-blue
.user-panel
>
.info
>
a
{
color
:
#fff
}
.skin-blue
.sidebar-menu
>
li
.header
{
color
:
#4b646f
;
background
:
#1a2226
}
.skin-blue
.sidebar-menu
>
li
>
a
{
border-left
:
3px
solid
transparent
;
margin-right
:
1px
}
.skin-blue
.sidebar-menu
>
li
>
a
:hover
,
.skin-blue
.sidebar-menu
>
li
.active
>
a
{
color
:
#fff
;
background
:
#1e282c
;
border-left-color
:
#3c8dbc
}
.skin-blue
.sidebar-menu
>
li
>
.treeview-menu
{
margin
:
0
1px
;
background
:
#2c3b41
}
.skin-blue
.wrapper
,
.skin-blue
.main-sidebar
,
.skin-blue
.left-side
{
background
:
#222d32
}
.skin-blue
.sidebar
a
{
color
:
#b8c7ce
}
.skin-blue
.sidebar
a
:hover
{
text-decoration
:
none
}
.skin-blue
.treeview-menu
>
li
>
a
{
color
:
#8aa4af
}
.skin-blue
.treeview-menu
>
li
.active
>
a
,
.skin-blue
.treeview-menu
>
li
>
a
:hover
{
color
:
#fff
}
.skin-blue
.sidebar-form
{
border-radius
:
3px
;
border
:
1px
solid
#374850
;
margin
:
10px
10px
}
.skin-blue
.sidebar-form
input
[
type
=
"text"
],
.skin-blue
.sidebar-form
.btn
{
box-shadow
:
none
;
background-color
:
#374850
;
border
:
1px
solid
transparent
;
height
:
35px
;
-webkit-transition
:
all
.3s
cubic-bezier
(
.32
,
1.25
,
.375
,
1.15
);
-o-transition
:
all
.3s
cubic-bezier
(
.32
,
1.25
,
.375
,
1.15
);
transition
:
all
.3s
cubic-bezier
(
.32
,
1.25
,
.375
,
1.15
)}
.skin-blue
.sidebar-form
input
[
type
=
"text"
]
{
color
:
#666
;
border-top-left-radius
:
2px
!important
;
border-top-right-radius
:
0
!important
;
border-bottom-right-radius
:
0
!important
;
border-bottom-left-radius
:
2px
!important
}
.skin-blue
.sidebar-form
input
[
type
=
"text"
]
:focus
,
.skin-blue
.sidebar-form
input
[
type
=
"text"
]
:focus
+
.input-group-btn
.btn
{
background-color
:
#fff
;
color
:
#666
}
.skin-blue
.sidebar-form
input
[
type
=
"text"
]
:focus
+
.input-group-btn
.btn
{
border-left-color
:
#fff
}
.skin-blue
.sidebar-form
.btn
{
color
:
#999
;
border-top-left-radius
:
0
!important
;
border-top-right-radius
:
2px
!important
;
border-bottom-right-radius
:
2px
!important
;
border-bottom-left-radius
:
0
!important
}
.skin-blue.layout-top-nav
.main-header
>
.logo
{
background-color
:
#3c8dbc
;
color
:
#fff
;
border-bottom
:
1px
solid
transparent
}
.skin-blue.layout-top-nav
.main-header
>
.logo
>
a
{
color
:
#fff
}
.skin-blue.layout-top-nav
.main-header
>
.logo
:hover
{
background
:
#3b8ab8
}
\ No newline at end of file
dist/js/app.js
浏览文件 @
3c0552ab
...
...
@@ -46,7 +46,7 @@ $.AdminLTE.options = {
//Activate sidebar push menu
sidebarPushMenu
:
true
,
//Activate sidebar slimscroll if the fixed layout is set (requires SlimScroll Plugin)
sidebarSlimScroll
:
fals
e
,
sidebarSlimScroll
:
tru
e
,
//BoxRefresh Plugin
enableBoxRefresh
:
true
,
//Bootstrap.js tooltip
...
...
@@ -187,16 +187,16 @@ $.AdminLTE.layout = {
//Get window height and the wrapper height
var
neg
=
$
(
'
.main-header
'
).
outerHeight
()
+
$
(
'
.main-footer
'
).
outerHeight
();
var
window_height
=
$
(
window
).
height
();
var
sidebar_height
=
$
(
"
.
main-sidebar, .left-side
"
).
height
();
var
sidebar_height
=
$
(
"
.
sidebar
"
).
height
();
//Set the min-height of the content and sidebar based on the
//the height of the document.
if
(
$
(
"
body
"
).
hasClass
(
"
fixed
"
))
{
$
(
"
.content-wrapper, .right-side
"
).
css
(
'
min-height
'
,
window_height
-
$
(
'
.main-footer
'
).
outerHeight
());
}
else
{
if
(
window_height
>=
sidebar_height
)
{
$
(
"
.content-wrapper, .
main-sidebar, .left-side, .
right-side
"
).
css
(
'
min-height
'
,
window_height
-
neg
);
$
(
"
.content-wrapper, .right-side
"
).
css
(
'
min-height
'
,
window_height
-
neg
);
}
else
{
$
(
"
.content-wrapper, .
main-sidebar, .left-side, .
right-side
"
).
css
(
'
min-height
'
,
sidebar_height
);
$
(
"
.content-wrapper, .right-side
"
).
css
(
'
min-height
'
,
sidebar_height
);
}
}
},
...
...
dist/js/app.min.js
浏览文件 @
3c0552ab
...
...
@@ -10,4 +10,4 @@
* @version 2.0
* @license MIT <http://opensource.org/licenses/MIT>
*/
if
(
"
undefined
"
==
typeof
jQuery
)
throw
new
Error
(
"
AdminLTE requires jQuery
"
);
$
.
AdminLTE
=
new
Object
,
$
.
AdminLTE
.
options
=
{
navbarMenuSlimscroll
:
!
0
,
navbarMenuSlimscrollWidth
:
"
3px
"
,
navbarMenuHeight
:
"
200px
"
,
sidebarToggleSelector
:
"
[data-toggle='offcanvas']
"
,
sidebarPushMenu
:
!
0
,
sidebarSlimScroll
:
!
1
,
enableBoxRefresh
:
!
0
,
enableBSToppltip
:
!
0
,
BSTooltipSelector
:
"
[data-toggle='tooltip']
"
,
enableFastclick
:
!
0
,
enableBoxWidget
:
!
0
,
boxWidgetOptions
:{
boxWidgetIcons
:{
collapse
:
"
fa fa-minus
"
,
open
:
"
fa fa-plus
"
,
remove
:
"
fa fa-times
"
},
boxWidgetSelectors
:{
remove
:
'
[data-widget="remove"]
'
,
collapse
:
'
[data-widget="collapse"]
'
}},
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
"
}},
$
(
function
(){
var
a
=
$
.
AdminLTE
.
options
;
$
.
AdminLTE
.
layout
.
activate
(),
$
.
AdminLTE
.
tree
(
"
.sidebar
"
),
a
.
navbarMenuSlimscroll
&&
"
undefined
"
!=
typeof
$
.
fn
.
slimscroll
&&
$
(
"
.navbar .menu
"
).
slimscroll
({
height
:
"
200px
"
,
alwaysVisible
:
!
1
,
size
:
"
3px
"
}).
css
(
"
width
"
,
"
100%
"
),
a
.
sidebarPushMenu
&&
$
.
AdminLTE
.
pushMenu
(
a
.
sidebarToggleSelector
),
a
.
enableBSToppltip
&&
$
(
a
.
BSTooltipSelector
).
tooltip
(),
a
.
enableBoxWidget
&&
$
.
AdminLTE
.
boxWidget
.
activate
(),
a
.
enableFastclick
&&
"
undefined
"
!=
typeof
FastClick
&&
FastClick
.
attach
(
document
.
body
),
$
(
'
.btn-group[data-toggle="btn-toggle"]
'
).
each
(
function
(){
var
a
=
$
(
this
);
$
(
this
).
find
(
"
.btn
"
).
click
(
function
(
b
){
a
.
find
(
"
.btn.active
"
).
removeClass
(
"
active
"
),
$
(
this
).
addClass
(
"
active
"
),
b
.
preventDefault
()})})}),
$
.
AdminLTE
.
layout
=
{
activate
:
function
(){
var
a
=
this
;
a
.
fix
(),
a
.
fixSidebar
(),
$
(
window
,
"
.wrapper
"
).
resize
(
function
(){
a
.
fix
(),
a
.
fixSidebar
()})},
fix
:
function
(){
var
a
=
$
(
"
.main-header
"
).
outerHeight
()
+
$
(
"
.main-footer
"
).
outerHeight
(),
b
=
$
(
window
).
height
(),
c
=
$
(
"
.main-sidebar, .left-side
"
).
height
();
$
(
"
body
"
).
hasClass
(
"
fixed
"
)?
$
(
"
.content-wrapper, .right-side
"
).
css
(
"
min-height
"
,
b
-
$
(
"
.main-footer
"
).
outerHeight
()):
b
>=
c
?
$
(
"
.content-wrapper, .main-sidebar, .left-side, .right-side
"
).
css
(
"
min-height
"
,
b
-
a
):
$
(
"
.content-wrapper, .main-sidebar, .left-side, .right-side
"
).
css
(
"
min-height
"
,
c
)},
fixSidebar
:
function
(){
return
$
(
"
body
"
).
hasClass
(
"
fixed
"
)?(
"
undefined
"
==
typeof
$
.
fn
.
slimScroll
&&
console
&&
console
.
error
(
"
Error: the fixed layout requires the slimscroll plugin!
"
),
void
(
$
.
AdminLTE
.
options
.
sidebarSlimScroll
&&
"
undefined
"
!=
typeof
$
.
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
(
"
undefined
"
!=
typeof
$
.
fn
.
slimScroll
&&
$
(
"
.sidebar
"
).
slimScroll
({
destroy
:
!
0
}).
height
(
"
auto
"
))}},
$
.
AdminLTE
.
pushMenu
=
function
(
a
){
$
(
a
).
click
(
function
(
a
){
a
.
preventDefault
(),
$
(
"
body
"
).
toggleClass
(
"
sidebar-collapse
"
),
$
(
"
body
"
).
toggleClass
(
"
sidebar-open
"
)}),
$
(
"
.content-wrapper
"
).
click
(
function
(){
$
(
window
).
width
()
<=
767
&&
$
(
"
body
"
).
hasClass
(
"
sidebar-open
"
)
&&
$
(
"
body
"
).
removeClass
(
"
sidebar-open
"
)})},
$
.
AdminLTE
.
tree
=
function
(
a
){
$
(
"
li a
"
,
$
(
a
)).
click
(
function
(
a
){
var
b
=
$
(
this
),
c
=
b
.
next
();
if
(
c
.
is
(
"
.treeview-menu
"
)
&&
c
.
is
(
"
:visible
"
))
c
.
slideUp
(
"
normal
"
,
function
(){
c
.
removeClass
(
"
menu-open
"
)}),
c
.
parent
(
"
li
"
).
removeClass
(
"
active
"
);
else
if
(
c
.
is
(
"
.treeview-menu
"
)
&&!
c
.
is
(
"
:visible
"
)){
var
d
=
b
.
parents
(
"
ul
"
).
first
(),
e
=
d
.
find
(
"
ul:visible
"
).
slideUp
(
"
normal
"
);
e
.
removeClass
(
"
menu-open
"
);
var
f
=
b
.
parent
(
"
li
"
);
c
.
slideDown
(
"
normal
"
,
function
(){
c
.
addClass
(
"
menu-open
"
),
d
.
find
(
"
li.active
"
).
removeClass
(
"
active
"
),
f
.
addClass
(
"
active
"
)})}
c
.
is
(
"
.treeview-menu
"
)
&&
a
.
preventDefault
()})},
$
.
AdminLTE
.
boxWidget
=
{
activate
:
function
(){
var
a
=
$
.
AdminLTE
.
options
,
b
=
this
;
$
(
a
.
boxWidgetOptions
.
boxWidgetSelectors
.
collapse
).
click
(
function
(
a
){
a
.
preventDefault
(),
b
.
collapse
(
$
(
this
))}),
$
(
a
.
boxWidgetOptions
.
boxWidgetSelectors
.
remove
).
click
(
function
(
a
){
a
.
preventDefault
(),
b
.
remove
(
$
(
this
))})},
collapse
:
function
(
a
){
var
b
=
a
.
parents
(
"
.box
"
).
first
(),
c
=
b
.
find
(
"
.box-body, .box-footer
"
);
b
.
hasClass
(
"
collapsed-box
"
)?(
a
.
children
(
"
.fa-plus
"
).
removeClass
(
"
fa-plus
"
).
addClass
(
"
fa-minus
"
),
c
.
slideDown
(
300
,
function
(){
b
.
removeClass
(
"
collapsed-box
"
)})):(
a
.
children
(
"
.fa-minus
"
).
removeClass
(
"
fa-minus
"
).
addClass
(
"
fa-plus
"
),
c
.
slideUp
(
300
,
function
(){
b
.
addClass
(
"
collapsed-box
"
)}))},
remove
:
function
(
a
){
var
b
=
a
.
parents
(
"
.box
"
).
first
();
b
.
slideUp
()},
options
:
$
.
AdminLTE
.
options
.
boxWidgetOptions
},
function
(
a
){
a
.
fn
.
boxRefresh
=
function
(
b
){
function
c
(
a
){
a
.
append
(
f
),
e
.
onLoadStart
.
call
(
a
)}
function
d
(
a
){
a
.
find
(
f
).
remove
(),
e
.
onLoadDone
.
call
(
a
)}
var
e
=
a
.
extend
({
trigger
:
"
.refresh-btn
"
,
source
:
""
,
onLoadStart
:
function
(){},
onLoadDone
:
function
(){}},
b
),
f
=
a
(
'
<div class="overlay"></div><div class="loading-img"></div>
'
);
return
this
.
each
(
function
(){
if
(
""
===
e
.
source
)
return
void
(
console
&&
console
.
log
(
"
Please specify a source first - boxRefresh()
"
));
var
b
=
a
(
this
),
f
=
b
.
find
(
e
.
trigger
).
first
();
f
.
click
(
function
(
a
){
a
.
preventDefault
(),
c
(
b
),
b
.
find
(
"
.box-body
"
).
load
(
e
.
source
,
function
(){
d
(
b
)})})})}}(
jQuery
),
function
(
a
){
a
.
fn
.
todolist
=
function
(
b
){
var
c
=
a
.
extend
({
onCheck
:
function
(){},
onUncheck
:
function
(){}},
b
);
return
this
.
each
(
function
(){
"
undefined
"
!=
typeof
a
.
fn
.
iCheck
?(
a
(
"
input
"
,
this
).
on
(
"
ifChecked
"
,
function
(){
var
b
=
a
(
this
).
parents
(
"
li
"
).
first
();
b
.
toggleClass
(
"
done
"
),
c
.
onCheck
.
call
(
b
)}),
a
(
"
input
"
,
this
).
on
(
"
ifUnchecked
"
,
function
(){
var
b
=
a
(
this
).
parents
(
"
li
"
).
first
();
b
.
toggleClass
(
"
done
"
),
c
.
onUncheck
.
call
(
b
)})):
a
(
"
input
"
,
this
).
on
(
"
change
"
,
function
(){
var
b
=
a
(
this
).
parents
(
"
li
"
).
first
();
b
.
toggleClass
(
"
done
"
),
c
.
onCheck
.
call
(
b
)})})}}(
jQuery
);
\ No newline at end of file
if
(
"
undefined
"
==
typeof
jQuery
)
throw
new
Error
(
"
AdminLTE requires jQuery
"
);
$
.
AdminLTE
=
new
Object
,
$
.
AdminLTE
.
options
=
{
navbarMenuSlimscroll
:
!
0
,
navbarMenuSlimscrollWidth
:
"
3px
"
,
navbarMenuHeight
:
"
200px
"
,
sidebarToggleSelector
:
"
[data-toggle='offcanvas']
"
,
sidebarPushMenu
:
!
0
,
sidebarSlimScroll
:
!
0
,
enableBoxRefresh
:
!
0
,
enableBSToppltip
:
!
0
,
BSTooltipSelector
:
"
[data-toggle='tooltip']
"
,
enableFastclick
:
!
0
,
enableBoxWidget
:
!
0
,
boxWidgetOptions
:{
boxWidgetIcons
:{
collapse
:
"
fa fa-minus
"
,
open
:
"
fa fa-plus
"
,
remove
:
"
fa fa-times
"
},
boxWidgetSelectors
:{
remove
:
'
[data-widget="remove"]
'
,
collapse
:
'
[data-widget="collapse"]
'
}},
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
"
}},
$
(
function
(){
var
a
=
$
.
AdminLTE
.
options
;
$
.
AdminLTE
.
layout
.
activate
(),
$
.
AdminLTE
.
tree
(
"
.sidebar
"
),
a
.
navbarMenuSlimscroll
&&
"
undefined
"
!=
typeof
$
.
fn
.
slimscroll
&&
$
(
"
.navbar .menu
"
).
slimscroll
({
height
:
"
200px
"
,
alwaysVisible
:
!
1
,
size
:
"
3px
"
}).
css
(
"
width
"
,
"
100%
"
),
a
.
sidebarPushMenu
&&
$
.
AdminLTE
.
pushMenu
(
a
.
sidebarToggleSelector
),
a
.
enableBSToppltip
&&
$
(
a
.
BSTooltipSelector
).
tooltip
(),
a
.
enableBoxWidget
&&
$
.
AdminLTE
.
boxWidget
.
activate
(),
a
.
enableFastclick
&&
"
undefined
"
!=
typeof
FastClick
&&
FastClick
.
attach
(
document
.
body
),
$
(
'
.btn-group[data-toggle="btn-toggle"]
'
).
each
(
function
(){
var
a
=
$
(
this
);
$
(
this
).
find
(
"
.btn
"
).
click
(
function
(
b
){
a
.
find
(
"
.btn.active
"
).
removeClass
(
"
active
"
),
$
(
this
).
addClass
(
"
active
"
),
b
.
preventDefault
()})})}),
$
.
AdminLTE
.
layout
=
{
activate
:
function
(){
var
a
=
this
;
a
.
fix
(),
a
.
fixSidebar
(),
$
(
window
,
"
.wrapper
"
).
resize
(
function
(){
a
.
fix
(),
a
.
fixSidebar
()})},
fix
:
function
(){
var
a
=
$
(
"
.main-header
"
).
outerHeight
()
+
$
(
"
.main-footer
"
).
outerHeight
(),
b
=
$
(
window
).
height
(),
c
=
$
(
"
.sidebar
"
).
height
();
$
(
"
body
"
).
hasClass
(
"
fixed
"
)?
$
(
"
.content-wrapper, .right-side
"
).
css
(
"
min-height
"
,
b
-
$
(
"
.main-footer
"
).
outerHeight
()):
b
>=
c
?
$
(
"
.content-wrapper, .right-side
"
).
css
(
"
min-height
"
,
b
-
a
):
$
(
"
.content-wrapper, .right-side
"
).
css
(
"
min-height
"
,
c
)},
fixSidebar
:
function
(){
return
$
(
"
body
"
).
hasClass
(
"
fixed
"
)?(
"
undefined
"
==
typeof
$
.
fn
.
slimScroll
&&
console
&&
console
.
error
(
"
Error: the fixed layout requires the slimscroll plugin!
"
),
void
(
$
.
AdminLTE
.
options
.
sidebarSlimScroll
&&
"
undefined
"
!=
typeof
$
.
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
(
"
undefined
"
!=
typeof
$
.
fn
.
slimScroll
&&
$
(
"
.sidebar
"
).
slimScroll
({
destroy
:
!
0
}).
height
(
"
auto
"
))}},
$
.
AdminLTE
.
pushMenu
=
function
(
a
){
$
(
a
).
click
(
function
(
a
){
a
.
preventDefault
(),
$
(
"
body
"
).
toggleClass
(
"
sidebar-collapse
"
),
$
(
"
body
"
).
toggleClass
(
"
sidebar-open
"
)}),
$
(
"
.content-wrapper
"
).
click
(
function
(){
$
(
window
).
width
()
<=
767
&&
$
(
"
body
"
).
hasClass
(
"
sidebar-open
"
)
&&
$
(
"
body
"
).
removeClass
(
"
sidebar-open
"
)})},
$
.
AdminLTE
.
tree
=
function
(
a
){
$
(
"
li a
"
,
$
(
a
)).
click
(
function
(
a
){
var
b
=
$
(
this
),
c
=
b
.
next
();
if
(
c
.
is
(
"
.treeview-menu
"
)
&&
c
.
is
(
"
:visible
"
))
c
.
slideUp
(
"
normal
"
,
function
(){
c
.
removeClass
(
"
menu-open
"
)}),
c
.
parent
(
"
li
"
).
removeClass
(
"
active
"
);
else
if
(
c
.
is
(
"
.treeview-menu
"
)
&&!
c
.
is
(
"
:visible
"
)){
var
d
=
b
.
parents
(
"
ul
"
).
first
(),
e
=
d
.
find
(
"
ul:visible
"
).
slideUp
(
"
normal
"
);
e
.
removeClass
(
"
menu-open
"
);
var
f
=
b
.
parent
(
"
li
"
);
c
.
slideDown
(
"
normal
"
,
function
(){
c
.
addClass
(
"
menu-open
"
),
d
.
find
(
"
li.active
"
).
removeClass
(
"
active
"
),
f
.
addClass
(
"
active
"
)})}
c
.
is
(
"
.treeview-menu
"
)
&&
a
.
preventDefault
()})},
$
.
AdminLTE
.
boxWidget
=
{
activate
:
function
(){
var
a
=
$
.
AdminLTE
.
options
,
b
=
this
;
$
(
a
.
boxWidgetOptions
.
boxWidgetSelectors
.
collapse
).
click
(
function
(
a
){
a
.
preventDefault
(),
b
.
collapse
(
$
(
this
))}),
$
(
a
.
boxWidgetOptions
.
boxWidgetSelectors
.
remove
).
click
(
function
(
a
){
a
.
preventDefault
(),
b
.
remove
(
$
(
this
))})},
collapse
:
function
(
a
){
var
b
=
a
.
parents
(
"
.box
"
).
first
(),
c
=
b
.
find
(
"
.box-body, .box-footer
"
);
b
.
hasClass
(
"
collapsed-box
"
)?(
a
.
children
(
"
.fa-plus
"
).
removeClass
(
"
fa-plus
"
).
addClass
(
"
fa-minus
"
),
c
.
slideDown
(
300
,
function
(){
b
.
removeClass
(
"
collapsed-box
"
)})):(
a
.
children
(
"
.fa-minus
"
).
removeClass
(
"
fa-minus
"
).
addClass
(
"
fa-plus
"
),
c
.
slideUp
(
300
,
function
(){
b
.
addClass
(
"
collapsed-box
"
)}))},
remove
:
function
(
a
){
var
b
=
a
.
parents
(
"
.box
"
).
first
();
b
.
slideUp
()},
options
:
$
.
AdminLTE
.
options
.
boxWidgetOptions
},
function
(
a
){
a
.
fn
.
boxRefresh
=
function
(
b
){
function
c
(
a
){
a
.
append
(
f
),
e
.
onLoadStart
.
call
(
a
)}
function
d
(
a
){
a
.
find
(
f
).
remove
(),
e
.
onLoadDone
.
call
(
a
)}
var
e
=
a
.
extend
({
trigger
:
"
.refresh-btn
"
,
source
:
""
,
onLoadStart
:
function
(){},
onLoadDone
:
function
(){}},
b
),
f
=
a
(
'
<div class="overlay"></div><div class="loading-img"></div>
'
);
return
this
.
each
(
function
(){
if
(
""
===
e
.
source
)
return
void
(
console
&&
console
.
log
(
"
Please specify a source first - boxRefresh()
"
));
var
b
=
a
(
this
),
f
=
b
.
find
(
e
.
trigger
).
first
();
f
.
click
(
function
(
a
){
a
.
preventDefault
(),
c
(
b
),
b
.
find
(
"
.box-body
"
).
load
(
e
.
source
,
function
(){
d
(
b
)})})})}}(
jQuery
),
function
(
a
){
a
.
fn
.
todolist
=
function
(
b
){
var
c
=
a
.
extend
({
onCheck
:
function
(){},
onUncheck
:
function
(){}},
b
);
return
this
.
each
(
function
(){
"
undefined
"
!=
typeof
a
.
fn
.
iCheck
?(
a
(
"
input
"
,
this
).
on
(
"
ifChecked
"
,
function
(){
var
b
=
a
(
this
).
parents
(
"
li
"
).
first
();
b
.
toggleClass
(
"
done
"
),
c
.
onCheck
.
call
(
b
)}),
a
(
"
input
"
,
this
).
on
(
"
ifUnchecked
"
,
function
(){
var
b
=
a
(
this
).
parents
(
"
li
"
).
first
();
b
.
toggleClass
(
"
done
"
),
c
.
onUncheck
.
call
(
b
)})):
a
(
"
input
"
,
this
).
on
(
"
change
"
,
function
(){
var
b
=
a
(
this
).
parents
(
"
li
"
).
first
();
b
.
toggleClass
(
"
done
"
),
c
.
onCheck
.
call
(
b
)})})}}(
jQuery
);
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录