Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
知鸟1号
AdminLTE
提交
d9cc6e3d
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,发现更多精彩内容 >>
提交
d9cc6e3d
编写于
5月 07, 2015
作者:
A
Abdullah Almsaeed
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #400 from suvjunmd/datatables
Updated DataTables to 1.10.7
上级
72a190f3
1ea3e97d
变更
30
展开全部
隐藏空白更改
内联
并排
Showing
30 changed file
with
1108 addition
and
308 deletion
+1108
-308
plugins/datatables/dataTables.bootstrap.js
plugins/datatables/dataTables.bootstrap.js
+24
-4
plugins/datatables/dataTables.bootstrap.min.js
plugins/datatables/dataTables.bootstrap.min.js
+4
-4
plugins/datatables/extensions/Responsive/examples/child-rows/column-control.html
...nsions/Responsive/examples/child-rows/column-control.html
+1
-0
plugins/datatables/extensions/Responsive/examples/child-rows/custom-renderer.html
...sions/Responsive/examples/child-rows/custom-renderer.html
+1
-0
plugins/datatables/extensions/Responsive/examples/child-rows/disable-child-rows.html
...ns/Responsive/examples/child-rows/disable-child-rows.html
+1
-0
plugins/datatables/extensions/Responsive/examples/child-rows/right-column.html
...tensions/Responsive/examples/child-rows/right-column.html
+1
-0
plugins/datatables/extensions/Responsive/examples/child-rows/whole-row-control.html
...ons/Responsive/examples/child-rows/whole-row-control.html
+1
-0
plugins/datatables/extensions/Responsive/examples/display-control/auto.html
.../extensions/Responsive/examples/display-control/auto.html
+1
-0
plugins/datatables/extensions/Responsive/examples/display-control/classes.html
...tensions/Responsive/examples/display-control/classes.html
+1
-0
plugins/datatables/extensions/Responsive/examples/display-control/complexHeader.html
...ns/Responsive/examples/display-control/complexHeader.html
+708
-0
plugins/datatables/extensions/Responsive/examples/display-control/fixedHeader.html
...ions/Responsive/examples/display-control/fixedHeader.html
+1
-0
plugins/datatables/extensions/Responsive/examples/display-control/index.html
...extensions/Responsive/examples/display-control/index.html
+1
-0
plugins/datatables/extensions/Responsive/examples/display-control/init-classes.html
...ons/Responsive/examples/display-control/init-classes.html
+1
-0
plugins/datatables/extensions/Responsive/examples/index.html
plugins/datatables/extensions/Responsive/examples/index.html
+1
-0
plugins/datatables/extensions/Responsive/examples/initialisation/ajax.html
...s/extensions/Responsive/examples/initialisation/ajax.html
+1
-0
plugins/datatables/extensions/Responsive/examples/initialisation/className.html
...ensions/Responsive/examples/initialisation/className.html
+1
-0
plugins/datatables/extensions/Responsive/examples/initialisation/default.html
...xtensions/Responsive/examples/initialisation/default.html
+1
-0
plugins/datatables/extensions/Responsive/examples/initialisation/new.html
...es/extensions/Responsive/examples/initialisation/new.html
+1
-0
plugins/datatables/extensions/Responsive/examples/initialisation/option.html
...extensions/Responsive/examples/initialisation/option.html
+1
-0
plugins/datatables/extensions/Responsive/examples/styling/bootstrap.html
...les/extensions/Responsive/examples/styling/bootstrap.html
+1
-0
plugins/datatables/extensions/Responsive/examples/styling/compact.html
...ables/extensions/Responsive/examples/styling/compact.html
+1
-0
plugins/datatables/extensions/Responsive/examples/styling/foundation.html
...es/extensions/Responsive/examples/styling/foundation.html
+1
-0
plugins/datatables/extensions/Responsive/examples/styling/scrolling.html
...les/extensions/Responsive/examples/styling/scrolling.html
+1
-0
plugins/datatables/extensions/Responsive/js/dataTables.responsive.js
...atables/extensions/Responsive/js/dataTables.responsive.js
+16
-7
plugins/datatables/extensions/Responsive/js/dataTables.responsive.min.js
...les/extensions/Responsive/js/dataTables.responsive.min.js
+9
-8
plugins/datatables/jquery.dataTables.css
plugins/datatables/jquery.dataTables.css
+34
-66
plugins/datatables/jquery.dataTables.js
plugins/datatables/jquery.dataTables.js
+134
-62
plugins/datatables/jquery.dataTables.min.css
plugins/datatables/jquery.dataTables.min.css
+1
-1
plugins/datatables/jquery.dataTables.min.js
plugins/datatables/jquery.dataTables.min.js
+150
-148
plugins/datatables/jquery.dataTables_themeroller.css
plugins/datatables/jquery.dataTables_themeroller.css
+8
-8
未找到文件。
plugins/datatables/dataTables.bootstrap.js
浏览文件 @
d9cc6e3d
...
...
@@ -39,7 +39,7 @@ DataTable.ext.renderer.pageButton.bootstrap = function ( settings, host, idx, bu
var
api
=
new
DataTable
.
Api
(
settings
);
var
classes
=
settings
.
oClasses
;
var
lang
=
settings
.
oLanguage
.
oPaginate
;
var
btnDisplay
,
btnClass
;
var
btnDisplay
,
btnClass
,
counter
=
0
;
var
attach
=
function
(
container
,
buttons
)
{
var
i
,
ien
,
node
,
button
;
...
...
@@ -100,14 +100,15 @@ DataTable.ext.renderer.pageButton.bootstrap = function ( settings, host, idx, bu
if
(
btnDisplay
)
{
node
=
$
(
'
<li>
'
,
{
'
class
'
:
classes
.
sPageButton
+
'
'
+
btnClass
,
'
aria-controls
'
:
settings
.
sTableId
,
'
tabindex
'
:
settings
.
iTabIndex
,
'
id
'
:
idx
===
0
&&
typeof
button
===
'
string
'
?
settings
.
sTableId
+
'
_
'
+
button
:
null
}
)
.
append
(
$
(
'
<a>
'
,
{
'
href
'
:
'
#
'
'
href
'
:
'
#
'
,
'
aria-controls
'
:
settings
.
sTableId
,
'
data-dt-idx
'
:
counter
,
'
tabindex
'
:
settings
.
iTabIndex
}
)
.
html
(
btnDisplay
)
)
...
...
@@ -116,15 +117,34 @@ DataTable.ext.renderer.pageButton.bootstrap = function ( settings, host, idx, bu
settings
.
oApi
.
_fnBindAction
(
node
,
{
action
:
button
},
clickHandler
);
counter
++
;
}
}
}
};
// IE9 throws an 'unknown error' if document.activeElement is used
// inside an iframe or frame.
var
activeEl
;
try
{
// Because this approach is destroying and recreating the paging
// elements, focus is lost on the select button which is bad for
// accessibility. So we want to restore focus once the draw has
// completed
activeEl
=
$
(
document
.
activeElement
).
data
(
'
dt-idx
'
);
}
catch
(
e
)
{}
attach
(
$
(
host
).
empty
().
html
(
'
<ul class="pagination"/>
'
).
children
(
'
ul
'
),
buttons
);
if
(
activeEl
)
{
$
(
host
).
find
(
'
[data-dt-idx=
'
+
activeEl
+
'
]
'
).
focus
();
}
};
...
...
plugins/datatables/dataTables.bootstrap.min.js
浏览文件 @
d9cc6e3d
...
...
@@ -2,7 +2,7 @@
DataTables Bootstrap 3 integration
©2011-2014 SpryMedia Ltd - datatables.net/license
*/
(
function
(
){
var
f
=
function
(
c
,
b
){
c
.
extend
(
!
0
,
b
.
defaults
,{
dom
:
"
<'row'<'col-sm-6'l><'col-sm-6'f>><'row'<'col-sm-12'tr>><'row'<'col-sm-5'i><'col-sm-7'p>>
"
,
renderer
:
"
bootstrap
"
});
c
.
extend
(
b
.
ext
.
classes
,{
sWrapper
:
"
dataTables_wrapper form-inline dt-bootstrap
"
,
sFilterInput
:
"
form-control input-sm
"
,
sLengthSelect
:
"
form-control input-sm
"
});
b
.
ext
.
renderer
.
pageButton
.
bootstrap
=
function
(
g
,
f
,
p
,
k
,
h
,
l
){
var
q
=
new
b
.
Api
(
g
),
r
=
g
.
oClasses
,
i
=
g
.
oLanguage
.
oPaginate
,
d
,
e
,
o
=
function
(
b
,
f
){
var
j
,
m
,
n
,
a
,
k
=
function
(
a
){
a
.
preventDefault
();
c
(
a
.
currentTarget
).
hasClass
(
"
disabled
"
)
||
q
.
page
(
a
.
data
.
action
).
draw
(
!
1
)};
j
=
0
;
for
(
m
=
f
.
length
;
j
<
m
;
j
++
)
if
(
a
=
f
[
j
],
c
.
isArray
(
a
))
o
(
b
,
a
);
else
{
e
=
d
=
""
;
switch
(
a
){
case
"
ellipsis
"
:
d
=
"
…
"
;
e
=
"
disabled
"
;
break
;
case
"
first
"
:
d
=
i
.
sFirst
;
e
=
a
+
(
0
<
h
?
""
:
"
disabled
"
);
break
;
case
"
previous
"
:
d
=
i
.
sPrevious
;
e
=
a
+
(
0
<
h
?
""
:
"
disabled
"
);
break
;
case
"
next
"
:
d
=
i
.
sNext
;
e
=
a
+
(
h
<
l
-
1
?
""
:
"
disabled
"
);
break
;
case
"
last
"
:
d
=
i
.
sLast
;
e
=
a
+
(
h
<
l
-
1
?
""
:
"
disabled
"
);
break
;
default
:
d
=
a
+
1
,
e
=
h
===
a
?
"
active
"
:
""
}
d
&&
(
n
=
c
(
"
<li>
"
,{
"
class
"
:
r
.
sPageButton
+
"
"
+
e
,
"
aria-controls
"
:
g
.
sTableId
,
tabindex
:
g
.
iTabIndex
,
id
:
0
===
p
&&
"
string
"
===
typeof
a
?
g
.
sTableId
+
"
_
"
+
a
:
null
}).
append
(
c
(
"
<a>
"
,{
href
:
"
#
"
}).
html
(
d
)).
appendTo
(
b
),
g
.
oApi
.
_fnBindAction
(
n
,{
action
:
a
},
k
))}};
o
(
c
(
f
).
empty
().
html
(
'
<ul class="pagination"/>
'
).
children
(
"
ul
"
),
k
)};
b
.
TableTools
&&
(
c
.
extend
(
!
0
,
b
.
TableTools
.
classes
,{
container
:
"
DTTT btn-group
"
,
buttons
:{
normal
:
"
btn btn-default
"
,
disabled
:
"
disabled
"
},
collection
:{
container
:
"
DTTT_dropdown dropdown-menu
"
,
buttons
:{
normal
:
""
,
disabled
:
"
disabled
"
}},
print
:{
info
:
"
DTTT_print_info
"
},
select
:{
row
:
"
active
"
}}),
c
.
extend
(
!
0
,
b
.
TableTools
.
DEFAULTS
.
oTags
,{
collection
:{
container
:
"
ul
"
,
button
:
"
li
"
,
liner
:
"
a
"
}}))};
"
function
"
===
typeof
define
&&
define
.
amd
?
define
([
"
jquery
"
,
"
datatables
"
],
f
):
"
object
"
===
typeof
exports
?
f
(
require
(
"
jquery
"
),
require
(
"
datatables
"
)):
jQuery
&&
f
(
jQuery
,
jQuery
.
fn
.
dataTable
)})(
window
,
document
);
(
function
(
l
,
q
){
var
e
=
function
(
b
,
c
){
b
.
extend
(
!
0
,
c
.
defaults
,{
dom
:
"
<'row'<'col-sm-6'l><'col-sm-6'f>><'row'<'col-sm-12'tr>><'row'<'col-sm-5'i><'col-sm-7'p>>
"
,
renderer
:
"
bootstrap
"
});
b
.
extend
(
c
.
ext
.
classes
,{
sWrapper
:
"
dataTables_wrapper form-inline dt-bootstrap
"
,
sFilterInput
:
"
form-control input-sm
"
,
sLengthSelect
:
"
form-control input-sm
"
});
c
.
ext
.
renderer
.
pageButton
.
bootstrap
=
function
(
g
,
e
,
r
,
s
,
i
,
m
){
var
t
=
new
c
.
Api
(
g
),
u
=
g
.
oClasses
,
j
=
g
.
oLanguage
.
oPaginate
,
d
,
f
,
n
=
0
,
p
=
function
(
c
,
e
){
var
k
,
h
,
o
,
a
,
l
=
function
(
a
){
a
.
preventDefault
();
b
(
a
.
currentTarget
).
hasClass
(
"
disabled
"
)
||
t
.
page
(
a
.
data
.
action
).
draw
(
!
1
)};
k
=
0
;
for
(
h
=
e
.
length
;
k
<
h
;
k
++
)
if
(
a
=
e
[
k
],
b
.
isArray
(
a
))
p
(
c
,
a
);
else
{
f
=
d
=
""
;
switch
(
a
){
case
"
ellipsis
"
:
d
=
"
…
"
;
f
=
"
disabled
"
;
break
;
case
"
first
"
:
d
=
j
.
sFirst
;
f
=
a
+
(
0
<
i
?
""
:
"
disabled
"
);
break
;
case
"
previous
"
:
d
=
j
.
sPrevious
;
f
=
a
+
(
0
<
i
?
""
:
"
disabled
"
);
break
;
case
"
next
"
:
d
=
j
.
sNext
;
f
=
a
+
(
i
<
m
-
1
?
""
:
"
disabled
"
);
break
;
case
"
last
"
:
d
=
j
.
sLast
;
f
=
a
+
(
i
<
m
-
1
?
""
:
"
disabled
"
);
break
;
default
:
d
=
a
+
1
,
f
=
i
===
a
?
"
active
"
:
""
}
d
&&
(
o
=
b
(
"
<li>
"
,{
"
class
"
:
u
.
sPageButton
+
"
"
+
f
,
id
:
0
===
r
&&
"
string
"
===
typeof
a
?
g
.
sTableId
+
"
_
"
+
a
:
null
}).
append
(
b
(
"
<a>
"
,{
href
:
"
#
"
,
"
aria-controls
"
:
g
.
sTableId
,
"
data-dt-idx
"
:
n
,
tabindex
:
g
.
iTabIndex
}).
html
(
d
)).
appendTo
(
c
),
g
.
oApi
.
_fnBindAction
(
o
,{
action
:
a
},
l
),
n
++
)}},
h
;
try
{
h
=
b
(
q
.
activeElement
).
data
(
"
dt-idx
"
)}
catch
(
l
){}
p
(
b
(
e
).
empty
().
html
(
'
<ul class="pagination"/>
'
).
children
(
"
ul
"
),
s
);
h
&&
b
(
e
).
find
(
"
[data-dt-idx=
"
+
h
+
"
]
"
).
focus
()};
c
.
TableTools
&&
(
b
.
extend
(
!
0
,
c
.
TableTools
.
classes
,{
container
:
"
DTTT btn-group
"
,
buttons
:{
normal
:
"
btn btn-default
"
,
disabled
:
"
disabled
"
},
collection
:{
container
:
"
DTTT_dropdown dropdown-menu
"
,
buttons
:{
normal
:
""
,
disabled
:
"
disabled
"
}},
print
:{
info
:
"
DTTT_print_info
"
},
select
:{
row
:
"
active
"
}}),
b
.
extend
(
!
0
,
c
.
TableTools
.
DEFAULTS
.
oTags
,{
collection
:{
container
:
"
ul
"
,
button
:
"
li
"
,
liner
:
"
a
"
}}))};
"
function
"
===
typeof
define
&&
define
.
amd
?
define
([
"
jquery
"
,
"
datatables
"
],
e
):
"
object
"
===
typeof
exports
?
e
(
require
(
"
jquery
"
),
require
(
"
datatables
"
)):
jQuery
&&
e
(
jQuery
,
jQuery
.
fn
.
dataTable
)})(
window
,
document
);
plugins/datatables/extensions/Responsive/examples/child-rows/column-control.html
浏览文件 @
d9cc6e3d
...
...
@@ -823,6 +823,7 @@ $(document).ready(function() {
<li><a
href=
"../display-control/classes.html"
>
Class control
</a></li>
<li><a
href=
"../display-control/init-classes.html"
>
Assigned class control
</a></li>
<li><a
href=
"../display-control/fixedHeader.html"
>
With FixedHeader
</a></li>
<li><a
href=
"../display-control/complexHeader.html"
>
Complex headers (rowspan / colspan)
</a></li>
</ul>
</div>
...
...
plugins/datatables/extensions/Responsive/examples/child-rows/custom-renderer.html
浏览文件 @
d9cc6e3d
...
...
@@ -832,6 +832,7 @@ $(document).ready(function() {
<li><a
href=
"../display-control/classes.html"
>
Class control
</a></li>
<li><a
href=
"../display-control/init-classes.html"
>
Assigned class control
</a></li>
<li><a
href=
"../display-control/fixedHeader.html"
>
With FixedHeader
</a></li>
<li><a
href=
"../display-control/complexHeader.html"
>
Complex headers (rowspan / colspan)
</a></li>
</ul>
</div>
...
...
plugins/datatables/extensions/Responsive/examples/child-rows/disable-child-rows.html
浏览文件 @
d9cc6e3d
...
...
@@ -788,6 +788,7 @@ $(document).ready(function() {
<li><a
href=
"../display-control/classes.html"
>
Class control
</a></li>
<li><a
href=
"../display-control/init-classes.html"
>
Assigned class control
</a></li>
<li><a
href=
"../display-control/fixedHeader.html"
>
With FixedHeader
</a></li>
<li><a
href=
"../display-control/complexHeader.html"
>
Complex headers (rowspan / colspan)
</a></li>
</ul>
</div>
...
...
plugins/datatables/extensions/Responsive/examples/child-rows/right-column.html
浏览文件 @
d9cc6e3d
...
...
@@ -819,6 +819,7 @@ $(document).ready(function() {
<li><a
href=
"../display-control/classes.html"
>
Class control
</a></li>
<li><a
href=
"../display-control/init-classes.html"
>
Assigned class control
</a></li>
<li><a
href=
"../display-control/fixedHeader.html"
>
With FixedHeader
</a></li>
<li><a
href=
"../display-control/complexHeader.html"
>
Complex headers (rowspan / colspan)
</a></li>
</ul>
</div>
...
...
plugins/datatables/extensions/Responsive/examples/child-rows/whole-row-control.html
浏览文件 @
d9cc6e3d
...
...
@@ -822,6 +822,7 @@ $(document).ready(function() {
<li><a
href=
"../display-control/classes.html"
>
Class control
</a></li>
<li><a
href=
"../display-control/init-classes.html"
>
Assigned class control
</a></li>
<li><a
href=
"../display-control/fixedHeader.html"
>
With FixedHeader
</a></li>
<li><a
href=
"../display-control/complexHeader.html"
>
Complex headers (rowspan / colspan)
</a></li>
</ul>
</div>
...
...
plugins/datatables/extensions/Responsive/examples/display-control/auto.html
浏览文件 @
d9cc6e3d
...
...
@@ -782,6 +782,7 @@ $(document).ready(function() {
<li><a
href=
"./classes.html"
>
Class control
</a></li>
<li><a
href=
"./init-classes.html"
>
Assigned class control
</a></li>
<li><a
href=
"./fixedHeader.html"
>
With FixedHeader
</a></li>
<li><a
href=
"./complexHeader.html"
>
Complex headers (rowspan / colspan)
</a></li>
</ul>
</div>
...
...
plugins/datatables/extensions/Responsive/examples/display-control/classes.html
浏览文件 @
d9cc6e3d
...
...
@@ -216,6 +216,7 @@ $(document).ready(function() {
<li
class=
"active"
><a
href=
"./classes.html"
>
Class control
</a></li>
<li><a
href=
"./init-classes.html"
>
Assigned class control
</a></li>
<li><a
href=
"./fixedHeader.html"
>
With FixedHeader
</a></li>
<li><a
href=
"./complexHeader.html"
>
Complex headers (rowspan / colspan)
</a></li>
</ul>
</div>
...
...
plugins/datatables/extensions/Responsive/examples/display-control/complexHeader.html
0 → 100644
浏览文件 @
d9cc6e3d
此差异已折叠。
点击以展开。
plugins/datatables/extensions/Responsive/examples/display-control/fixedHeader.html
浏览文件 @
d9cc6e3d
...
...
@@ -794,6 +794,7 @@ $(document).ready(function() {
<li><a
href=
"./classes.html"
>
Class control
</a></li>
<li><a
href=
"./init-classes.html"
>
Assigned class control
</a></li>
<li
class=
"active"
><a
href=
"./fixedHeader.html"
>
With FixedHeader
</a></li>
<li><a
href=
"./complexHeader.html"
>
Complex headers (rowspan / colspan)
</a></li>
</ul>
</div>
...
...
plugins/datatables/extensions/Responsive/examples/display-control/index.html
浏览文件 @
d9cc6e3d
...
...
@@ -45,6 +45,7 @@
<li><a
href=
"./classes.html"
>
Class control
</a></li>
<li><a
href=
"./init-classes.html"
>
Assigned class control
</a></li>
<li><a
href=
"./fixedHeader.html"
>
With FixedHeader
</a></li>
<li><a
href=
"./complexHeader.html"
>
Complex headers (rowspan / colspan)
</a></li>
</ul>
</div>
</div>
...
...
plugins/datatables/extensions/Responsive/examples/display-control/init-classes.html
浏览文件 @
d9cc6e3d
...
...
@@ -184,6 +184,7 @@ $(document).ready(function() {
<li><a
href=
"./classes.html"
>
Class control
</a></li>
<li
class=
"active"
><a
href=
"./init-classes.html"
>
Assigned class control
</a></li>
<li><a
href=
"./fixedHeader.html"
>
With FixedHeader
</a></li>
<li><a
href=
"./complexHeader.html"
>
Complex headers (rowspan / colspan)
</a></li>
</ul>
</div>
...
...
plugins/datatables/extensions/Responsive/examples/index.html
浏览文件 @
d9cc6e3d
...
...
@@ -55,6 +55,7 @@
<li><a
href=
"./display-control/classes.html"
>
Class control
</a></li>
<li><a
href=
"./display-control/init-classes.html"
>
Assigned class control
</a></li>
<li><a
href=
"./display-control/fixedHeader.html"
>
With FixedHeader
</a></li>
<li><a
href=
"./display-control/complexHeader.html"
>
Complex headers (rowspan / colspan)
</a></li>
</ul>
</div>
...
...
plugins/datatables/extensions/Responsive/examples/initialisation/ajax.html
浏览文件 @
d9cc6e3d
...
...
@@ -179,6 +179,7 @@ $(document).ready(function() {
<li><a
href=
"../display-control/classes.html"
>
Class control
</a></li>
<li><a
href=
"../display-control/init-classes.html"
>
Assigned class control
</a></li>
<li><a
href=
"../display-control/fixedHeader.html"
>
With FixedHeader
</a></li>
<li><a
href=
"../display-control/complexHeader.html"
>
Complex headers (rowspan / colspan)
</a></li>
</ul>
</div>
...
...
plugins/datatables/extensions/Responsive/examples/initialisation/className.html
浏览文件 @
d9cc6e3d
...
...
@@ -781,6 +781,7 @@ $(document).ready(function() {
<li><a
href=
"../display-control/classes.html"
>
Class control
</a></li>
<li><a
href=
"../display-control/init-classes.html"
>
Assigned class control
</a></li>
<li><a
href=
"../display-control/fixedHeader.html"
>
With FixedHeader
</a></li>
<li><a
href=
"../display-control/complexHeader.html"
>
Complex headers (rowspan / colspan)
</a></li>
</ul>
</div>
...
...
plugins/datatables/extensions/Responsive/examples/initialisation/default.html
浏览文件 @
d9cc6e3d
...
...
@@ -791,6 +791,7 @@ $(document).ready(function() {
<li><a
href=
"../display-control/classes.html"
>
Class control
</a></li>
<li><a
href=
"../display-control/init-classes.html"
>
Assigned class control
</a></li>
<li><a
href=
"../display-control/fixedHeader.html"
>
With FixedHeader
</a></li>
<li><a
href=
"../display-control/complexHeader.html"
>
Complex headers (rowspan / colspan)
</a></li>
</ul>
</div>
...
...
plugins/datatables/extensions/Responsive/examples/initialisation/new.html
浏览文件 @
d9cc6e3d
...
...
@@ -790,6 +790,7 @@ $(document).ready(function() {
<li><a
href=
"../display-control/classes.html"
>
Class control
</a></li>
<li><a
href=
"../display-control/init-classes.html"
>
Assigned class control
</a></li>
<li><a
href=
"../display-control/fixedHeader.html"
>
With FixedHeader
</a></li>
<li><a
href=
"../display-control/complexHeader.html"
>
Complex headers (rowspan / colspan)
</a></li>
</ul>
</div>
...
...
plugins/datatables/extensions/Responsive/examples/initialisation/option.html
浏览文件 @
d9cc6e3d
...
...
@@ -789,6 +789,7 @@ $(document).ready(function() {
<li><a
href=
"../display-control/classes.html"
>
Class control
</a></li>
<li><a
href=
"../display-control/init-classes.html"
>
Assigned class control
</a></li>
<li><a
href=
"../display-control/fixedHeader.html"
>
With FixedHeader
</a></li>
<li><a
href=
"../display-control/complexHeader.html"
>
Complex headers (rowspan / colspan)
</a></li>
</ul>
</div>
...
...
plugins/datatables/extensions/Responsive/examples/styling/bootstrap.html
浏览文件 @
d9cc6e3d
...
...
@@ -800,6 +800,7 @@ $(document).ready(function() {
<li><a
href=
"../display-control/classes.html"
>
Class control
</a></li>
<li><a
href=
"../display-control/init-classes.html"
>
Assigned class control
</a></li>
<li><a
href=
"../display-control/fixedHeader.html"
>
With FixedHeader
</a></li>
<li><a
href=
"../display-control/complexHeader.html"
>
Complex headers (rowspan / colspan)
</a></li>
</ul>
</div>
...
...
plugins/datatables/extensions/Responsive/examples/styling/compact.html
浏览文件 @
d9cc6e3d
...
...
@@ -785,6 +785,7 @@ $(document).ready(function() {
<li><a
href=
"../display-control/classes.html"
>
Class control
</a></li>
<li><a
href=
"../display-control/init-classes.html"
>
Assigned class control
</a></li>
<li><a
href=
"../display-control/fixedHeader.html"
>
With FixedHeader
</a></li>
<li><a
href=
"../display-control/complexHeader.html"
>
Complex headers (rowspan / colspan)
</a></li>
</ul>
</div>
...
...
plugins/datatables/extensions/Responsive/examples/styling/foundation.html
浏览文件 @
d9cc6e3d
...
...
@@ -791,6 +791,7 @@ $(document).ready(function() {
<li><a
href=
"../display-control/classes.html"
>
Class control
</a></li>
<li><a
href=
"../display-control/init-classes.html"
>
Assigned class control
</a></li>
<li><a
href=
"../display-control/fixedHeader.html"
>
With FixedHeader
</a></li>
<li><a
href=
"../display-control/complexHeader.html"
>
Complex headers (rowspan / colspan)
</a></li>
</ul>
</div>
...
...
plugins/datatables/extensions/Responsive/examples/styling/scrolling.html
浏览文件 @
d9cc6e3d
...
...
@@ -795,6 +795,7 @@ $(document).ready(function() {
<li><a
href=
"../display-control/classes.html"
>
Class control
</a></li>
<li><a
href=
"../display-control/init-classes.html"
>
Assigned class control
</a></li>
<li><a
href=
"../display-control/fixedHeader.html"
>
With FixedHeader
</a></li>
<li><a
href=
"../display-control/complexHeader.html"
>
Complex headers (rowspan / colspan)
</a></li>
</ul>
</div>
...
...
plugins/datatables/extensions/Responsive/js/dataTables.responsive.js
浏览文件 @
d9cc6e3d
/*! Responsive 1.0.
5
/*! Responsive 1.0.
6
* 2014-2015 SpryMedia Ltd - datatables.net/license
*/
/**
* @summary Responsive
* @description Responsive tables plug-in for DataTables
* @version 1.0.
5
* @version 1.0.
6
* @file dataTables.responsive.js
* @author SpryMedia Ltd (www.sprymedia.co.uk)
* @contact www.sprymedia.co.uk/contact
...
...
@@ -646,14 +646,25 @@ Responsive.prototype = {
.
append
(
cells
)
.
appendTo
(
clonedHeader
);
// In the inline case extra padding is applied to the first column to
// give space for the show / hide icon. We need to use this in the
// calculation
if
(
this
.
c
.
details
.
type
===
'
inline
'
)
{
$
(
clonedTable
).
addClass
(
'
dtr-inline collapsed
'
);
}
var
inserted
=
$
(
'
<div/>
'
)
.
css
(
{
width
:
1
,
height
:
1
,
overflow
:
'
hidden
'
}
)
.
append
(
clonedTable
)
.
insertBefore
(
dt
.
table
().
node
()
);
.
append
(
clonedTable
);
// Remove columns which are not to be included
inserted
.
find
(
'
th.never, td.never
'
).
remove
();
inserted
.
insertBefore
(
dt
.
table
().
node
()
);
// The cloned header now contains the smallest that each column can be
dt
.
columns
().
eq
(
0
).
each
(
function
(
idx
)
{
...
...
@@ -815,7 +826,7 @@ Api.register( 'responsive.recalc()', function () {
* @name Responsive.version
* @static
*/
Responsive
.
version
=
'
1.0.
5
'
;
Responsive
.
version
=
'
1.0.
6
'
;
$
.
fn
.
dataTable
.
Responsive
=
Responsive
;
...
...
@@ -833,8 +844,6 @@ $(document).on( 'init.dt.dtr', function (e, settings, json) {
settings
.
oInit
.
responsive
||
DataTable
.
defaults
.
responsive
)
{
console
.
log
(
e
.
namespace
);
var
init
=
settings
.
oInit
.
responsive
;
if
(
init
!==
false
)
{
...
...
plugins/datatables/extensions/Responsive/js/dataTables.responsive.min.js
浏览文件 @
d9cc6e3d
/*!
Responsive 1.0.
5
Responsive 1.0.
6
2014-2015 SpryMedia Ltd - datatables.net/license
*/
(
function
(
n
,
p
){
var
o
=
function
(
e
,
k
){
var
h
=
function
(
d
,
a
){
if
(
!
k
.
versionCheck
||!
k
.
versionCheck
(
"
1.10.1
"
))
throw
"
DataTables Responsive requires DataTables 1.10.1 or newer
"
;
this
.
s
=
{
dt
:
new
k
.
Api
(
d
),
columns
:[]};
this
.
s
.
dt
.
settings
()[
0
].
responsive
||
(
a
&&
"
string
"
===
typeof
a
.
details
&&
(
a
.
details
=
{
type
:
a
.
details
}),
this
.
c
=
e
.
extend
(
!
0
,{},
h
.
defaults
,
k
.
defaults
.
responsive
,
a
),
d
.
responsive
=
this
,
this
.
_constructor
())};
h
.
prototype
=
{
_constructor
:
function
(){
var
d
=
this
,
a
=
this
.
s
.
dt
;
a
.
settings
()[
0
].
_responsive
=
this
;
e
(
n
).
on
(
"
resize.dtr orientationchange.dtr
"
,
a
.
settings
()[
0
].
oApi
.
_fnThrottle
(
function
(){
d
.
_resize
()}));
a
.
on
(
"
destroy.dtr
"
,
function
(){
e
(
n
).
off
(
"
resize.dtr orientationchange.dtr draw.dtr
"
)});
this
.
c
.
breakpoints
.
sort
(
function
(
a
,
d
){
return
a
.
width
<
d
.
width
?
1
:
a
.
width
>
d
.
width
?
-
1
:
0
});
this
.
_classLogic
();
this
.
_resizeAuto
();
var
c
=
this
.
c
.
details
;
c
.
type
&&
(
d
.
_detailsInit
(),
this
.
_detailsVis
(),
a
.
on
(
"
column-visibility.dtr
"
,
function
(){
d
.
_detailsVis
()}),
a
.
on
(
"
draw.dtr
"
,
function
(){
a
.
rows
({
page
:
"
current
"
}).
iterator
(
"
row
"
,
function
(
b
,
c
){
var
f
=
a
.
row
(
c
);
if
(
f
.
child
.
isShown
()){
var
i
=
a
.
settings
()[
0
].
oApi
.
_fnThrottle
(
function
(){
d
.
_resize
()}));
a
.
on
(
"
destroy.dtr
"
,
function
(){
e
(
n
).
off
(
"
resize.dtr orientationchange.dtr draw.dtr
"
)});
this
.
c
.
breakpoints
.
sort
(
function
(
a
,
c
){
return
a
.
width
<
c
.
width
?
1
:
a
.
width
>
c
.
width
?
-
1
:
0
});
this
.
_classLogic
();
this
.
_resizeAuto
();
var
c
=
this
.
c
.
details
;
c
.
type
&&
(
d
.
_detailsInit
(),
this
.
_detailsVis
(),
a
.
on
(
"
column-visibility.dtr
"
,
function
(){
d
.
_detailsVis
()}),
a
.
on
(
"
draw.dtr
"
,
function
(){
a
.
rows
({
page
:
"
current
"
}).
iterator
(
"
row
"
,
function
(
b
,
c
){
var
f
=
a
.
row
(
c
);
if
(
f
.
child
.
isShown
()){
var
i
=
d
.
c
.
details
.
renderer
(
a
,
c
);
f
.
child
(
i
,
"
child
"
).
show
()}})}),
e
(
a
.
table
().
node
()).
addClass
(
"
dtr-
"
+
c
.
type
));
this
.
_resize
()},
_columnsVisiblity
:
function
(
d
){
var
a
=
this
.
s
.
dt
,
c
=
this
.
s
.
columns
,
b
,
g
,
f
=
e
.
map
(
c
,
function
(
a
){
return
a
.
auto
&&
null
===
a
.
minWidth
?
!
1
:
!
0
===
a
.
auto
?
"
-
"
:
-
1
!==
e
.
inArray
(
d
,
a
.
includeIn
)}),
i
=
0
;
b
=
0
;
for
(
g
=
f
.
length
;
b
<
g
;
b
++
)
!
0
===
f
[
b
]
&&
(
i
+=
c
[
b
].
minWidth
);
b
=
a
.
settings
()[
0
].
oScroll
;
b
=
b
.
sY
||
b
.
sX
?
b
.
iBarWidth
:
0
;
a
=
a
.
table
().
container
().
offsetWidth
-
b
-
i
;
b
=
0
;
for
(
g
=
f
.
length
;
b
<
g
;
b
++
)
c
[
b
].
control
&&
(
a
-=
c
[
b
].
minWidth
);
i
=!
1
;
b
=
0
;
for
(
g
=
f
.
length
;
b
<
g
;
b
++
)
"
-
"
===
f
[
b
]
&&!
c
[
b
].
control
&&
(
i
||
0
>
a
-
c
[
b
].
minWidth
?(
i
=!
0
,
f
[
b
]
=!
1
):
f
[
b
]
=!
0
,
a
-=
c
[
b
].
minWidth
);
a
=!
1
;
b
=
0
;
for
(
g
=
c
.
length
;
b
<
g
;
b
++
)
if
(
!
c
[
b
].
control
&&!
c
[
b
].
never
&&!
f
[
b
]){
a
=!
0
;
break
}
b
=
0
;
for
(
g
=
c
.
length
;
b
<
g
;
b
++
)
c
[
b
].
control
&&
(
f
[
b
]
=
a
);
-
1
===
e
.
inArray
(
!
0
,
f
)
&&
(
f
[
0
]
=!
0
);
return
f
},
_classLogic
:
function
(){
var
d
=
this
,
a
=
this
.
c
.
breakpoints
,
c
=
this
.
s
.
dt
.
columns
().
eq
(
0
).
map
(
function
(
a
){
a
=
this
.
column
(
a
).
header
().
className
;
return
{
className
:
a
,
includeIn
:[],
auto
:
!
1
,
control
:
!
1
,
never
:
a
.
match
(
/
\b
never
\b
/
)?
!
0
:
!
1
}}),
b
=
function
(
a
,
b
){
var
d
=
c
[
a
].
includeIn
;
-
1
===
e
.
inArray
(
b
,
d
)
&&
d
.
push
(
b
)},
g
=
function
(
f
,
g
,
e
,
j
){
if
(
e
)
if
(
"
max-
"
===
e
){
j
=
d
.
_find
(
g
).
width
;
g
=
0
;
for
(
e
=
a
.
length
;
g
<
e
;
g
++
)
a
[
g
].
width
<=
j
&&
b
(
f
,
a
[
g
].
name
)}
else
if
(
"
min-
"
===
e
){
j
=
d
.
_find
(
g
).
width
;
g
=
0
;
for
(
e
=
a
.
length
;
g
<
e
;
g
++
)
a
[
g
].
width
>=
j
&&
b
(
f
,
a
[
g
].
name
)}
else
{
if
(
"
not-
"
===
e
){
g
=
0
;
for
(
e
=
a
.
length
;
g
<
e
;
g
++
)
-
1
===
a
[
g
].
name
.
indexOf
(
j
)
&&
b
(
f
,
a
[
g
].
name
)}}
else
c
[
f
].
includeIn
.
push
(
g
)};
c
.
each
(
function
(
b
,
d
){
for
(
var
c
=
b
.
className
.
split
(
"
"
),
j
=!
1
,
h
=
0
,
k
=
c
.
length
;
h
<
k
;
h
++
){
var
l
=
e
.
trim
(
c
[
h
]);
if
(
"
all
"
===
l
){
j
=!
0
;
b
.
includeIn
=
e
.
map
(
a
,
function
(
a
){
return
a
.
name
});
return
}
if
(
"
none
"
===
l
||
"
never
"
===
l
){
j
=!
0
;
return
}
if
(
"
control
"
===
l
){
j
=!
0
;
b
.
control
=!
0
;
return
}
e
.
each
(
a
,
function
(
a
,
b
){
var
c
=
b
.
name
.
split
(
"
-
"
),
e
=
l
.
match
(
RegExp
(
"
(min
\\
-|max
\\
-|not
\\
-)?(
"
+
c
[
0
]
+
"
)(
\\
-[_a-zA-Z0-9])?
"
));
e
&&
(
j
=!
0
,
e
[
2
]
===
c
[
0
]
&&
e
[
3
]
===
"
-
"
+
c
[
1
]?
g
(
d
,
b
.
name
,
e
[
1
],
e
[
2
]
+
e
[
3
]):
e
[
2
]
===
c
[
0
]
&&!
e
[
3
]
&&
g
(
d
,
b
.
name
,
e
[
1
],
e
[
2
]))})}
j
||
(
b
.
auto
=!
0
)});
this
.
s
.
columns
=
c
},
_detailsInit
:
function
(){
var
d
=
this
,
a
=
this
.
s
.
dt
,
c
=
this
.
c
.
details
;
"
inline
"
===
c
.
type
&&
!
0
:
!
1
}}),
b
=
function
(
a
,
b
){
var
d
=
c
[
a
].
includeIn
;
-
1
===
e
.
inArray
(
b
,
d
)
&&
d
.
push
(
b
)},
g
=
function
(
f
,
g
,
e
,
j
){
if
(
e
)
if
(
"
max-
"
===
e
){
j
=
d
.
_find
(
g
).
width
;
g
=
0
;
for
(
e
=
a
.
length
;
g
<
e
;
g
++
)
a
[
g
].
width
<=
j
&&
b
(
f
,
a
[
g
].
name
)}
else
if
(
"
min-
"
===
e
){
j
=
d
.
_find
(
g
).
width
;
g
=
0
;
for
(
e
=
a
.
length
;
g
<
e
;
g
++
)
a
[
g
].
width
>=
j
&&
b
(
f
,
a
[
g
].
name
)}
else
{
if
(
"
not-
"
===
e
){
g
=
0
;
for
(
e
=
a
.
length
;
g
<
e
;
g
++
)
-
1
===
a
[
g
].
name
.
indexOf
(
j
)
&&
b
(
f
,
a
[
g
].
name
)}}
else
c
[
f
].
includeIn
.
push
(
g
)};
c
.
each
(
function
(
b
,
c
){
for
(
var
d
=
b
.
className
.
split
(
"
"
),
j
=!
1
,
h
=
0
,
k
=
d
.
length
;
h
<
k
;
h
++
){
var
l
=
e
.
trim
(
d
[
h
]);
if
(
"
all
"
===
l
){
j
=!
0
;
b
.
includeIn
=
e
.
map
(
a
,
function
(
a
){
return
a
.
name
});
return
}
if
(
"
none
"
===
l
||
"
never
"
===
l
){
j
=!
0
;
return
}
if
(
"
control
"
===
l
){
j
=!
0
;
b
.
control
=!
0
;
return
}
e
.
each
(
a
,
function
(
a
,
b
){
var
d
=
b
.
name
.
split
(
"
-
"
),
e
=
l
.
match
(
RegExp
(
"
(min
\\
-|max
\\
-|not
\\
-)?(
"
+
d
[
0
]
+
"
)(
\\
-[_a-zA-Z0-9])?
"
));
e
&&
(
j
=!
0
,
e
[
2
]
===
d
[
0
]
&&
e
[
3
]
===
"
-
"
+
d
[
1
]?
g
(
c
,
b
.
name
,
e
[
1
],
e
[
2
]
+
e
[
3
]):
e
[
2
]
===
d
[
0
]
&&!
e
[
3
]
&&
g
(
c
,
b
.
name
,
e
[
1
],
e
[
2
]))})}
j
||
(
b
.
auto
=!
0
)});
this
.
s
.
columns
=
c
},
_detailsInit
:
function
(){
var
d
=
this
,
a
=
this
.
s
.
dt
,
c
=
this
.
c
.
details
;
"
inline
"
===
c
.
type
&&
(
c
.
target
=
"
td:first-child
"
);
var
b
=
c
.
target
;
e
(
a
.
table
().
body
()).
on
(
"
click
"
,
"
string
"
===
typeof
b
?
b
:
"
td
"
,
function
(){
if
(
e
(
a
.
table
().
node
()).
hasClass
(
"
collapsed
"
)
&&
a
.
row
(
e
(
this
).
closest
(
"
tr
"
)).
length
){
if
(
typeof
b
===
"
number
"
){
var
c
=
b
<
0
?
a
.
columns
().
eq
(
0
).
length
+
b
:
b
;
if
(
a
.
cell
(
this
).
index
().
column
!==
c
)
return
}
c
=
a
.
row
(
e
(
this
).
closest
(
"
tr
"
));
if
(
c
.
child
.
isShown
()){
c
.
child
(
false
);
e
(
c
.
node
()).
removeClass
(
"
parent
"
)}
else
{
var
f
=
d
.
c
.
details
.
renderer
(
a
,
c
[
0
]);
c
.
child
(
f
,
"
child
"
).
show
();
e
(
c
.
node
()).
addClass
(
"
parent
"
)}}})},
_detailsVis
:
function
(){
var
d
=
this
,
a
=
this
.
s
.
dt
,
c
=
a
.
columns
().
indexes
().
filter
(
function
(
b
){
var
c
=
a
.
column
(
b
);
return
c
.
visible
()?
null
:
e
(
c
.
header
()).
hasClass
(
"
never
"
)?
null
:
b
}),
b
=!
0
;
if
(
0
===
c
.
length
||
1
===
c
.
length
&&
this
.
s
.
columns
[
c
[
0
]].
control
)
b
=!
1
;
b
?
a
.
rows
({
page
:
"
current
"
}).
eq
(
0
).
each
(
function
(
b
){
b
=
a
.
row
(
b
);
if
(
b
.
child
()){
var
c
=
d
.
c
.
details
.
renderer
(
a
,
b
[
0
]);
!
1
===
c
?
b
.
child
.
hide
():
b
.
child
(
c
,
"
child
"
).
show
()}}):
a
.
rows
({
page
:
"
current
"
}).
eq
(
0
).
each
(
function
(
b
){
a
.
row
(
b
).
child
.
hide
()})},
_find
:
function
(
d
){
for
(
var
a
=
this
.
c
.
breakpoints
,
c
=
0
,
b
=
a
.
length
;
c
<
b
;
c
++
)
if
(
a
[
c
].
name
===
d
)
return
a
[
c
]},
_resize
:
function
(){
var
d
=
this
.
s
.
dt
,
a
=
e
(
n
).
width
(),
c
=
this
.
c
.
breakpoints
,
b
=
c
[
0
].
name
,
g
=
this
.
s
.
columns
,
f
;
for
(
f
=
c
.
length
-
1
;
0
<=
f
;
f
--
)
if
(
a
<=
c
[
f
].
width
){
b
=
c
[
f
].
name
;
break
}
var
i
=
this
.
_columnsVisiblity
(
b
),
c
=!
1
;
f
=
0
;
for
(
a
=
g
.
length
;
f
<
a
;
f
++
)
if
(
!
1
===
i
[
f
]
&&!
g
[
f
].
never
){
c
=!
0
;
break
}
e
(
d
.
table
().
node
()).
toggleClass
(
"
collapsed
"
,
c
);
d
.
columns
().
eq
(
0
).
each
(
function
(
a
,
b
){
d
.
column
(
a
).
visible
(
i
[
b
])})},
_resizeAuto
:
function
(){
var
d
=
this
.
s
.
dt
,
a
=
this
.
s
.
columns
;
if
(
this
.
c
.
auto
&&-
1
!==
e
.
inArray
(
!
0
,
e
.
map
(
a
,
function
(
a
){
return
a
.
auto
}))){
d
.
table
().
node
();
var
c
=
d
.
table
().
node
().
cloneNode
(
!
1
),
b
=
e
(
d
.
table
().
header
().
cloneNode
(
!
1
)).
appendTo
(
c
),
g
=
e
(
d
.
table
().
body
().
cloneNode
(
!
1
)).
appendTo
(
c
);
e
(
d
.
table
().
footer
()).
clone
(
!
1
).
appendTo
(
c
);
d
.
rows
({
page
:
"
current
"
}).
indexes
().
flatten
().
each
(
function
(
a
){
var
b
=
d
.
row
(
a
).
node
().
cloneNode
(
!
0
);
d
.
columns
(
"
:hidden
"
).
flatten
().
length
&&
e
(
b
).
append
(
d
.
cells
(
a
,
"
:hidden
"
).
nodes
().
to$
().
clone
());
e
(
b
).
appendTo
(
g
)});
var
f
=
d
.
columns
().
header
().
to$
().
clone
(
!
1
);
e
(
"
<tr/>
"
).
append
(
f
).
appendTo
(
b
);
c
=
e
(
"
<div/>
"
).
css
({
width
:
1
,
height
:
1
,
overflow
:
"
hidden
"
}).
append
(
c
).
insertBefore
(
d
.
table
().
node
());
d
.
columns
().
eq
(
0
).
each
(
function
(
b
){
a
[
b
].
minWidth
=
f
[
b
].
offsetWidth
||
0
});
c
.
remove
()}}};
h
.
breakpoints
=
[{
name
:
"
desktop
"
,
width
:
Infinity
},{
name
:
"
tablet-l
"
,
width
:
1024
},{
name
:
"
tablet-p
"
,
width
:
768
},{
name
:
"
mobile-l
"
,
width
:
480
},{
name
:
"
mobile-p
"
,
width
:
320
}];
h
.
defaults
=
{
breakpoints
:
h
.
breakpoints
,
auto
:
!
0
,
details
:{
renderer
:
function
(
d
,
a
){
var
c
=
d
.
cells
(
a
,
"
:hidden
"
).
eq
(
0
).
map
(
function
(
a
){
var
c
=
e
(
d
.
column
(
a
.
column
).
header
()),
a
=
d
.
cell
(
a
).
index
();
if
(
c
.
hasClass
(
"
control
"
)
||
c
.
hasClass
(
"
never
"
))
return
""
;
var
f
=
d
.
settings
()[
0
],
f
=
f
.
oApi
.
_fnGetCellData
(
f
,
a
.
row
,
a
.
column
,
"
display
"
);(
c
=
c
.
text
())
&&
(
c
+=
"
:
"
);
return
'
<li data-dtr-index="
'
+
a
.
column
+
'
"><span class="dtr-title">
'
+
c
+
'
</span> <span class="dtr-data">
'
+
f
+
"
</span></li>
"
}).
toArray
().
join
(
""
);
return
c
?
e
(
'
<ul data-dtr-index="
'
+
a
+
'
"/>
'
).
append
(
c
):
!
1
},
target
:
0
,
type
:
"
inline
"
}};
var
m
=
e
.
fn
.
dataTable
.
Api
;
m
.
register
(
"
responsive()
"
,
function
(){
return
this
});
m
.
register
(
"
responsive.index()
"
,
function
(
d
){
d
=
e
(
d
);
return
{
column
:
d
.
data
(
"
dtr-index
"
),
row
:
d
.
parent
().
data
(
"
dtr-index
"
)}});
m
.
register
(
"
responsive.rebuild()
"
,
function
(){
return
this
.
iterator
(
"
table
"
,
function
(
d
){
d
.
_responsive
&&
d
.
_responsive
.
_classLogic
()})});
m
.
register
(
"
responsive.recalc()
"
,
function
(){
return
this
.
iterator
(
"
table
"
,
function
(
d
){
d
.
_responsive
&&
(
d
.
_responsive
.
_resizeAuto
(),
d
.
_responsive
.
_resize
())})});
h
.
version
=
"
1.0.5
"
;
e
.
fn
.
dataTable
.
Responsive
=
h
;
e
.
fn
.
DataTable
.
Responsive
=
h
;
e
(
p
).
on
(
"
init.dt.dtr
"
,
function
(
d
,
a
){
if
(
"
dt
"
===
d
.
namespace
&&
(
e
(
a
.
nTable
).
hasClass
(
"
responsive
"
)
||
e
(
a
.
nTable
).
hasClass
(
"
dt-responsive
"
)
||
a
.
oInit
.
responsive
||
k
.
defaults
.
responsive
)){
console
.
log
(
d
.
namespace
);
var
c
=
a
.
oInit
.
responsive
;
!
1
!==
c
&&
new
h
(
a
,
e
.
isPlainObject
(
c
)?
c
:{})}});
return
h
};
"
function
"
===
typeof
define
&&
define
.
amd
?
define
([
"
jquery
"
,
"
datatables
"
],
o
):
"
object
"
===
typeof
exports
?
o
(
require
(
"
jquery
"
),
require
(
"
datatables
"
)):
jQuery
&&!
jQuery
.
fn
.
dataTable
.
Responsive
&&
o
(
jQuery
,
jQuery
.
fn
.
dataTable
)})(
window
,
document
);
e
(
"
<tr/>
"
).
append
(
f
).
appendTo
(
b
);
"
inline
"
===
this
.
c
.
details
.
type
&&
e
(
c
).
addClass
(
"
dtr-inline collapsed
"
);
c
=
e
(
"
<div/>
"
).
css
({
width
:
1
,
height
:
1
,
overflow
:
"
hidden
"
}).
append
(
c
);
c
.
find
(
"
th.never, td.never
"
).
remove
();
c
.
insertBefore
(
d
.
table
().
node
());
d
.
columns
().
eq
(
0
).
each
(
function
(
b
){
a
[
b
].
minWidth
=
f
[
b
].
offsetWidth
||
0
});
c
.
remove
()}}};
h
.
breakpoints
=
[{
name
:
"
desktop
"
,
width
:
Infinity
},{
name
:
"
tablet-l
"
,
width
:
1024
},{
name
:
"
tablet-p
"
,
width
:
768
},{
name
:
"
mobile-l
"
,
width
:
480
},{
name
:
"
mobile-p
"
,
width
:
320
}];
h
.
defaults
=
{
breakpoints
:
h
.
breakpoints
,
auto
:
!
0
,
details
:{
renderer
:
function
(
d
,
a
){
var
c
=
d
.
cells
(
a
,
"
:hidden
"
).
eq
(
0
).
map
(
function
(
a
){
var
c
=
e
(
d
.
column
(
a
.
column
).
header
()),
a
=
d
.
cell
(
a
).
index
();
if
(
c
.
hasClass
(
"
control
"
)
||
c
.
hasClass
(
"
never
"
))
return
""
;
var
f
=
d
.
settings
()[
0
],
f
=
f
.
oApi
.
_fnGetCellData
(
f
,
a
.
row
,
a
.
column
,
"
display
"
);(
c
=
c
.
text
())
&&
(
c
+=
"
:
"
);
return
'
<li data-dtr-index="
'
+
a
.
column
+
'
"><span class="dtr-title">
'
+
c
+
'
</span> <span class="dtr-data">
'
+
f
+
"
</span></li>
"
}).
toArray
().
join
(
""
);
return
c
?
e
(
'
<ul data-dtr-index="
'
+
a
+
'
"/>
'
).
append
(
c
):
!
1
},
target
:
0
,
type
:
"
inline
"
}};
var
m
=
e
.
fn
.
dataTable
.
Api
;
m
.
register
(
"
responsive()
"
,
function
(){
return
this
});
m
.
register
(
"
responsive.index()
"
,
function
(
d
){
d
=
e
(
d
);
return
{
column
:
d
.
data
(
"
dtr-index
"
),
row
:
d
.
parent
().
data
(
"
dtr-index
"
)}});
m
.
register
(
"
responsive.rebuild()
"
,
function
(){
return
this
.
iterator
(
"
table
"
,
function
(
d
){
d
.
_responsive
&&
d
.
_responsive
.
_classLogic
()})});
m
.
register
(
"
responsive.recalc()
"
,
function
(){
return
this
.
iterator
(
"
table
"
,
function
(
d
){
d
.
_responsive
&&
(
d
.
_responsive
.
_resizeAuto
(),
d
.
_responsive
.
_resize
())})});
h
.
version
=
"
1.0.6
"
;
e
.
fn
.
dataTable
.
Responsive
=
h
;
e
.
fn
.
DataTable
.
Responsive
=
h
;
e
(
p
).
on
(
"
init.dt.dtr
"
,
function
(
d
,
a
){
if
(
"
dt
"
===
d
.
namespace
&&
(
e
(
a
.
nTable
).
hasClass
(
"
responsive
"
)
||
e
(
a
.
nTable
).
hasClass
(
"
dt-responsive
"
)
||
a
.
oInit
.
responsive
||
k
.
defaults
.
responsive
)){
var
c
=
a
.
oInit
.
responsive
;
!
1
!==
c
&&
new
h
(
a
,
e
.
isPlainObject
(
c
)?
c
:{})}});
return
h
};
"
function
"
===
typeof
define
&&
define
.
amd
?
define
([
"
jquery
"
,
"
datatables
"
],
o
):
"
object
"
===
typeof
exports
?
o
(
require
(
"
jquery
"
),
require
(
"
datatables
"
)):
jQuery
&&!
jQuery
.
fn
.
dataTable
.
Responsive
&&
o
(
jQuery
,
jQuery
.
fn
.
dataTable
)})(
window
,
document
);
plugins/datatables/jquery.dataTables.css
浏览文件 @
d9cc6e3d
...
...
@@ -21,7 +21,7 @@ table.dataTable tfoot th {
table
.dataTable
thead
th
,
table
.dataTable
thead
td
{
padding
:
10px
18px
;
border-bottom
:
1px
solid
#111
111
;
border-bottom
:
1px
solid
#111
;
}
table
.dataTable
thead
th
:active
,
table
.dataTable
thead
td
:active
{
...
...
@@ -30,7 +30,7 @@ table.dataTable thead td:active {
table
.dataTable
tfoot
th
,
table
.dataTable
tfoot
td
{
padding
:
10px
18px
6px
18px
;
border-top
:
1px
solid
#111
111
;
border-top
:
1px
solid
#111
;
}
table
.dataTable
thead
.sorting
,
table
.dataTable
thead
.sorting_asc
,
...
...
@@ -62,17 +62,17 @@ table.dataTable thead .sorting_desc_disabled {
background-image
:
url("../images/sort_desc_disabled.png")
;
}
table
.dataTable
tbody
tr
{
background-color
:
white
;
background-color
:
#ffffff
;
}
table
.dataTable
tbody
tr
.selected
{
background-color
:
#
b0bed
9
;
background-color
:
#
B0BED
9
;
}
table
.dataTable
tbody
th
,
table
.dataTable
tbody
td
{
padding
:
8px
10px
;
}
table
.dataTable.row-border
tbody
th
,
table
.dataTable.row-border
tbody
td
,
table
.dataTable.display
tbody
th
,
table
.dataTable.display
tbody
td
{
border-top
:
1px
solid
#ddd
ddd
;
border-top
:
1px
solid
#ddd
;
}
table
.dataTable.row-border
tbody
tr
:first-child
th
,
table
.dataTable.row-border
tbody
tr
:first-child
td
,
table
.dataTable.display
tbody
tr
:first-child
th
,
...
...
@@ -80,12 +80,12 @@ table.dataTable.display tbody tr:first-child td {
border-top
:
none
;
}
table
.dataTable.cell-border
tbody
th
,
table
.dataTable.cell-border
tbody
td
{
border-top
:
1px
solid
#ddd
ddd
;
border-right
:
1px
solid
#ddd
ddd
;
border-top
:
1px
solid
#ddd
;
border-right
:
1px
solid
#ddd
;
}
table
.dataTable.cell-border
tbody
tr
th
:first-child
,
table
.dataTable.cell-border
tbody
tr
td
:first-child
{
border-left
:
1px
solid
#ddd
ddd
;
border-left
:
1px
solid
#ddd
;
}
table
.dataTable.cell-border
tbody
tr
:first-child
th
,
table
.dataTable.cell-border
tbody
tr
:first-child
td
{
...
...
@@ -97,18 +97,10 @@ table.dataTable.stripe tbody tr.odd, table.dataTable.display tbody tr.odd {
table
.dataTable.stripe
tbody
tr
.odd.selected
,
table
.dataTable.display
tbody
tr
.odd.selected
{
background-color
:
#abb9d3
;
}
table
.dataTable.hover
tbody
tr
:hover
,
table
.dataTable.hover
tbody
tr
.odd
:hover
,
table
.dataTable.hover
tbody
tr
.even
:hover
,
table
.dataTable.display
tbody
tr
:hover
,
table
.dataTable.display
tbody
tr
.odd
:hover
,
table
.dataTable.display
tbody
tr
.even
:hover
{
table
.dataTable.hover
tbody
tr
:hover
,
table
.dataTable.display
tbody
tr
:hover
{
background-color
:
whitesmoke
;
}
table
.dataTable.hover
tbody
tr
:hover
.selected
,
table
.dataTable.hover
tbody
tr
.odd
:hover
.selected
,
table
.dataTable.hover
tbody
tr
.even
:hover
.selected
,
table
.dataTable.display
tbody
tr
:hover
.selected
,
table
.dataTable.display
tbody
tr
.odd
:hover
.selected
,
table
.dataTable.display
tbody
tr
.even
:hover
.selected
{
table
.dataTable.hover
tbody
tr
:hover
.selected
,
table
.dataTable.display
tbody
tr
:hover
.selected
{
background-color
:
#a9b7d1
;
}
table
.dataTable.order-column
tbody
tr
>
.sorting_1
,
...
...
@@ -161,50 +153,26 @@ table.dataTable.display tbody tr.even.selected > .sorting_2, table.dataTable.ord
table
.dataTable.display
tbody
tr
.even.selected
>
.sorting_3
,
table
.dataTable.order-column.stripe
tbody
tr
.even.selected
>
.sorting_3
{
background-color
:
#afbdd8
;
}
table
.dataTable.display
tbody
tr
:hover
>
.sorting_1
,
table
.dataTable.display
tbody
tr
.odd
:hover
>
.sorting_1
,
table
.dataTable.display
tbody
tr
.even
:hover
>
.sorting_1
,
table
.dataTable.order-column.hover
tbody
tr
:hover
>
.sorting_1
,
table
.dataTable.order-column.hover
tbody
tr
.odd
:hover
>
.sorting_1
,
table
.dataTable.order-column.hover
tbody
tr
.even
:hover
>
.sorting_1
{
table
.dataTable.display
tbody
tr
:hover
>
.sorting_1
,
table
.dataTable.order-column.hover
tbody
tr
:hover
>
.sorting_1
{
background-color
:
#eaeaea
;
}
table
.dataTable.display
tbody
tr
:hover
>
.sorting_2
,
table
.dataTable.display
tbody
tr
.odd
:hover
>
.sorting_2
,
table
.dataTable.display
tbody
tr
.even
:hover
>
.sorting_2
,
table
.dataTable.order-column.hover
tbody
tr
:hover
>
.sorting_2
,
table
.dataTable.order-column.hover
tbody
tr
.odd
:hover
>
.sorting_2
,
table
.dataTable.order-column.hover
tbody
tr
.even
:hover
>
.sorting_2
{
table
.dataTable.display
tbody
tr
:hover
>
.sorting_2
,
table
.dataTable.order-column.hover
tbody
tr
:hover
>
.sorting_2
{
background-color
:
#ebebeb
;
}
table
.dataTable.display
tbody
tr
:hover
>
.sorting_3
,
table
.dataTable.display
tbody
tr
.odd
:hover
>
.sorting_3
,
table
.dataTable.display
tbody
tr
.even
:hover
>
.sorting_3
,
table
.dataTable.order-column.hover
tbody
tr
:hover
>
.sorting_3
,
table
.dataTable.order-column.hover
tbody
tr
.odd
:hover
>
.sorting_3
,
table
.dataTable.order-column.hover
tbody
tr
.even
:hover
>
.sorting_3
{
table
.dataTable.display
tbody
tr
:hover
>
.sorting_3
,
table
.dataTable.order-column.hover
tbody
tr
:hover
>
.sorting_3
{
background-color
:
#eeeeee
;
}
table
.dataTable.display
tbody
tr
:hover
.selected
>
.sorting_1
,
table
.dataTable.display
tbody
tr
.odd
:hover
.selected
>
.sorting_1
,
table
.dataTable.display
tbody
tr
.even
:hover
.selected
>
.sorting_1
,
table
.dataTable.order-column.hover
tbody
tr
:hover
.selected
>
.sorting_1
,
table
.dataTable.order-column.hover
tbody
tr
.odd
:hover
.selected
>
.sorting_1
,
table
.dataTable.order-column.hover
tbody
tr
.even
:hover
.selected
>
.sorting_1
{
table
.dataTable.display
tbody
tr
:hover
.selected
>
.sorting_1
,
table
.dataTable.order-column.hover
tbody
tr
:hover
.selected
>
.sorting_1
{
background-color
:
#a1aec7
;
}
table
.dataTable.display
tbody
tr
:hover
.selected
>
.sorting_2
,
table
.dataTable.display
tbody
tr
.odd
:hover
.selected
>
.sorting_2
,
table
.dataTable.display
tbody
tr
.even
:hover
.selected
>
.sorting_2
,
table
.dataTable.order-column.hover
tbody
tr
:hover
.selected
>
.sorting_2
,
table
.dataTable.order-column.hover
tbody
tr
.odd
:hover
.selected
>
.sorting_2
,
table
.dataTable.order-column.hover
tbody
tr
.even
:hover
.selected
>
.sorting_2
{
table
.dataTable.display
tbody
tr
:hover
.selected
>
.sorting_2
,
table
.dataTable.order-column.hover
tbody
tr
:hover
.selected
>
.sorting_2
{
background-color
:
#a2afc8
;
}
table
.dataTable.display
tbody
tr
:hover
.selected
>
.sorting_3
,
table
.dataTable.display
tbody
tr
.odd
:hover
.selected
>
.sorting_3
,
table
.dataTable.display
tbody
tr
.even
:hover
.selected
>
.sorting_3
,
table
.dataTable.order-column.hover
tbody
tr
:hover
.selected
>
.sorting_3
,
table
.dataTable.order-column.hover
tbody
tr
.odd
:hover
.selected
>
.sorting_3
,
table
.dataTable.order-column.hover
tbody
tr
.even
:hover
.selected
>
.sorting_3
{
table
.dataTable.display
tbody
tr
:hover
.selected
>
.sorting_3
,
table
.dataTable.order-column.hover
tbody
tr
:hover
.selected
>
.sorting_3
{
background-color
:
#a4b2cb
;
}
table
.dataTable.no-footer
{
border-bottom
:
1px
solid
#111
111
;
border-bottom
:
1px
solid
#111
;
}
table
.dataTable.nowrap
th
,
table
.dataTable.nowrap
td
{
white-space
:
nowrap
;
...
...
@@ -340,24 +308,24 @@ table.dataTable td {
text-decoration
:
none
!important
;
cursor
:
pointer
;
*
cursor
:
hand
;
color
:
#333
333
!important
;
color
:
#333
!important
;
border
:
1px
solid
transparent
;
}
.dataTables_wrapper
.dataTables_paginate
.paginate_button.current
,
.dataTables_wrapper
.dataTables_paginate
.paginate_button.current
:hover
{
color
:
#333
333
!important
;
color
:
#333
!important
;
border
:
1px
solid
#cacaca
;
background-color
:
white
;
background
:
-webkit-gradient
(
linear
,
left
top
,
left
bottom
,
color-stop
(
0%
,
white
),
color-stop
(
100%
,
gainsboro
));
background
:
-webkit-gradient
(
linear
,
left
top
,
left
bottom
,
color-stop
(
0%
,
white
),
color-stop
(
100%
,
#dcdcdc
));
/* Chrome,Safari4+ */
background
:
-webkit-linear-gradient
(
top
,
white
0%
,
gainsboro
100%
);
background
:
-webkit-linear-gradient
(
top
,
white
0%
,
#dcdcdc
100%
);
/* Chrome10+,Safari5.1+ */
background
:
-moz-linear-gradient
(
top
,
white
0%
,
gainsboro
100%
);
background
:
-moz-linear-gradient
(
top
,
white
0%
,
#dcdcdc
100%
);
/* FF3.6+ */
background
:
-ms-linear-gradient
(
top
,
white
0%
,
gainsboro
100%
);
background
:
-ms-linear-gradient
(
top
,
white
0%
,
#dcdcdc
100%
);
/* IE10+ */
background
:
-o-linear-gradient
(
top
,
white
0%
,
gainsboro
100%
);
background
:
-o-linear-gradient
(
top
,
white
0%
,
#dcdcdc
100%
);
/* Opera 11.10+ */
background
:
linear-gradient
(
to
bottom
,
white
0%
,
gainsboro
100%
);
background
:
linear-gradient
(
to
bottom
,
white
0%
,
#dcdcdc
100%
);
/* W3C */
}
.dataTables_wrapper
.dataTables_paginate
.paginate_button.disabled
,
.dataTables_wrapper
.dataTables_paginate
.paginate_button.disabled
:hover
,
.dataTables_wrapper
.dataTables_paginate
.paginate_button.disabled
:active
{
...
...
@@ -369,19 +337,19 @@ table.dataTable td {
}
.dataTables_wrapper
.dataTables_paginate
.paginate_button
:hover
{
color
:
white
!important
;
border
:
1px
solid
#111
111
;
border
:
1px
solid
#111
;
background-color
:
#585858
;
background
:
-webkit-gradient
(
linear
,
left
top
,
left
bottom
,
color-stop
(
0%
,
#585858
),
color-stop
(
100%
,
#111
111
));
background
:
-webkit-gradient
(
linear
,
left
top
,
left
bottom
,
color-stop
(
0%
,
#585858
),
color-stop
(
100%
,
#111
));
/* Chrome,Safari4+ */
background
:
-webkit-linear-gradient
(
top
,
#585858
0%
,
#111
111
100%
);
background
:
-webkit-linear-gradient
(
top
,
#585858
0%
,
#111
100%
);
/* Chrome10+,Safari5.1+ */
background
:
-moz-linear-gradient
(
top
,
#585858
0%
,
#111
111
100%
);
background
:
-moz-linear-gradient
(
top
,
#585858
0%
,
#111
100%
);
/* FF3.6+ */
background
:
-ms-linear-gradient
(
top
,
#585858
0%
,
#111
111
100%
);
background
:
-ms-linear-gradient
(
top
,
#585858
0%
,
#111
100%
);
/* IE10+ */
background
:
-o-linear-gradient
(
top
,
#585858
0%
,
#111
111
100%
);
background
:
-o-linear-gradient
(
top
,
#585858
0%
,
#111
100%
);
/* Opera 11.10+ */
background
:
linear-gradient
(
to
bottom
,
#585858
0%
,
#111
111
100%
);
background
:
linear-gradient
(
to
bottom
,
#585858
0%
,
#111
100%
);
/* W3C */
}
.dataTables_wrapper
.dataTables_paginate
.paginate_button
:active
{
...
...
@@ -434,7 +402,7 @@ table.dataTable td {
.dataTables_wrapper
.dataTables_info
,
.dataTables_wrapper
.dataTables_processing
,
.dataTables_wrapper
.dataTables_paginate
{
color
:
#333
333
;
color
:
#333
;
}
.dataTables_wrapper
.dataTables_scroll
{
clear
:
both
;
...
...
@@ -451,7 +419,7 @@ table.dataTable td {
padding
:
0
!important
;
}
.dataTables_wrapper.no-footer
.dataTables_scrollBody
{
border-bottom
:
1px
solid
#111
111
;
border-bottom
:
1px
solid
#111
;
}
.dataTables_wrapper.no-footer
div
.dataTables_scrollHead
table
,
.dataTables_wrapper.no-footer
div
.dataTables_scrollBody
table
{
...
...
plugins/datatables/jquery.dataTables.js
浏览文件 @
d9cc6e3d
/*! DataTables 1.10.
6
/*! DataTables 1.10.
7
* ©2008-2014 SpryMedia Ltd - datatables.net/license
*/
/**
* @summary DataTables
* @description Paginate, search and order HTML tables
* @version 1.10.
6
* @version 1.10.
7
* @file jquery.dataTables.js
* @author SpryMedia Ltd (www.sprymedia.co.uk)
* @contact www.sprymedia.co.uk/contact
...
...
@@ -2435,7 +2435,7 @@
var
ajax
=
oSettings
.
ajax
;
var
instance
=
oSettings
.
oInstance
;
var
callback
=
function
(
json
)
{
_fnCallbackFire
(
oSettings
,
null
,
'
xhr
'
,
[
oSettings
,
json
]
);
_fnCallbackFire
(
oSettings
,
null
,
'
xhr
'
,
[
oSettings
,
json
,
oSettings
.
jqXHR
]
);
fn
(
json
);
};
...
...
@@ -2462,7 +2462,7 @@
"
success
"
:
function
(
json
)
{
var
error
=
json
.
error
||
json
.
sError
;
if
(
error
)
{
oSettings
.
oApi
.
_fnLog
(
oSettings
,
0
,
error
);
_fnLog
(
oSettings
,
0
,
error
);
}
oSettings
.
json
=
json
;
...
...
@@ -2472,13 +2472,15 @@
"
cache
"
:
false
,
"
type
"
:
oSettings
.
sServerMethod
,
"
error
"
:
function
(
xhr
,
error
,
thrown
)
{
var
log
=
oSettings
.
oApi
.
_fnLog
;
var
ret
=
_fnCallbackFire
(
oSettings
,
null
,
'
xhr
'
,
[
oSettings
,
null
,
oSettings
.
jqXHR
]
)
;
if
(
error
==
"
parsererror
"
)
{
log
(
oSettings
,
0
,
'
Invalid JSON response
'
,
1
);
}
else
if
(
xhr
.
readyState
===
4
)
{
log
(
oSettings
,
0
,
'
Ajax error
'
,
7
);
if
(
$
.
inArray
(
true
,
ret
)
===
-
1
)
{
if
(
error
==
"
parsererror
"
)
{
_fnLog
(
oSettings
,
0
,
'
Invalid JSON response
'
,
1
);
}
else
if
(
xhr
.
readyState
===
4
)
{
_fnLog
(
oSettings
,
0
,
'
Ajax error
'
,
7
);
}
}
_fnProcessingDisplay
(
oSettings
,
false
);
...
...
@@ -3018,7 +3020,7 @@
*
* ^(?=.*?\bone\b)(?=.*?\btwo three\b)(?=.*?\bfour\b).*$
*/
var
a
=
$
.
map
(
search
.
match
(
/"
[^
"
]
+"|
[^
]
+/g
)
||
''
,
function
(
word
)
{
var
a
=
$
.
map
(
search
.
match
(
/"
[^
"
]
+"|
[^
]
+/g
)
||
[
''
]
,
function
(
word
)
{
if
(
word
.
charAt
(
0
)
===
'
"
'
)
{
var
m
=
word
.
match
(
/^"
(
.*
)
"$/
);
word
=
m
?
m
[
1
]
:
word
;
...
...
@@ -4139,22 +4141,21 @@
}
else
{
// Otherwise construct a single row table with the widest node in the
// data, assign any user defined widths, then insert it into the DOM and
// allow the browser to do all the hard work of calculating table widths
// Otherwise construct a single row, worst case, table with the widest
// node in the data, assign any user defined widths, then insert it into
// the DOM and allow the browser to do all the hard work of calculating
// table widths
var
tmpTable
=
$
(
table
).
clone
()
// don't use cloneNode - IE8 will remove events on the main table
.
empty
()
.
css
(
'
visibility
'
,
'
hidden
'
)
.
removeAttr
(
'
id
'
)
.
append
(
$
(
oSettings
.
nTHead
).
clone
(
false
)
)
.
append
(
$
(
oSettings
.
nTFoot
).
clone
(
false
)
)
.
append
(
$
(
'
<tbody><tr/></tbody>
'
)
);
.
removeAttr
(
'
id
'
);
// Clean up the table body
tmpTable
.
find
(
'
tbody tr
'
).
remove
();
var
tr
=
$
(
'
<tr/>
'
).
appendTo
(
tmpTable
.
find
(
'
tbody
'
)
);
// Remove any assigned widths from the footer (from scrolling)
tmpTable
.
find
(
'
tfoot th, tfoot td
'
).
css
(
'
width
'
,
''
);
var
tr
=
tmpTable
.
find
(
'
tbody tr
'
);
// Apply custom sizing to the cloned header
headerCells
=
_fnGetUniqueThs
(
oSettings
,
tmpTable
.
find
(
'
thead
'
)[
0
]
);
...
...
@@ -4252,9 +4253,20 @@
}
if
(
(
tableWidthAttr
||
scrollX
)
&&
!
oSettings
.
_reszEvt
)
{
$
(
window
).
bind
(
'
resize.DT-
'
+
oSettings
.
sInstance
,
_fnThrottle
(
function
()
{
_fnAdjustColumnSizing
(
oSettings
);
}
)
);
var
bindResize
=
function
()
{
$
(
window
).
bind
(
'
resize.DT-
'
+
oSettings
.
sInstance
,
_fnThrottle
(
function
()
{
_fnAdjustColumnSizing
(
oSettings
);
}
)
);
};
// IE6/7 will crash if we bind a resize event handler on page load.
// To be removed in 1.11 which drops IE6/7 support
if
(
oSettings
.
oBrowser
.
bScrollOversize
)
{
setTimeout
(
bindResize
,
1000
);
}
else
{
bindResize
();
}
oSettings
.
_reszEvt
=
true
;
}
...
...
@@ -5208,13 +5220,13 @@
* @param {object} settings dataTables settings object
* @param {string} callbackArr Name of the array storage for the callbacks in
* oSettings
* @param {string} event
Name of the jQuery custom event to trigger. If null no
* trigger is fired
* @param {string} event
Name Name of the jQuery custom event to trigger. If
*
null no
trigger is fired
* @param {array} args Array of arguments to pass to the callback function /
* trigger
* @memberof DataTable#oApi
*/
function
_fnCallbackFire
(
settings
,
callbackArr
,
e
,
args
)
function
_fnCallbackFire
(
settings
,
callbackArr
,
e
ventName
,
args
)
{
var
ret
=
[];
...
...
@@ -5224,8 +5236,12 @@
}
);
}
if
(
e
!==
null
)
{
$
(
settings
.
nTable
).
trigger
(
e
+
'
.dt
'
,
args
);
if
(
eventName
!==
null
)
{
var
e
=
$
.
Event
(
eventName
+
'
.dt
'
);
$
(
settings
.
nTable
).
trigger
(
e
,
args
);
ret
.
push
(
e
.
result
);
}
return
ret
;
...
...
@@ -6722,10 +6738,8 @@
*/
_Api
=
function
(
context
,
data
)
{
if
(
!
this
instanceof
_Api
)
{
throw
'
DT API must be constructed as a new object
'
;
// or should it do the 'new' for the caller?
// return new _Api.apply( this, arguments );
if
(
!
(
this
instanceof
_Api
)
)
{
return
new
_Api
(
context
,
data
);
}
var
settings
=
[];
...
...
@@ -6766,18 +6780,12 @@
DataTable
.
Api
=
_Api
;
_Api
.
prototype
=
/** @lends DataTables.Api */
{
/**
* Return a new Api instance, comprised of the data held in the current
* instance, join with the other array(s) and/or value(s).
*
* An alias for `Array.prototype.concat`.
*
* @type method
* @param {*} value1 Arrays and/or values to concatenate.
* @param {*} [...] Additional arrays and/or values to concatenate.
* @returns {DataTables.Api} New API instance, comprising of the combined
* array.
*/
any
:
function
()
{
return
this
.
flatten
().
length
!==
0
;
},
concat
:
__arrayProto
.
concat
,
...
...
@@ -6844,7 +6852,6 @@
return
-
1
;
},
// Note that `alwaysNew` is internal - use iteratorNew externally
iterator
:
function
(
flatten
,
type
,
fn
,
alwaysNew
)
{
var
a
=
[],
ret
,
...
...
@@ -7527,7 +7534,7 @@
var
_selector_run
=
function
(
selector
,
select
)
var
_selector_run
=
function
(
type
,
selector
,
selectFn
,
settings
,
opts
)
{
var
out
=
[],
res
,
...
...
@@ -7546,7 +7553,7 @@
[
selector
[
i
]
];
for
(
j
=
0
,
jen
=
a
.
length
;
j
<
jen
;
j
++
)
{
res
=
select
(
typeof
a
[
j
]
===
'
string
'
?
$
.
trim
(
a
[
j
])
:
a
[
j
]
);
res
=
select
Fn
(
typeof
a
[
j
]
===
'
string
'
?
$
.
trim
(
a
[
j
])
:
a
[
j
]
);
if
(
res
&&
res
.
length
)
{
out
.
push
.
apply
(
out
,
res
);
...
...
@@ -7554,6 +7561,14 @@
}
}
// selector extensions
var
ext
=
_ext
.
selector
[
type
];
if
(
ext
.
length
)
{
for
(
i
=
0
,
ien
=
ext
.
length
;
i
<
ien
;
i
++
)
{
out
=
ext
[
i
](
settings
,
opts
,
out
);
}
}
return
out
;
};
...
...
@@ -7566,15 +7581,15 @@
// Backwards compatibility for 1.9- which used the terminology filter rather
// than search
if
(
opts
.
filter
&&
!
opts
.
search
)
{
if
(
opts
.
filter
&&
opts
.
search
===
undefined
)
{
opts
.
search
=
opts
.
filter
;
}
return
{
search
:
opts
.
search
||
'
none
'
,
order
:
opts
.
order
||
'
current
'
,
page
:
opts
.
page
||
'
all
'
};
return
$
.
extend
(
{
search
:
'
none
'
,
order
:
'
current
'
,
page
:
'
all
'
}
,
opts
)
;
};
...
...
@@ -7586,6 +7601,7 @@
// Assign the first element to the first item in the instance
// and truncate the instance and context
inst
[
0
]
=
inst
[
i
];
inst
[
0
].
length
=
1
;
inst
.
length
=
1
;
inst
.
context
=
[
inst
.
context
[
i
]
];
...
...
@@ -7672,7 +7688,7 @@
var
__row_selector
=
function
(
settings
,
selector
,
opts
)
{
return
_selector_run
(
selector
,
function
(
sel
)
{
var
run
=
function
(
sel
)
{
var
selInt
=
_intVal
(
sel
);
var
i
,
ien
;
...
...
@@ -7724,7 +7740,9 @@
return
this
.
_DT_RowIndex
;
}
)
.
toArray
();
}
);
};
return
_selector_run
(
'
row
'
,
selector
,
run
,
settings
,
opts
);
};
...
...
@@ -8154,7 +8172,7 @@
names
=
_pluck
(
columns
,
'
sName
'
),
nodes
=
_pluck
(
columns
,
'
nTh
'
);
return
_selector_run
(
selector
,
function
(
s
)
{
var
run
=
function
(
s
)
{
var
selInt
=
_intVal
(
s
);
// Selector - all
...
...
@@ -8220,7 +8238,9 @@
}
)
.
toArray
();
}
}
);
};
return
_selector_run
(
'
column
'
,
selector
,
run
,
settings
,
opts
);
};
...
...
@@ -8395,7 +8415,7 @@
var
columns
=
settings
.
aoColumns
.
length
;
var
a
,
i
,
ien
,
j
,
o
,
host
;
return
_selector_run
(
selector
,
function
(
s
)
{
var
run
=
function
(
s
)
{
var
fnSelector
=
typeof
s
===
'
function
'
;
if
(
s
===
null
||
s
===
undefined
||
fnSelector
)
{
...
...
@@ -8415,7 +8435,7 @@
// Selector - function
host
=
settings
.
aoData
[
row
];
if
(
s
(
o
,
_fnGetCellData
(
settings
,
row
,
j
),
host
.
anCells
[
j
]
)
)
{
if
(
s
(
o
,
_fnGetCellData
(
settings
,
row
,
j
),
host
.
anCells
?
host
.
anCells
[
j
]
:
null
)
)
{
a
.
push
(
o
);
}
}
...
...
@@ -8446,7 +8466,9 @@
};
}
)
.
toArray
();
}
);
};
return
_selector_run
(
'
cell
'
,
selector
,
run
,
settings
,
opts
);
};
...
...
@@ -9083,6 +9105,25 @@
}
);
}
);
// i18n method for extensions to be able to use the language object from the
// DataTable
_api_register
(
'
i18n()
'
,
function
(
token
,
def
,
plural
)
{
var
ctx
=
this
.
context
[
0
];
var
resolved
=
_fnGetObjectDataFn
(
token
)(
ctx
.
oLanguage
);
if
(
resolved
===
undefined
)
{
resolved
=
def
;
}
if
(
plural
!==
undefined
&&
$
.
isPlainObject
(
resolved
)
)
{
resolved
=
resolved
[
plural
]
!==
undefined
?
resolved
[
plural
]
:
resolved
.
_
;
}
return
resolved
.
replace
(
'
%d
'
,
plural
);
// nb: plural might be undefined,
}
);
/**
* Version string for plug-ins to check compatibility. Allowed format is
...
...
@@ -9092,7 +9133,7 @@
* @type string
* @default Version number
*/
DataTable
.
version
=
"
1.10.
6
"
;
DataTable
.
version
=
"
1.10.
7
"
;
/**
* Private data store, containing all of the settings objects that are
...
...
@@ -13599,6 +13640,37 @@
search
:
[],
/**
* Selector extensions
*
* The `selector` option can be used to extend the options available for the
* selector modifier options (`selector-modifier` object data type) that
* each of the three built in selector types offer (row, column and cell +
* their plural counterparts). For example the Select extension uses this
* mechanism to provide an option to select only rows, columns and cells
* that have been marked as selected by the end user (`{selected: true}`),
* which can be used in conjunction with the existing built in selector
* options.
*
* Each property is an array to which functions can be pushed. The functions
* take three attributes:
*
* * Settings object for the host table
* * Options object (`selector-modifier` object type)
* * Array of selected item indexes
*
* The return is an array of the resulting item indexes after the custom
* selector has been applied.
*
* @type object
*/
selector
:
{
cell
:
[],
column
:
[],
row
:
[]
},
/**
* Internal functions, exposed for used in plug-ins.
*
...
...
plugins/datatables/jquery.dataTables.min.css
浏览文件 @
d9cc6e3d
此差异已折叠。
点击以展开。
plugins/datatables/jquery.dataTables.min.js
浏览文件 @
d9cc6e3d
此差异已折叠。
点击以展开。
plugins/datatables/jquery.dataTables_themeroller.css
浏览文件 @
d9cc6e3d
...
...
@@ -51,10 +51,10 @@ table.dataTable thead th.ui-state-default:last-child {
border-right-width
:
1px
;
}
table
.dataTable
tbody
tr
{
background-color
:
white
;
background-color
:
#ffffff
;
}
table
.dataTable
tbody
tr
.selected
{
background-color
:
#
b0bed
9
;
background-color
:
#
B0BED
9
;
}
table
.dataTable
tbody
th
,
table
.dataTable
tbody
td
{
...
...
@@ -70,7 +70,7 @@ table.dataTable td.right {
text-align
:
right
;
}
table
.dataTable.row-border
tbody
th
,
table
.dataTable.row-border
tbody
td
,
table
.dataTable.display
tbody
th
,
table
.dataTable.display
tbody
td
{
border-top
:
1px
solid
#ddd
ddd
;
border-top
:
1px
solid
#ddd
;
}
table
.dataTable.row-border
tbody
tr
:first-child
th
,
table
.dataTable.row-border
tbody
tr
:first-child
td
,
table
.dataTable.display
tbody
tr
:first-child
th
,
...
...
@@ -78,12 +78,12 @@ table.dataTable.display tbody tr:first-child td {
border-top
:
none
;
}
table
.dataTable.cell-border
tbody
th
,
table
.dataTable.cell-border
tbody
td
{
border-top
:
1px
solid
#ddd
ddd
;
border-right
:
1px
solid
#ddd
ddd
;
border-top
:
1px
solid
#ddd
;
border-right
:
1px
solid
#ddd
;
}
table
.dataTable.cell-border
tbody
tr
th
:first-child
,
table
.dataTable.cell-border
tbody
tr
td
:first-child
{
border-left
:
1px
solid
#ddd
ddd
;
border-left
:
1px
solid
#ddd
;
}
table
.dataTable.cell-border
tbody
tr
:first-child
th
,
table
.dataTable.cell-border
tbody
tr
:first-child
td
{
...
...
@@ -334,7 +334,7 @@ table.dataTable td {
text-decoration
:
none
!important
;
cursor
:
pointer
;
*
cursor
:
hand
;
color
:
#333
333
!important
;
color
:
#333
!important
;
border
:
1px
solid
transparent
;
}
.dataTables_wrapper
.dataTables_paginate
.fg-button
:active
{
...
...
@@ -378,7 +378,7 @@ table.dataTable td {
.dataTables_wrapper
.dataTables_info
,
.dataTables_wrapper
.dataTables_processing
,
.dataTables_wrapper
.dataTables_paginate
{
color
:
#333
333
;
color
:
#333
;
}
.dataTables_wrapper
.dataTables_scroll
{
clear
:
both
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录