Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
知鸟1号
AdminLTE
提交
5befe56e
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,发现更多精彩内容 >>
提交
5befe56e
编写于
7月 12, 2015
作者:
D
Dennis Neufeld
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Format dist/*.js files
上级
3f81b245
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
20 addition
and
20 deletion
+20
-20
dist/js/app.js
dist/js/app.js
+5
-5
dist/js/app.min.js
dist/js/app.min.js
+1
-1
dist/js/demo.js
dist/js/demo.js
+10
-10
dist/js/pages/dashboard.js
dist/js/pages/dashboard.js
+2
-2
dist/js/pages/dashboard2.js
dist/js/pages/dashboard2.js
+2
-2
未找到文件。
dist/js/app.js
浏览文件 @
5befe56e
...
...
@@ -41,7 +41,7 @@ $.AdminLTE.options = {
navbarMenuSlimscroll
:
true
,
navbarMenuSlimscrollWidth
:
"
3px
"
,
//The width of the scroll bar
navbarMenuHeight
:
"
200px
"
,
//The height of the inner menu
//General animation speed for JS animated elements such as box collapse/expand and
//General animation speed for JS animated elements such as box collapse/expand and
//sidebar treeview slide up/down. This options accepts an integer as milliseconds,
//'fast', 'normal', or 'slow'
animationSpeed
:
500
,
...
...
@@ -464,7 +464,7 @@ function _init() {
var
bg
=
$
(
"
.control-sidebar-bg
"
);
_this
.
_fix
(
bg
);
//If the body has a fixed layout, make the control sidebar fixed
//If the body has a fixed layout, make the control sidebar fixed
if
(
$
(
'
body
'
).
hasClass
(
'
fixed
'
))
{
_this
.
_fixForFixed
(
sidebar
);
}
else
{
...
...
@@ -481,7 +481,7 @@ function _init() {
if
(
slide
)
{
sidebar
.
addClass
(
'
control-sidebar-open
'
);
}
else
{
//Push the content by adding the open class to the body instead
//Push the content by adding the open class to the body instead
//of the sidebar itself
$
(
'
body
'
).
addClass
(
'
control-sidebar-open
'
);
}
...
...
@@ -534,7 +534,7 @@ function _init() {
$
.
AdminLTE
.
boxWidget
=
{
selectors
:
$
.
AdminLTE
.
options
.
boxWidgetOptions
.
boxWidgetSelectors
,
icons
:
$
.
AdminLTE
.
options
.
boxWidgetOptions
.
boxWidgetIcons
,
animationSpeed
:
$
.
AdminLTE
.
options
.
animationSpeed
,
animationSpeed
:
$
.
AdminLTE
.
options
.
animationSpeed
,
activate
:
function
(
_box
)
{
var
_this
=
this
;
if
(
!
_box
)
{
...
...
@@ -578,7 +578,7 @@ function _init() {
});
}
},
remove
:
function
(
element
)
{
remove
:
function
(
element
)
{
//Find the box parent
var
box
=
element
.
parents
(
"
.box
"
).
first
();
box
.
slideUp
(
this
.
animationSpeed
);
...
...
dist/js/app.min.js
浏览文件 @
5befe56e
...
...
@@ -10,4 +10,4 @@
* @version 2.1.2
* @license MIT <http://opensource.org/licenses/MIT>
*/
"
use strict
"
;
function
_init
(){
$
.
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
();
if
(
$
(
"
body
"
).
hasClass
(
"
fixed
"
))
$
(
"
.content-wrapper, .right-side
"
).
css
(
"
min-height
"
,
b
-
$
(
"
.main-footer
"
).
outerHeight
());
else
{
var
d
;
b
>=
c
?(
$
(
"
.content-wrapper, .right-side
"
).
css
(
"
min-height
"
,
b
-
a
),
d
=
b
-
a
):(
$
(
"
.content-wrapper, .right-side
"
).
css
(
"
min-height
"
,
c
),
d
=
c
);
var
e
=
$
(
$
.
AdminLTE
.
options
.
controlSidebarOptions
.
selector
);
"
undefined
"
!=
typeof
e
&&
e
.
height
()
>
d
&&
$
(
"
.content-wrapper, .right-side
"
).
css
(
"
min-height
"
,
e
.
height
())}},
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
=
{
activate
:
function
(
a
){
var
b
=
$
.
AdminLTE
.
options
.
screenSizes
;
$
(
a
).
on
(
"
click
"
,
function
(
a
){
a
.
preventDefault
(),
$
(
window
).
width
()
>
b
.
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
()
<=
b
.
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
a
=
this
,
b
=
$
.
AdminLTE
.
options
.
screenSizes
.
sm
-
1
;
$
(
"
.main-sidebar
"
).
hover
(
function
(){
$
(
"
body
"
).
hasClass
(
"
sidebar-mini
"
)
&&
$
(
"
body
"
).
hasClass
(
"
sidebar-collapse
"
)
&&
$
(
window
).
width
()
>
b
&&
a
.
expand
()},
function
(){
$
(
"
body
"
).
hasClass
(
"
sidebar-mini
"
)
&&
$
(
"
body
"
).
hasClass
(
"
sidebar-expanded-on-hover
"
)
&&
$
(
window
).
width
()
>
b
&&
a
.
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
(
a
){
var
b
=
this
,
c
=
$
.
AdminLTE
.
options
.
animationSpeed
;
$
(
"
li a
"
,
$
(
a
)).
on
(
"
click
"
,
function
(
a
){
var
d
=
$
(
this
),
e
=
d
.
next
();
if
(
e
.
is
(
"
.treeview-menu
"
)
&&
e
.
is
(
"
:visible
"
))
e
.
slideUp
(
c
,
function
(){
e
.
removeClass
(
"
menu-open
"
)}),
e
.
parent
(
"
li
"
).
removeClass
(
"
active
"
);
else
if
(
e
.
is
(
"
.treeview-menu
"
)
&&!
e
.
is
(
"
:visible
"
)){
var
f
=
d
.
parents
(
"
ul
"
).
first
(),
g
=
f
.
find
(
"
ul:visible
"
).
slideUp
(
c
);
g
.
removeClass
(
"
menu-open
"
);
var
h
=
d
.
parent
(
"
li
"
);
e
.
slideDown
(
c
,
function
(){
e
.
addClass
(
"
menu-open
"
),
f
.
find
(
"
li.active
"
).
removeClass
(
"
active
"
),
h
.
addClass
(
"
active
"
),
b
.
layout
.
fix
()})}
e
.
is
(
"
.treeview-menu
"
)
&&
a
.
preventDefault
()})},
$
.
AdminLTE
.
controlSidebar
=
{
activate
:
function
(){
var
a
=
this
,
b
=
$
.
AdminLTE
.
options
.
controlSidebarOptions
,
c
=
$
(
b
.
selector
),
d
=
$
(
b
.
toggleBtnSelector
);
d
.
on
(
"
click
"
,
function
(
d
){
d
.
preventDefault
(),
c
.
hasClass
(
"
control-sidebar-open
"
)
||
$
(
"
body
"
).
hasClass
(
"
control-sidebar-open
"
)?
a
.
close
(
c
,
b
.
slide
):
a
.
open
(
c
,
b
.
slide
)});
var
e
=
$
(
"
.control-sidebar-bg
"
);
a
.
_fix
(
e
),
$
(
"
body
"
).
hasClass
(
"
fixed
"
)?
a
.
_fixForFixed
(
c
):
$
(
"
.content-wrapper, .right-side
"
).
height
()
<
c
.
height
()
&&
a
.
_fixForContent
(
c
)},
open
:
function
(
a
,
b
){
b
?
a
.
addClass
(
"
control-sidebar-open
"
):
$
(
"
body
"
).
addClass
(
"
control-sidebar-open
"
)},
close
:
function
(
a
,
b
){
b
?
a
.
removeClass
(
"
control-sidebar-open
"
):
$
(
"
body
"
).
removeClass
(
"
control-sidebar-open
"
)},
_fix
:
function
(
a
){
var
b
=
this
;
$
(
"
body
"
).
hasClass
(
"
layout-boxed
"
)?(
a
.
css
(
"
position
"
,
"
absolute
"
),
a
.
height
(
$
(
"
.wrapper
"
).
height
()),
$
(
window
).
resize
(
function
(){
b
.
_fix
(
a
)})):
a
.
css
({
position
:
"
fixed
"
,
height
:
"
auto
"
})},
_fixForFixed
:
function
(
a
){
a
.
css
({
position
:
"
fixed
"
,
"
max-height
"
:
"
100%
"
,
overflow
:
"
auto
"
,
"
padding-bottom
"
:
"
50px
"
})},
_fixForContent
:
function
(
a
){
$
(
"
.content-wrapper, .right-side
"
).
css
(
"
min-height
"
,
a
.
height
())}},
$
.
AdminLTE
.
boxWidget
=
{
selectors
:
$
.
AdminLTE
.
options
.
boxWidgetOptions
.
boxWidgetSelectors
,
icons
:
$
.
AdminLTE
.
options
.
boxWidgetOptions
.
boxWidgetIcons
,
animationSpeed
:
$
.
AdminLTE
.
options
.
animationSpeed
,
activate
:
function
(
a
){
var
b
=
this
;
a
||
(
a
=
document
),
$
(
a
).
find
(
b
.
selectors
.
collapse
).
on
(
"
click
"
,
function
(
a
){
a
.
preventDefault
(),
b
.
collapse
(
$
(
this
))}),
$
(
a
).
find
(
b
.
selectors
.
remove
).
on
(
"
click
"
,
function
(
a
){
a
.
preventDefault
(),
b
.
remove
(
$
(
this
))})},
collapse
:
function
(
a
){
var
b
=
this
,
c
=
a
.
parents
(
"
.box
"
).
first
(),
d
=
c
.
find
(
"
> .box-body, > .box-footer, > form >.box-body, > form > .box-footer
"
);
c
.
hasClass
(
"
collapsed-box
"
)?(
a
.
children
(
"
:first
"
).
removeClass
(
b
.
icons
.
open
).
addClass
(
b
.
icons
.
collapse
),
d
.
slideDown
(
b
.
animationSpeed
,
function
(){
c
.
removeClass
(
"
collapsed-box
"
)})):(
a
.
children
(
"
:first
"
).
removeClass
(
b
.
icons
.
collapse
).
addClass
(
b
.
icons
.
open
),
d
.
slideUp
(
b
.
animationSpeed
,
function
(){
c
.
addClass
(
"
collapsed-box
"
)}))},
remove
:
function
(
a
){
var
b
=
a
.
parents
(
"
.box
"
).
first
();
b
.
slideUp
(
this
.
animationSpeed
)}}}
if
(
"
undefined
"
==
typeof
jQuery
)
throw
new
Error
(
"
AdminLTE requires jQuery
"
);
$
.
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
:
!
0
,
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
(){
"
undefined
"
!=
typeof
AdminLTEOptions
&&
$
.
extend
(
!
0
,
$
.
AdminLTE
.
options
,
AdminLTEOptions
);
var
a
=
$
.
AdminLTE
.
options
;
_init
(),
$
.
AdminLTE
.
layout
.
activate
(),
$
.
AdminLTE
.
tree
(
"
.sidebar
"
),
a
.
enableControlSidebar
&&
$
.
AdminLTE
.
controlSidebar
.
activate
(),
a
.
navbarMenuSlimscroll
&&
"
undefined
"
!=
typeof
$
.
fn
.
slimscroll
&&
$
(
"
.navbar .menu
"
).
slimscroll
({
height
:
a
.
navbarMenuHeight
,
alwaysVisible
:
!
1
,
size
:
a
.
navbarMenuSlimscrollWidth
}).
css
(
"
width
"
,
"
100%
"
),
a
.
sidebarPushMenu
&&
$
.
AdminLTE
.
pushMenu
.
activate
(
a
.
sidebarToggleSelector
),
a
.
enableBSToppltip
&&
$
(
"
body
"
).
tooltip
({
selector
:
a
.
BSTooltipSelector
}),
a
.
enableBoxWidget
&&
$
.
AdminLTE
.
boxWidget
.
activate
(),
a
.
enableFastclick
&&
"
undefined
"
!=
typeof
FastClick
&&
FastClick
.
attach
(
document
.
body
),
a
.
directChat
.
enable
&&
$
(
a
.
directChat
.
contactToggleSelector
).
on
(
"
click
"
,
function
(){
var
a
=
$
(
this
).
parents
(
"
.direct-chat
"
).
first
();
a
.
toggleClass
(
"
direct-chat-contacts-open
"
)}),
$
(
'
.btn-group[data-toggle="btn-toggle"]
'
).
each
(
function
(){
var
a
=
$
(
this
);
$
(
this
).
find
(
"
.btn
"
).
on
(
"
click
"
,
function
(
b
){
a
.
find
(
"
.btn.active
"
).
removeClass
(
"
active
"
),
$
(
this
).
addClass
(
"
active
"
),
b
.
preventDefault
()})})}),
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
(
a
){},
onLoadDone
:
function
(
a
){}},
b
),
f
=
a
(
'
<div class="overlay"><div class="fa fa-refresh fa-spin"></div></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
.
on
(
"
click
"
,
function
(
a
){
a
.
preventDefault
(),
c
(
b
),
b
.
find
(
"
.box-body
"
).
load
(
e
.
source
,
function
(){
d
(
b
)})})})}}(
jQuery
),
function
(
a
){
a
.
fn
.
activateBox
=
function
(){
a
.
AdminLTE
.
boxWidget
.
activate
(
this
)}}(
jQuery
),
function
(
a
){
a
.
fn
.
todolist
=
function
(
b
){
var
c
=
a
.
extend
({
onCheck
:
function
(
a
){},
onUncheck
:
function
(
a
){}},
b
);
return
this
.
each
(
function
(){
"
undefined
"
!=
typeof
a
.
fn
.
iCheck
?(
a
(
"
input
"
,
this
).
on
(
"
ifChecked
"
,
function
(
b
){
var
d
=
a
(
this
).
parents
(
"
li
"
).
first
();
d
.
toggleClass
(
"
done
"
),
c
.
onCheck
.
call
(
d
)}),
a
(
"
input
"
,
this
).
on
(
"
ifUnchecked
"
,
function
(
b
){
var
d
=
a
(
this
).
parents
(
"
li
"
).
first
();
d
.
toggleClass
(
"
done
"
),
c
.
onUncheck
.
call
(
d
)})):
a
(
"
input
"
,
this
).
on
(
"
change
"
,
function
(
b
){
var
d
=
a
(
this
).
parents
(
"
li
"
).
first
();
d
.
toggleClass
(
"
done
"
),
c
.
onCheck
.
call
(
d
)})})}}(
jQuery
);
\ No newline at end of file
"
use strict
"
;
function
_init
(){
$
.
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
();
if
(
$
(
"
body
"
).
hasClass
(
"
fixed
"
))
$
(
"
.content-wrapper, .right-side
"
).
css
(
"
min-height
"
,
b
-
$
(
"
.main-footer
"
).
outerHeight
());
else
{
var
d
;
b
>=
c
?(
$
(
"
.content-wrapper, .right-side
"
).
css
(
"
min-height
"
,
b
-
a
),
d
=
b
-
a
):(
$
(
"
.content-wrapper, .right-side
"
).
css
(
"
min-height
"
,
c
),
d
=
c
);
var
e
=
$
(
$
.
AdminLTE
.
options
.
controlSidebarOptions
.
selector
);
"
undefined
"
!=
typeof
e
&&
e
.
height
()
>
d
&&
$
(
"
.content-wrapper, .right-side
"
).
css
(
"
min-height
"
,
e
.
height
())}},
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
=
{
activate
:
function
(
a
){
var
b
=
$
.
AdminLTE
.
options
.
screenSizes
;
$
(
a
).
on
(
"
click
"
,
function
(
a
){
a
.
preventDefault
(),
$
(
window
).
width
()
>
b
.
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
()
<=
b
.
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
a
=
this
,
b
=
$
.
AdminLTE
.
options
.
screenSizes
.
sm
-
1
;
$
(
"
.main-sidebar
"
).
hover
(
function
(){
$
(
"
body
"
).
hasClass
(
"
sidebar-mini
"
)
&&
$
(
"
body
"
).
hasClass
(
"
sidebar-collapse
"
)
&&
$
(
window
).
width
()
>
b
&&
a
.
expand
()},
function
(){
$
(
"
body
"
).
hasClass
(
"
sidebar-mini
"
)
&&
$
(
"
body
"
).
hasClass
(
"
sidebar-expanded-on-hover
"
)
&&
$
(
window
).
width
()
>
b
&&
a
.
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
(
a
){
var
b
=
this
,
c
=
$
.
AdminLTE
.
options
.
animationSpeed
;
$
(
"
li a
"
,
$
(
a
)).
on
(
"
click
"
,
function
(
a
){
var
d
=
$
(
this
),
e
=
d
.
next
();
if
(
e
.
is
(
"
.treeview-menu
"
)
&&
e
.
is
(
"
:visible
"
))
e
.
slideUp
(
c
,
function
(){
e
.
removeClass
(
"
menu-open
"
)}),
e
.
parent
(
"
li
"
).
removeClass
(
"
active
"
);
else
if
(
e
.
is
(
"
.treeview-menu
"
)
&&!
e
.
is
(
"
:visible
"
)){
var
f
=
d
.
parents
(
"
ul
"
).
first
(),
g
=
f
.
find
(
"
ul:visible
"
).
slideUp
(
c
);
g
.
removeClass
(
"
menu-open
"
);
var
h
=
d
.
parent
(
"
li
"
);
e
.
slideDown
(
c
,
function
(){
e
.
addClass
(
"
menu-open
"
),
f
.
find
(
"
li.active
"
).
removeClass
(
"
active
"
),
h
.
addClass
(
"
active
"
),
b
.
layout
.
fix
()})}
e
.
is
(
"
.treeview-menu
"
)
&&
a
.
preventDefault
()})},
$
.
AdminLTE
.
controlSidebar
=
{
activate
:
function
(){
var
a
=
this
,
b
=
$
.
AdminLTE
.
options
.
controlSidebarOptions
,
c
=
$
(
b
.
selector
),
d
=
$
(
b
.
toggleBtnSelector
);
d
.
on
(
"
click
"
,
function
(
d
){
d
.
preventDefault
(),
c
.
hasClass
(
"
control-sidebar-open
"
)
||
$
(
"
body
"
).
hasClass
(
"
control-sidebar-open
"
)?
a
.
close
(
c
,
b
.
slide
):
a
.
open
(
c
,
b
.
slide
)});
var
e
=
$
(
"
.control-sidebar-bg
"
);
a
.
_fix
(
e
),
$
(
"
body
"
).
hasClass
(
"
fixed
"
)?
a
.
_fixForFixed
(
c
):
$
(
"
.content-wrapper, .right-side
"
).
height
()
<
c
.
height
()
&&
a
.
_fixForContent
(
c
)},
open
:
function
(
a
,
b
){
b
?
a
.
addClass
(
"
control-sidebar-open
"
):
$
(
"
body
"
).
addClass
(
"
control-sidebar-open
"
)},
close
:
function
(
a
,
b
){
b
?
a
.
removeClass
(
"
control-sidebar-open
"
):
$
(
"
body
"
).
removeClass
(
"
control-sidebar-open
"
)},
_fix
:
function
(
a
){
var
b
=
this
;
$
(
"
body
"
).
hasClass
(
"
layout-boxed
"
)?(
a
.
css
(
"
position
"
,
"
absolute
"
),
a
.
height
(
$
(
"
.wrapper
"
).
height
()),
$
(
window
).
resize
(
function
(){
b
.
_fix
(
a
)})):
a
.
css
({
position
:
"
fixed
"
,
height
:
"
auto
"
})},
_fixForFixed
:
function
(
a
){
a
.
css
({
position
:
"
fixed
"
,
"
max-height
"
:
"
100%
"
,
overflow
:
"
auto
"
,
"
padding-bottom
"
:
"
50px
"
})},
_fixForContent
:
function
(
a
){
$
(
"
.content-wrapper, .right-side
"
).
css
(
"
min-height
"
,
a
.
height
())}},
$
.
AdminLTE
.
boxWidget
=
{
selectors
:
$
.
AdminLTE
.
options
.
boxWidgetOptions
.
boxWidgetSelectors
,
icons
:
$
.
AdminLTE
.
options
.
boxWidgetOptions
.
boxWidgetIcons
,
animationSpeed
:
$
.
AdminLTE
.
options
.
animationSpeed
,
activate
:
function
(
a
){
var
b
=
this
;
a
||
(
a
=
document
),
$
(
a
).
find
(
b
.
selectors
.
collapse
).
on
(
"
click
"
,
function
(
a
){
a
.
preventDefault
(),
b
.
collapse
(
$
(
this
))}),
$
(
a
).
find
(
b
.
selectors
.
remove
).
on
(
"
click
"
,
function
(
a
){
a
.
preventDefault
(),
b
.
remove
(
$
(
this
))})},
collapse
:
function
(
a
){
var
b
=
this
,
c
=
a
.
parents
(
"
.box
"
).
first
(),
d
=
c
.
find
(
"
> .box-body, > .box-footer, > form >.box-body, > form > .box-footer
"
);
c
.
hasClass
(
"
collapsed-box
"
)?(
a
.
children
(
"
:first
"
).
removeClass
(
b
.
icons
.
open
).
addClass
(
b
.
icons
.
collapse
),
d
.
slideDown
(
b
.
animationSpeed
,
function
(){
c
.
removeClass
(
"
collapsed-box
"
)})):(
a
.
children
(
"
:first
"
).
removeClass
(
b
.
icons
.
collapse
).
addClass
(
b
.
icons
.
open
),
d
.
slideUp
(
b
.
animationSpeed
,
function
(){
c
.
addClass
(
"
collapsed-box
"
)}))},
remove
:
function
(
a
){
var
b
=
a
.
parents
(
"
.box
"
).
first
();
b
.
slideUp
(
this
.
animationSpeed
)}}}
if
(
"
undefined
"
==
typeof
jQuery
)
throw
new
Error
(
"
AdminLTE requires jQuery
"
);
$
.
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
:
!
0
,
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
(){
"
undefined
"
!=
typeof
AdminLTEOptions
&&
$
.
extend
(
!
0
,
$
.
AdminLTE
.
options
,
AdminLTEOptions
);
var
a
=
$
.
AdminLTE
.
options
;
_init
(),
$
.
AdminLTE
.
layout
.
activate
(),
$
.
AdminLTE
.
tree
(
"
.sidebar
"
),
a
.
enableControlSidebar
&&
$
.
AdminLTE
.
controlSidebar
.
activate
(),
a
.
navbarMenuSlimscroll
&&
"
undefined
"
!=
typeof
$
.
fn
.
slimscroll
&&
$
(
"
.navbar .menu
"
).
slimscroll
({
height
:
a
.
navbarMenuHeight
,
alwaysVisible
:
!
1
,
size
:
a
.
navbarMenuSlimscrollWidth
}).
css
(
"
width
"
,
"
100%
"
),
a
.
sidebarPushMenu
&&
$
.
AdminLTE
.
pushMenu
.
activate
(
a
.
sidebarToggleSelector
),
a
.
enableBSToppltip
&&
$
(
"
body
"
).
tooltip
({
selector
:
a
.
BSTooltipSelector
}),
a
.
enableBoxWidget
&&
$
.
AdminLTE
.
boxWidget
.
activate
(),
a
.
enableFastclick
&&
"
undefined
"
!=
typeof
FastClick
&&
FastClick
.
attach
(
document
.
body
),
a
.
directChat
.
enable
&&
$
(
a
.
directChat
.
contactToggleSelector
).
on
(
"
click
"
,
function
(){
var
a
=
$
(
this
).
parents
(
"
.direct-chat
"
).
first
();
a
.
toggleClass
(
"
direct-chat-contacts-open
"
)}),
$
(
'
.btn-group[data-toggle="btn-toggle"]
'
).
each
(
function
(){
var
a
=
$
(
this
);
$
(
this
).
find
(
"
.btn
"
).
on
(
"
click
"
,
function
(
b
){
a
.
find
(
"
.btn.active
"
).
removeClass
(
"
active
"
),
$
(
this
).
addClass
(
"
active
"
),
b
.
preventDefault
()})})}),
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
(
a
){},
onLoadDone
:
function
(
a
){}},
b
),
f
=
a
(
'
<div class="overlay"><div class="fa fa-refresh fa-spin"></div></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
.
on
(
"
click
"
,
function
(
a
){
a
.
preventDefault
(),
c
(
b
),
b
.
find
(
"
.box-body
"
).
load
(
e
.
source
,
function
(){
d
(
b
)})})})}}(
jQuery
),
function
(
a
){
a
.
fn
.
activateBox
=
function
(){
a
.
AdminLTE
.
boxWidget
.
activate
(
this
)}}(
jQuery
),
function
(
a
){
a
.
fn
.
todolist
=
function
(
b
){
var
c
=
a
.
extend
({
onCheck
:
function
(
a
){},
onUncheck
:
function
(
a
){}},
b
);
return
this
.
each
(
function
(){
"
undefined
"
!=
typeof
a
.
fn
.
iCheck
?(
a
(
"
input
"
,
this
).
on
(
"
ifChecked
"
,
function
(
b
){
var
d
=
a
(
this
).
parents
(
"
li
"
).
first
();
d
.
toggleClass
(
"
done
"
),
c
.
onCheck
.
call
(
d
)}),
a
(
"
input
"
,
this
).
on
(
"
ifUnchecked
"
,
function
(
b
){
var
d
=
a
(
this
).
parents
(
"
li
"
).
first
();
d
.
toggleClass
(
"
done
"
),
c
.
onUncheck
.
call
(
d
)})):
a
(
"
input
"
,
this
).
on
(
"
change
"
,
function
(
b
){
var
d
=
a
(
this
).
parents
(
"
li
"
).
first
();
d
.
toggleClass
(
"
done
"
),
c
.
onCheck
.
call
(
d
)})})}}(
jQuery
);
dist/js/demo.js
浏览文件 @
5befe56e
...
...
@@ -8,7 +8,7 @@
/**
* List of all the available skins
*
*
* @type Array
*/
var
my_skins
=
[
...
...
@@ -212,7 +212,7 @@
/**
* Toggles layout classes
*
*
* @param String cls the layout class to toggle
* @returns void
*/
...
...
@@ -246,7 +246,7 @@
/**
* Store a new settings in the browser
*
*
* @param String name Name of the setting
* @param String val Value of the setting
* @returns void
...
...
@@ -261,7 +261,7 @@
/**
* Get a prestored setting
*
*
* @param String name Name of of the setting
* @returns String The value of the setting | null
*/
...
...
@@ -275,7 +275,7 @@
/**
* Retrieve default settings and apply them to the template
*
*
* @returns void
*/
function
setup
()
{
...
...
@@ -312,14 +312,14 @@
sidebar
.
addClass
(
"
control-sidebar-dark
"
)
}
});
$
(
"
[data-enable='expandOnHover']
"
).
on
(
'
click
'
,
function
()
{
$
(
this
).
attr
(
'
disabled
'
,
true
);
$
(
this
).
attr
(
'
disabled
'
,
true
);
AdminLTE
.
pushMenu
.
expandOnHover
();
if
(
!
$
(
'
body
'
).
hasClass
(
'
sidebar-collapse
'
))
$
(
"
[data-layout='sidebar-collapse']
"
).
click
();
});
// Reset options
if
(
$
(
'
body
'
).
hasClass
(
'
fixed
'
))
{
$
(
"
[data-layout='fixed']
"
).
attr
(
'
checked
'
,
'
checked
'
);
...
...
@@ -330,6 +330,6 @@
if
(
$
(
'
body
'
).
hasClass
(
'
sidebar-collapse
'
))
{
$
(
"
[data-layout='sidebar-collapse']
"
).
attr
(
'
checked
'
,
'
checked
'
);
}
}
})(
jQuery
,
$
.
AdminLTE
);
\ No newline at end of file
})(
jQuery
,
$
.
AdminLTE
);
dist/js/pages/dashboard.js
浏览文件 @
5befe56e
...
...
@@ -17,7 +17,7 @@ $(function () {
zIndex
:
999999
});
$
(
"
.connectedSortable .box-header, .connectedSortable .nav-tabs-custom
"
).
css
(
"
cursor
"
,
"
move
"
);
//jQuery UI sortable for the todo list
$
(
"
.todo-list
"
).
sortable
({
placeholder
:
"
sort-highlight
"
,
...
...
@@ -231,4 +231,4 @@ $(function () {
}
});
});
\ No newline at end of file
});
dist/js/pages/dashboard2.js
浏览文件 @
5befe56e
...
...
@@ -158,7 +158,7 @@ $(function () {
tooltipTemplate
:
"
<%=value %> <%=label%> users
"
};
//Create pie or douhnut chart
// You can switch between pie and douhnut using the method below.
// You can switch between pie and douhnut using the method below.
pieChart
.
Doughnut
(
PieData
,
pieOptions
);
//-----------------
//- END PIE CHART -
...
...
@@ -271,4 +271,4 @@ $(function () {
spotColor
:
$this
.
data
(
'
spotcolor
'
)
});
});
});
\ No newline at end of file
});
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录