Version Description
We no longer support timthumb and we have opted to remove it from WP Google Maps. Please update to 6.1.5 to ensure the removal of the timthumb script.
Download this release
Release Info
Developer | WPGMaps |
Plugin | WP Google Maps |
Version | 6.1.5 |
Comparing to | |
See all releases |
Code changes from version 6.1.4 to 6.1.5
- cache/timthumb_cacheLastCleanTime.touch +0 -0
- cache/timthumb_int_1feb94dfe4564036dfa309e87c1c70aa.timthumb.txt +0 -0
- cache/timthumb_int_9b31d30bd2ddcfe0c062091cc5c498d7.timthumb.txt +0 -0
- cache/wpgmaps.tmp +1 -0
- css/data_table_front.css +469 -553
- css/data_table_front_old.css +560 -0
- css/jquery.dataTables.min.css +1 -0
- css/wpgmza_style.css +72 -12
- images/back_disabled.png +0 -0
- images/back_enabled.png +0 -0
- images/back_enabled_hover.png +0 -0
- images/forward_disabled.png +0 -0
- images/forward_enabled.png +0 -0
- images/forward_enabled_hover.png +0 -0
- images/sort_asc.png +0 -0
- images/sort_asc_disabled.png +0 -0
- images/sort_both.png +0 -0
- images/sort_desc.png +0 -0
- images/sort_desc_disabled.png +0 -0
- js/dataTables.responsive.js +834 -0
- js/jquery.dataTables.js +10861 -8093
- js/jquery.dataTables.min.js +158 -0
- js/media.js +6 -2
- languages/wp-google-maps-en_EN.mo +0 -0
- languages/wp-google-maps-en_EN.po +946 -847
cache/timthumb_cacheLastCleanTime.touch
ADDED
File without changes
|
cache/timthumb_int_1feb94dfe4564036dfa309e87c1c70aa.timthumb.txt
ADDED
Binary file
|
cache/timthumb_int_9b31d30bd2ddcfe0c062091cc5c498d7.timthumb.txt
ADDED
Binary file
|
cache/wpgmaps.tmp
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
Permission Check
|
css/data_table_front.css
CHANGED
@@ -1,560 +1,476 @@
|
|
1 |
/*
|
2 |
-
*
|
3 |
-
* CVS: $Id$
|
4 |
-
* Description: CSS descriptions for DataTables demo pages
|
5 |
-
* Author: Allan Jardine
|
6 |
-
* Created: Tue May 12 06:47:22 BST 2009
|
7 |
-
* Modified: $Date$ by $Author$
|
8 |
-
* Language: CSS
|
9 |
-
* Project: DataTables
|
10 |
-
*
|
11 |
-
* Copyright 2009 Allan Jardine. All Rights Reserved.
|
12 |
-
*
|
13 |
-
* ***************************************************************************
|
14 |
-
* DESCRIPTION
|
15 |
-
*
|
16 |
-
* The styles given here are suitable for the demos that are used with the standard DataTables
|
17 |
-
* distribution (see www.datatables.net). You will most likely wish to modify these styles to
|
18 |
-
* meet the layout requirements of your site.
|
19 |
-
*
|
20 |
-
* Common issues:
|
21 |
-
* 'full_numbers' pagination - I use an extra selector on the body tag to ensure that there is
|
22 |
-
* no conflict between the two pagination types. If you want to use full_numbers pagination
|
23 |
-
* ensure that you either have "example_alt_pagination" as a body class name, or better yet,
|
24 |
-
* modify that selector.
|
25 |
-
* Note that the path used for Images is relative. All images are by default located in
|
26 |
-
* ../images/ - relative to this CSS file.
|
27 |
*/
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
.
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
}
|
71 |
-
|
72 |
-
.
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
.
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
}
|
86 |
-
.
|
87 |
-
.
|
88 |
-
|
89 |
-
}
|
90 |
-
.
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
.
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
}
|
102 |
-
.
|
103 |
-
|
104 |
-
|
105 |
-
}
|
106 |
-
|
107 |
-
.
|
108 |
-
|
109 |
-
}
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
.
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
.
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
table.display {
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
table.display
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
table.display
|
172 |
-
|
173 |
-
}
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
.
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
.
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
.
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
}
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
table.display tr.
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
table.
|
220 |
-
|
221 |
-
}
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
.
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
.
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
.
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
}
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
|
|
317 |
}
|
318 |
|
319 |
-
.paging_full_numbers a.paginate_button,
|
320 |
-
.paging_full_numbers a.paginate_active {
|
321 |
-
border: 1px solid #aaa;
|
322 |
-
-webkit-border-radius: 5px;
|
323 |
-
-moz-border-radius: 5px;
|
324 |
-
padding: 2px 5px;
|
325 |
-
margin: 0 3px;
|
326 |
-
cursor: pointer;
|
327 |
-
*cursor: hand;
|
328 |
-
color: #333 !important;
|
329 |
-
}
|
330 |
-
|
331 |
-
.paging_full_numbers a.paginate_button {
|
332 |
-
background-color: #ddd;
|
333 |
-
}
|
334 |
-
|
335 |
-
.paging_full_numbers a.paginate_button:hover {
|
336 |
-
background-color: #ccc;
|
337 |
-
text-decoration: none !important;
|
338 |
-
}
|
339 |
-
|
340 |
-
.paging_full_numbers a.paginate_active {
|
341 |
-
background-color: #99B3FF;
|
342 |
-
}
|
343 |
-
|
344 |
-
table.display tr.even.row_selected td {
|
345 |
-
background-color: #B0BED9;
|
346 |
-
}
|
347 |
-
|
348 |
-
table.display tr.odd.row_selected td {
|
349 |
-
background-color: #9FAFD1;
|
350 |
-
}
|
351 |
-
|
352 |
-
|
353 |
/*
|
354 |
-
*
|
355 |
*/
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
}
|
362 |
-
|
363 |
-
|
364 |
-
}
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
}
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
|
498 |
-
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
-
.
|
503 |
-
|
504 |
-
|
505 |
-
|
506 |
-
.
|
507 |
-
|
508 |
-
|
509 |
-
|
510 |
-
|
511 |
-
|
512 |
-
}
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
|
523 |
-
|
524 |
-
|
525 |
-
|
526 |
-
|
527 |
-
|
528 |
-
|
529 |
-
|
530 |
-
|
531 |
-
|
532 |
-
}
|
533 |
-
|
534 |
-
table.KeyTable td.focus {
|
535 |
-
border: 3px solid #3366FF;
|
536 |
-
}
|
537 |
-
|
538 |
-
table.display tr.gradeA {
|
539 |
-
background-color: #eeffee;
|
540 |
-
}
|
541 |
-
|
542 |
-
table.display tr.gradeC {
|
543 |
-
background-color: #ddddff;
|
544 |
-
}
|
545 |
-
|
546 |
-
table.display tr.gradeX {
|
547 |
-
background-color: #ffdddd;
|
548 |
-
}
|
549 |
-
|
550 |
-
table.display tr.gradeU {
|
551 |
-
background-color: #ddd;
|
552 |
-
}
|
553 |
-
|
554 |
-
#wpgmza_marker_holder div.box {
|
555 |
-
height: 100px;
|
556 |
-
padding: 10px;
|
557 |
-
overflow: auto;
|
558 |
-
border: 1px solid #8080FF;
|
559 |
-
background-color: #E5E5FF;
|
560 |
}
|
1 |
/*
|
2 |
+
* Table styles
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
*/
|
4 |
+
table.dataTable {
|
5 |
+
width: 100%;
|
6 |
+
margin: 0 auto;
|
7 |
+
clear: both;
|
8 |
+
border-collapse: separate;
|
9 |
+
border-spacing: 0;
|
10 |
+
/*
|
11 |
+
* Header and footer styles
|
12 |
+
*/
|
13 |
+
/*
|
14 |
+
* Body styles
|
15 |
+
*/
|
16 |
+
}
|
17 |
+
table.dataTable thead th,
|
18 |
+
table.dataTable tfoot th {
|
19 |
+
font-weight: bold;
|
20 |
+
}
|
21 |
+
table.dataTable thead th,
|
22 |
+
table.dataTable thead td {
|
23 |
+
padding: 10px 18px;
|
24 |
+
border-bottom: 1px solid #111111;
|
25 |
+
}
|
26 |
+
table.dataTable thead th:active,
|
27 |
+
table.dataTable thead td:active {
|
28 |
+
outline: none;
|
29 |
+
}
|
30 |
+
table.dataTable tfoot th,
|
31 |
+
table.dataTable tfoot td {
|
32 |
+
padding: 10px 18px 6px 18px;
|
33 |
+
border-top: 1px solid #111111;
|
34 |
+
}
|
35 |
+
table.dataTable thead .sorting_asc,
|
36 |
+
table.dataTable thead .sorting_desc,
|
37 |
+
table.dataTable thead .sorting {
|
38 |
+
cursor: pointer;
|
39 |
+
*cursor: hand;
|
40 |
+
}
|
41 |
+
table.dataTable thead .sorting {
|
42 |
+
background: url("../images/sort_both.png") no-repeat center right;
|
43 |
+
}
|
44 |
+
table.dataTable thead .sorting_asc {
|
45 |
+
background: url("../images/sort_asc.png") no-repeat center right;
|
46 |
+
}
|
47 |
+
table.dataTable thead .sorting_desc {
|
48 |
+
background: url("../images/sort_desc.png") no-repeat center right;
|
49 |
+
}
|
50 |
+
table.dataTable thead .sorting_asc_disabled {
|
51 |
+
background: url("../images/sort_asc_disabled.png") no-repeat center right;
|
52 |
+
}
|
53 |
+
table.dataTable thead .sorting_desc_disabled {
|
54 |
+
background: url("../images/sort_desc_disabled.png") no-repeat center right;
|
55 |
+
}
|
56 |
+
table.dataTable tbody tr {
|
57 |
+
background-color: white;
|
58 |
+
}
|
59 |
+
table.dataTable tbody tr.selected {
|
60 |
+
background-color: #b0bed9;
|
61 |
+
}
|
62 |
+
table.dataTable tbody th,
|
63 |
+
table.dataTable tbody td {
|
64 |
+
padding: 8px 10px;
|
65 |
+
}
|
66 |
+
table.dataTable.row-border tbody th, table.dataTable.row-border tbody td, table.dataTable.display tbody th, table.dataTable.display tbody td {
|
67 |
+
border-top: 1px solid #dddddd;
|
68 |
+
}
|
69 |
+
table.dataTable.row-border tbody tr:first-child th,
|
70 |
+
table.dataTable.row-border tbody tr:first-child td, table.dataTable.display tbody tr:first-child th,
|
71 |
+
table.dataTable.display tbody tr:first-child td {
|
72 |
+
border-top: none;
|
73 |
+
}
|
74 |
+
table.dataTable.cell-border tbody th, table.dataTable.cell-border tbody td {
|
75 |
+
border-top: 1px solid #dddddd;
|
76 |
+
border-right: 1px solid #dddddd;
|
77 |
+
}
|
78 |
+
table.dataTable.cell-border tbody tr th:first-child,
|
79 |
+
table.dataTable.cell-border tbody tr td:first-child {
|
80 |
+
border-left: 1px solid #dddddd;
|
81 |
+
}
|
82 |
+
table.dataTable.cell-border tbody tr:first-child th,
|
83 |
+
table.dataTable.cell-border tbody tr:first-child td {
|
84 |
+
border-top: none;
|
85 |
+
}
|
86 |
+
table.dataTable.stripe tbody tr.odd, table.dataTable.display tbody tr.odd {
|
87 |
+
background-color: #f9f9f9;
|
88 |
+
}
|
89 |
+
table.dataTable.stripe tbody tr.odd.selected, table.dataTable.display tbody tr.odd.selected {
|
90 |
+
background-color: #abb9d3;
|
91 |
+
}
|
92 |
+
table.dataTable.hover tbody tr:hover,
|
93 |
+
table.dataTable.hover tbody tr.odd:hover,
|
94 |
+
table.dataTable.hover tbody tr.even:hover, table.dataTable.display tbody tr:hover,
|
95 |
+
table.dataTable.display tbody tr.odd:hover,
|
96 |
+
table.dataTable.display tbody tr.even:hover {
|
97 |
+
background-color: whitesmoke;
|
98 |
+
}
|
99 |
+
table.dataTable.hover tbody tr:hover.selected,
|
100 |
+
table.dataTable.hover tbody tr.odd:hover.selected,
|
101 |
+
table.dataTable.hover tbody tr.even:hover.selected, table.dataTable.display tbody tr:hover.selected,
|
102 |
+
table.dataTable.display tbody tr.odd:hover.selected,
|
103 |
+
table.dataTable.display tbody tr.even:hover.selected {
|
104 |
+
background-color: #a9b7d1;
|
105 |
+
}
|
106 |
+
table.dataTable.order-column tbody tr > .sorting_1,
|
107 |
+
table.dataTable.order-column tbody tr > .sorting_2,
|
108 |
+
table.dataTable.order-column tbody tr > .sorting_3, table.dataTable.display tbody tr > .sorting_1,
|
109 |
+
table.dataTable.display tbody tr > .sorting_2,
|
110 |
+
table.dataTable.display tbody tr > .sorting_3 {
|
111 |
+
background-color: #f9f9f9;
|
112 |
+
}
|
113 |
+
table.dataTable.order-column tbody tr.selected > .sorting_1,
|
114 |
+
table.dataTable.order-column tbody tr.selected > .sorting_2,
|
115 |
+
table.dataTable.order-column tbody tr.selected > .sorting_3, table.dataTable.display tbody tr.selected > .sorting_1,
|
116 |
+
table.dataTable.display tbody tr.selected > .sorting_2,
|
117 |
+
table.dataTable.display tbody tr.selected > .sorting_3 {
|
118 |
+
background-color: #acbad4;
|
119 |
+
}
|
120 |
+
table.dataTable.display tbody tr.odd > .sorting_1, table.dataTable.order-column.stripe tbody tr.odd > .sorting_1 {
|
121 |
+
background-color: #f1f1f1;
|
122 |
+
}
|
123 |
+
table.dataTable.display tbody tr.odd > .sorting_2, table.dataTable.order-column.stripe tbody tr.odd > .sorting_2 {
|
124 |
+
background-color: #f3f3f3;
|
125 |
+
}
|
126 |
+
table.dataTable.display tbody tr.odd > .sorting_3, table.dataTable.order-column.stripe tbody tr.odd > .sorting_3 {
|
127 |
+
background-color: whitesmoke;
|
128 |
+
}
|
129 |
+
table.dataTable.display tbody tr.odd.selected > .sorting_1, table.dataTable.order-column.stripe tbody tr.odd.selected > .sorting_1 {
|
130 |
+
background-color: #a6b3cd;
|
131 |
+
}
|
132 |
+
table.dataTable.display tbody tr.odd.selected > .sorting_2, table.dataTable.order-column.stripe tbody tr.odd.selected > .sorting_2 {
|
133 |
+
background-color: #a7b5ce;
|
134 |
+
}
|
135 |
+
table.dataTable.display tbody tr.odd.selected > .sorting_3, table.dataTable.order-column.stripe tbody tr.odd.selected > .sorting_3 {
|
136 |
+
background-color: #a9b6d0;
|
137 |
+
}
|
138 |
+
table.dataTable.display tbody tr.even > .sorting_1, table.dataTable.order-column.stripe tbody tr.even > .sorting_1 {
|
139 |
+
background-color: #f9f9f9;
|
140 |
+
}
|
141 |
+
table.dataTable.display tbody tr.even > .sorting_2, table.dataTable.order-column.stripe tbody tr.even > .sorting_2 {
|
142 |
+
background-color: #fbfbfb;
|
143 |
+
}
|
144 |
+
table.dataTable.display tbody tr.even > .sorting_3, table.dataTable.order-column.stripe tbody tr.even > .sorting_3 {
|
145 |
+
background-color: #fdfdfd;
|
146 |
+
}
|
147 |
+
table.dataTable.display tbody tr.even.selected > .sorting_1, table.dataTable.order-column.stripe tbody tr.even.selected > .sorting_1 {
|
148 |
+
background-color: #acbad4;
|
149 |
+
}
|
150 |
+
table.dataTable.display tbody tr.even.selected > .sorting_2, table.dataTable.order-column.stripe tbody tr.even.selected > .sorting_2 {
|
151 |
+
background-color: #adbbd6;
|
152 |
+
}
|
153 |
+
table.dataTable.display tbody tr.even.selected > .sorting_3, table.dataTable.order-column.stripe tbody tr.even.selected > .sorting_3 {
|
154 |
+
background-color: #afbdd8;
|
155 |
+
}
|
156 |
+
table.dataTable.display tbody tr:hover > .sorting_1,
|
157 |
+
table.dataTable.display tbody tr.odd:hover > .sorting_1,
|
158 |
+
table.dataTable.display tbody tr.even:hover > .sorting_1, table.dataTable.order-column.hover tbody tr:hover > .sorting_1,
|
159 |
+
table.dataTable.order-column.hover tbody tr.odd:hover > .sorting_1,
|
160 |
+
table.dataTable.order-column.hover tbody tr.even:hover > .sorting_1 {
|
161 |
+
background-color: #eaeaea;
|
162 |
+
}
|
163 |
+
table.dataTable.display tbody tr:hover > .sorting_2,
|
164 |
+
table.dataTable.display tbody tr.odd:hover > .sorting_2,
|
165 |
+
table.dataTable.display tbody tr.even:hover > .sorting_2, table.dataTable.order-column.hover tbody tr:hover > .sorting_2,
|
166 |
+
table.dataTable.order-column.hover tbody tr.odd:hover > .sorting_2,
|
167 |
+
table.dataTable.order-column.hover tbody tr.even:hover > .sorting_2 {
|
168 |
+
background-color: #ebebeb;
|
169 |
+
}
|
170 |
+
table.dataTable.display tbody tr:hover > .sorting_3,
|
171 |
+
table.dataTable.display tbody tr.odd:hover > .sorting_3,
|
172 |
+
table.dataTable.display tbody tr.even:hover > .sorting_3, table.dataTable.order-column.hover tbody tr:hover > .sorting_3,
|
173 |
+
table.dataTable.order-column.hover tbody tr.odd:hover > .sorting_3,
|
174 |
+
table.dataTable.order-column.hover tbody tr.even:hover > .sorting_3 {
|
175 |
+
background-color: #eeeeee;
|
176 |
+
}
|
177 |
+
table.dataTable.display tbody tr:hover.selected > .sorting_1,
|
178 |
+
table.dataTable.display tbody tr.odd:hover.selected > .sorting_1,
|
179 |
+
table.dataTable.display tbody tr.even:hover.selected > .sorting_1, table.dataTable.order-column.hover tbody tr:hover.selected > .sorting_1,
|
180 |
+
table.dataTable.order-column.hover tbody tr.odd:hover.selected > .sorting_1,
|
181 |
+
table.dataTable.order-column.hover tbody tr.even:hover.selected > .sorting_1 {
|
182 |
+
background-color: #a1aec7;
|
183 |
+
}
|
184 |
+
table.dataTable.display tbody tr:hover.selected > .sorting_2,
|
185 |
+
table.dataTable.display tbody tr.odd:hover.selected > .sorting_2,
|
186 |
+
table.dataTable.display tbody tr.even:hover.selected > .sorting_2, table.dataTable.order-column.hover tbody tr:hover.selected > .sorting_2,
|
187 |
+
table.dataTable.order-column.hover tbody tr.odd:hover.selected > .sorting_2,
|
188 |
+
table.dataTable.order-column.hover tbody tr.even:hover.selected > .sorting_2 {
|
189 |
+
background-color: #a2afc8;
|
190 |
+
}
|
191 |
+
table.dataTable.display tbody tr:hover.selected > .sorting_3,
|
192 |
+
table.dataTable.display tbody tr.odd:hover.selected > .sorting_3,
|
193 |
+
table.dataTable.display tbody tr.even:hover.selected > .sorting_3, table.dataTable.order-column.hover tbody tr:hover.selected > .sorting_3,
|
194 |
+
table.dataTable.order-column.hover tbody tr.odd:hover.selected > .sorting_3,
|
195 |
+
table.dataTable.order-column.hover tbody tr.even:hover.selected > .sorting_3 {
|
196 |
+
background-color: #a4b2cb;
|
197 |
+
}
|
198 |
+
table.dataTable.no-footer {
|
199 |
+
border-bottom: 1px solid #111111;
|
200 |
+
}
|
201 |
+
table.dataTable.nowrap th, table.dataTable.nowrap td {
|
202 |
+
white-space: nowrap;
|
203 |
+
}
|
204 |
+
table.dataTable.compact thead th,
|
205 |
+
table.dataTable.compact thead td {
|
206 |
+
padding: 5px 9px;
|
207 |
+
}
|
208 |
+
table.dataTable.compact tfoot th,
|
209 |
+
table.dataTable.compact tfoot td {
|
210 |
+
padding: 5px 9px 3px 9px;
|
211 |
+
}
|
212 |
+
table.dataTable.compact tbody th,
|
213 |
+
table.dataTable.compact tbody td {
|
214 |
+
padding: 4px 5px;
|
215 |
+
}
|
216 |
+
table.dataTable th.dt-left,
|
217 |
+
table.dataTable td.dt-left {
|
218 |
+
text-align: left;
|
219 |
+
}
|
220 |
+
table.dataTable th.dt-center,
|
221 |
+
table.dataTable td.dt-center,
|
222 |
+
table.dataTable td.dataTables_empty {
|
223 |
+
text-align: center;
|
224 |
+
}
|
225 |
+
table.dataTable th.dt-right,
|
226 |
+
table.dataTable td.dt-right {
|
227 |
+
text-align: right;
|
228 |
+
}
|
229 |
+
table.dataTable th.dt-justify,
|
230 |
+
table.dataTable td.dt-justify {
|
231 |
+
text-align: justify;
|
232 |
+
}
|
233 |
+
table.dataTable th.dt-nowrap,
|
234 |
+
table.dataTable td.dt-nowrap {
|
235 |
+
white-space: nowrap;
|
236 |
+
}
|
237 |
+
table.dataTable thead th.dt-head-left,
|
238 |
+
table.dataTable thead td.dt-head-left,
|
239 |
+
table.dataTable tfoot th.dt-head-left,
|
240 |
+
table.dataTable tfoot td.dt-head-left {
|
241 |
+
text-align: left;
|
242 |
+
}
|
243 |
+
table.dataTable thead th.dt-head-center,
|
244 |
+
table.dataTable thead td.dt-head-center,
|
245 |
+
table.dataTable tfoot th.dt-head-center,
|
246 |
+
table.dataTable tfoot td.dt-head-center {
|
247 |
+
text-align: center;
|
248 |
+
}
|
249 |
+
table.dataTable thead th.dt-head-right,
|
250 |
+
table.dataTable thead td.dt-head-right,
|
251 |
+
table.dataTable tfoot th.dt-head-right,
|
252 |
+
table.dataTable tfoot td.dt-head-right {
|
253 |
+
text-align: right;
|
254 |
+
}
|
255 |
+
table.dataTable thead th.dt-head-justify,
|
256 |
+
table.dataTable thead td.dt-head-justify,
|
257 |
+
table.dataTable tfoot th.dt-head-justify,
|
258 |
+
table.dataTable tfoot td.dt-head-justify {
|
259 |
+
text-align: justify;
|
260 |
+
}
|
261 |
+
table.dataTable thead th.dt-head-nowrap,
|
262 |
+
table.dataTable thead td.dt-head-nowrap,
|
263 |
+
table.dataTable tfoot th.dt-head-nowrap,
|
264 |
+
table.dataTable tfoot td.dt-head-nowrap {
|
265 |
+
white-space: nowrap;
|
266 |
+
}
|
267 |
+
table.dataTable tbody th.dt-body-left,
|
268 |
+
table.dataTable tbody td.dt-body-left {
|
269 |
+
text-align: left;
|
270 |
+
}
|
271 |
+
table.dataTable tbody th.dt-body-center,
|
272 |
+
table.dataTable tbody td.dt-body-center {
|
273 |
+
text-align: center;
|
274 |
+
}
|
275 |
+
table.dataTable tbody th.dt-body-right,
|
276 |
+
table.dataTable tbody td.dt-body-right {
|
277 |
+
text-align: right;
|
278 |
+
}
|
279 |
+
table.dataTable tbody th.dt-body-justify,
|
280 |
+
table.dataTable tbody td.dt-body-justify {
|
281 |
+
text-align: justify;
|
282 |
+
}
|
283 |
+
table.dataTable tbody th.dt-body-nowrap,
|
284 |
+
table.dataTable tbody td.dt-body-nowrap {
|
285 |
+
white-space: nowrap;
|
286 |
+
}
|
287 |
+
|
288 |
+
table.dataTable,
|
289 |
+
table.dataTable th,
|
290 |
+
table.dataTable td {
|
291 |
+
-webkit-box-sizing: content-box;
|
292 |
+
-moz-box-sizing: content-box;
|
293 |
+
box-sizing: content-box;
|
294 |
}
|
295 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
296 |
/*
|
297 |
+
* Control feature layout
|
298 |
*/
|
299 |
+
.dataTables_wrapper {
|
300 |
+
position: relative;
|
301 |
+
clear: both;
|
302 |
+
*zoom: 1;
|
303 |
+
zoom: 1;
|
304 |
+
}
|
305 |
+
.dataTables_wrapper .dataTables_length {
|
306 |
+
float: left;
|
307 |
+
}
|
308 |
+
.dataTables_wrapper .dataTables_filter {
|
309 |
+
float: right;
|
310 |
+
text-align: right;
|
311 |
+
}
|
312 |
+
.dataTables_wrapper .dataTables_filter input {
|
313 |
+
margin-left: 0.5em;
|
314 |
+
}
|
315 |
+
.dataTables_wrapper .dataTables_info {
|
316 |
+
clear: both;
|
317 |
+
float: left;
|
318 |
+
padding-top: 0.755em;
|
319 |
+
}
|
320 |
+
.dataTables_wrapper .dataTables_paginate {
|
321 |
+
float: right;
|
322 |
+
text-align: right;
|
323 |
+
padding-top: 0.25em;
|
324 |
+
}
|
325 |
+
.dataTables_wrapper .dataTables_paginate .paginate_button {
|
326 |
+
box-sizing: border-box;
|
327 |
+
display: inline-block;
|
328 |
+
min-width: 1.5em;
|
329 |
+
padding: 0.5em 1em;
|
330 |
+
margin-left: 2px;
|
331 |
+
text-align: center;
|
332 |
+
text-decoration: none !important;
|
333 |
+
cursor: pointer;
|
334 |
+
*cursor: hand;
|
335 |
+
color: #333333 !important;
|
336 |
+
border: 1px solid transparent;
|
337 |
+
}
|
338 |
+
.dataTables_wrapper .dataTables_paginate .paginate_button.current, .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
|
339 |
+
color: #333333 !important;
|
340 |
+
border: 1px solid #cacaca;
|
341 |
+
background-color: white;
|
342 |
+
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, white), color-stop(100%, gainsboro));
|
343 |
+
/* Chrome,Safari4+ */
|
344 |
+
background: -webkit-linear-gradient(top, white 0%, gainsboro 100%);
|
345 |
+
/* Chrome10+,Safari5.1+ */
|
346 |
+
background: -moz-linear-gradient(top, white 0%, gainsboro 100%);
|
347 |
+
/* FF3.6+ */
|
348 |
+
background: -ms-linear-gradient(top, white 0%, gainsboro 100%);
|
349 |
+
/* IE10+ */
|
350 |
+
background: -o-linear-gradient(top, white 0%, gainsboro 100%);
|
351 |
+
/* Opera 11.10+ */
|
352 |
+
background: linear-gradient(to bottom, white 0%, gainsboro 100%);
|
353 |
+
/* W3C */
|
354 |
+
}
|
355 |
+
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled, .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover, .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active {
|
356 |
+
cursor: default;
|
357 |
+
color: #666 !important;
|
358 |
+
border: 1px solid transparent;
|
359 |
+
background: transparent;
|
360 |
+
box-shadow: none;
|
361 |
+
}
|
362 |
+
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
|
363 |
+
color: white !important;
|
364 |
+
border: 1px solid #111111;
|
365 |
+
background-color: #585858;
|
366 |
+
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #585858), color-stop(100%, #111111));
|
367 |
+
/* Chrome,Safari4+ */
|
368 |
+
background: -webkit-linear-gradient(top, #585858 0%, #111111 100%);
|
369 |
+
/* Chrome10+,Safari5.1+ */
|
370 |
+
background: -moz-linear-gradient(top, #585858 0%, #111111 100%);
|
371 |
+
/* FF3.6+ */
|
372 |
+
background: -ms-linear-gradient(top, #585858 0%, #111111 100%);
|
373 |
+
/* IE10+ */
|
374 |
+
background: -o-linear-gradient(top, #585858 0%, #111111 100%);
|
375 |
+
/* Opera 11.10+ */
|
376 |
+
background: linear-gradient(to bottom, #585858 0%, #111111 100%);
|
377 |
+
/* W3C */
|
378 |
+
}
|
379 |
+
.dataTables_wrapper .dataTables_paginate .paginate_button:active {
|
380 |
+
outline: none;
|
381 |
+
background-color: #2b2b2b;
|
382 |
+
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #2b2b2b), color-stop(100%, #0c0c0c));
|
383 |
+
/* Chrome,Safari4+ */
|
384 |
+
background: -webkit-linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%);
|
385 |
+
/* Chrome10+,Safari5.1+ */
|
386 |
+
background: -moz-linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%);
|
387 |
+
/* FF3.6+ */
|
388 |
+
background: -ms-linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%);
|
389 |
+
/* IE10+ */
|
390 |
+
background: -o-linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%);
|
391 |
+
/* Opera 11.10+ */
|
392 |
+
background: linear-gradient(to bottom, #2b2b2b 0%, #0c0c0c 100%);
|
393 |
+
/* W3C */
|
394 |
+
box-shadow: inset 0 0 3px #111;
|
395 |
+
}
|
396 |
+
.dataTables_wrapper .dataTables_processing {
|
397 |
+
position: absolute;
|
398 |
+
top: 50%;
|
399 |
+
left: 50%;
|
400 |
+
width: 100%;
|
401 |
+
height: 40px;
|
402 |
+
margin-left: -50%;
|
403 |
+
margin-top: -25px;
|
404 |
+
padding-top: 20px;
|
405 |
+
text-align: center;
|
406 |
+
font-size: 1.2em;
|
407 |
+
background-color: white;
|
408 |
+
background: -webkit-gradient(linear, left top, right top, color-stop(0%, rgba(255, 255, 255, 0)), color-stop(25%, rgba(255, 255, 255, 0.9)), color-stop(75%, rgba(255, 255, 255, 0.9)), color-stop(100%, rgba(255, 255, 255, 0)));
|
409 |
+
/* Chrome,Safari4+ */
|
410 |
+
background: -webkit-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 25%, rgba(255, 255, 255, 0.9) 75%, rgba(255, 255, 255, 0) 100%);
|
411 |
+
/* Chrome10+,Safari5.1+ */
|
412 |
+
background: -moz-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 25%, rgba(255, 255, 255, 0.9) 75%, rgba(255, 255, 255, 0) 100%);
|
413 |
+
/* FF3.6+ */
|
414 |
+
background: -ms-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 25%, rgba(255, 255, 255, 0.9) 75%, rgba(255, 255, 255, 0) 100%);
|
415 |
+
/* IE10+ */
|
416 |
+
background: -o-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 25%, rgba(255, 255, 255, 0.9) 75%, rgba(255, 255, 255, 0) 100%);
|
417 |
+
/* Opera 11.10+ */
|
418 |
+
background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 25%, rgba(255, 255, 255, 0.9) 75%, rgba(255, 255, 255, 0) 100%);
|
419 |
+
/* W3C */
|
420 |
+
}
|
421 |
+
.dataTables_wrapper .dataTables_length,
|
422 |
+
.dataTables_wrapper .dataTables_filter,
|
423 |
+
.dataTables_wrapper .dataTables_info,
|
424 |
+
.dataTables_wrapper .dataTables_processing,
|
425 |
+
.dataTables_wrapper .dataTables_paginate {
|
426 |
+
color: #333333;
|
427 |
+
}
|
428 |
+
.dataTables_wrapper .dataTables_scroll {
|
429 |
+
clear: both;
|
430 |
+
}
|
431 |
+
.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody {
|
432 |
+
*margin-top: -1px;
|
433 |
+
-webkit-overflow-scrolling: touch;
|
434 |
+
}
|
435 |
+
.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody th > div.dataTables_sizing,
|
436 |
+
.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody td > div.dataTables_sizing {
|
437 |
+
height: 0;
|
438 |
+
overflow: hidden;
|
439 |
+
margin: 0 !important;
|
440 |
+
padding: 0 !important;
|
441 |
+
}
|
442 |
+
.dataTables_wrapper.no-footer .dataTables_scrollBody {
|
443 |
+
border-bottom: 1px solid #111111;
|
444 |
+
}
|
445 |
+
.dataTables_wrapper.no-footer div.dataTables_scrollHead table,
|
446 |
+
.dataTables_wrapper.no-footer div.dataTables_scrollBody table {
|
447 |
+
border-bottom: none;
|
448 |
+
}
|
449 |
+
.dataTables_wrapper:after {
|
450 |
+
visibility: hidden;
|
451 |
+
display: block;
|
452 |
+
content: "";
|
453 |
+
clear: both;
|
454 |
+
height: 0;
|
455 |
+
}
|
456 |
+
|
457 |
+
@media screen and (max-width: 767px) {
|
458 |
+
.dataTables_wrapper .dataTables_info,
|
459 |
+
.dataTables_wrapper .dataTables_paginate {
|
460 |
+
float: none;
|
461 |
+
text-align: center;
|
462 |
+
}
|
463 |
+
.dataTables_wrapper .dataTables_paginate {
|
464 |
+
margin-top: 0.5em;
|
465 |
+
}
|
466 |
+
}
|
467 |
+
@media screen and (max-width: 640px) {
|
468 |
+
.dataTables_wrapper .dataTables_length,
|
469 |
+
.dataTables_wrapper .dataTables_filter {
|
470 |
+
float: none;
|
471 |
+
text-align: center;
|
472 |
+
}
|
473 |
+
.dataTables_wrapper .dataTables_filter {
|
474 |
+
margin-top: 0.5em;
|
475 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
476 |
}
|
css/data_table_front_old.css
ADDED
@@ -0,0 +1,560 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
* File: demo_table.css
|
3 |
+
* CVS: $Id$
|
4 |
+
* Description: CSS descriptions for DataTables demo pages
|
5 |
+
* Author: Allan Jardine
|
6 |
+
* Created: Tue May 12 06:47:22 BST 2009
|
7 |
+
* Modified: $Date$ by $Author$
|
8 |
+
* Language: CSS
|
9 |
+
* Project: DataTables
|
10 |
+
*
|
11 |
+
* Copyright 2009 Allan Jardine. All Rights Reserved.
|
12 |
+
*
|
13 |
+
* ***************************************************************************
|
14 |
+
* DESCRIPTION
|
15 |
+
*
|
16 |
+
* The styles given here are suitable for the demos that are used with the standard DataTables
|
17 |
+
* distribution (see www.datatables.net). You will most likely wish to modify these styles to
|
18 |
+
* meet the layout requirements of your site.
|
19 |
+
*
|
20 |
+
* Common issues:
|
21 |
+
* 'full_numbers' pagination - I use an extra selector on the body tag to ensure that there is
|
22 |
+
* no conflict between the two pagination types. If you want to use full_numbers pagination
|
23 |
+
* ensure that you either have "example_alt_pagination" as a body class name, or better yet,
|
24 |
+
* modify that selector.
|
25 |
+
* Note that the path used for Images is relative. All images are by default located in
|
26 |
+
* ../images/ - relative to this CSS file.
|
27 |
+
*/
|
28 |
+
|
29 |
+
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
30 |
+
* DataTables features
|
31 |
+
*/
|
32 |
+
|
33 |
+
.dataTables_wrapper {
|
34 |
+
position: relative;
|
35 |
+
clear: both;
|
36 |
+
zoom: 1; /* Feeling sorry for IE */
|
37 |
+
}
|
38 |
+
|
39 |
+
.dataTables_processing {
|
40 |
+
position: absolute;
|
41 |
+
top: 50%;
|
42 |
+
left: 50%;
|
43 |
+
width: 250px;
|
44 |
+
height: 30px;
|
45 |
+
margin-left: -125px;
|
46 |
+
margin-top: -15px;
|
47 |
+
padding: 14px 0 2px 0;
|
48 |
+
border: 1px solid #ddd;
|
49 |
+
text-align: center;
|
50 |
+
color: #999;
|
51 |
+
font-size: 14px;
|
52 |
+
background-color: white;
|
53 |
+
display:none !important;
|
54 |
+
}
|
55 |
+
|
56 |
+
.dataTables_length {
|
57 |
+
|
58 |
+
float: left;
|
59 |
+
}
|
60 |
+
|
61 |
+
.dataTables_filter {
|
62 |
+
|
63 |
+
float: right;
|
64 |
+
text-align: right;
|
65 |
+
}
|
66 |
+
|
67 |
+
.dataTables_info {
|
68 |
+
|
69 |
+
float: left;
|
70 |
+
}
|
71 |
+
|
72 |
+
.dataTables_paginate {
|
73 |
+
float: right;
|
74 |
+
text-align: right;
|
75 |
+
}
|
76 |
+
|
77 |
+
/* Pagination nested */
|
78 |
+
.paginate_disabled_previous, .paginate_enabled_previous,
|
79 |
+
.paginate_disabled_next, .paginate_enabled_next {
|
80 |
+
height: 19px;
|
81 |
+
float: left;
|
82 |
+
cursor: pointer;
|
83 |
+
*cursor: hand;
|
84 |
+
color: #111 !important;
|
85 |
+
}
|
86 |
+
.paginate_disabled_previous:hover, .paginate_enabled_previous:hover,
|
87 |
+
.paginate_disabled_next:hover, .paginate_enabled_next:hover {
|
88 |
+
text-decoration: none !important;
|
89 |
+
}
|
90 |
+
.paginate_disabled_previous:active, .paginate_enabled_previous:active,
|
91 |
+
.paginate_disabled_next:active, .paginate_enabled_next:active {
|
92 |
+
outline: none;
|
93 |
+
}
|
94 |
+
|
95 |
+
.paginate_disabled_previous,
|
96 |
+
.paginate_disabled_next {
|
97 |
+
color: #666 !important;
|
98 |
+
}
|
99 |
+
.paginate_disabled_previous, .paginate_enabled_previous {
|
100 |
+
padding-left: 23px;
|
101 |
+
}
|
102 |
+
.paginate_disabled_next, .paginate_enabled_next {
|
103 |
+
padding-right: 23px;
|
104 |
+
margin-left: 10px;
|
105 |
+
}
|
106 |
+
|
107 |
+
.paginate_disabled_previous {
|
108 |
+
background: url('../images/back_disabled.png') no-repeat top left;
|
109 |
+
}
|
110 |
+
|
111 |
+
.paginate_enabled_previous {
|
112 |
+
background: url('../images/back_enabled.png') no-repeat top left;
|
113 |
+
}
|
114 |
+
.paginate_enabled_previous:hover {
|
115 |
+
background: url('../images/back_enabled_hover.png') no-repeat top left;
|
116 |
+
}
|
117 |
+
|
118 |
+
.paginate_disabled_next {
|
119 |
+
background: url('../images/forward_disabled.png') no-repeat top right;
|
120 |
+
}
|
121 |
+
|
122 |
+
.paginate_enabled_next {
|
123 |
+
background: url('../images/forward_enabled.png') no-repeat top right;
|
124 |
+
}
|
125 |
+
.paginate_enabled_next:hover {
|
126 |
+
background: url('../images/forward_enabled_hover.png') no-repeat top right;
|
127 |
+
}
|
128 |
+
|
129 |
+
|
130 |
+
|
131 |
+
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
132 |
+
* DataTables display
|
133 |
+
*/
|
134 |
+
table.display {
|
135 |
+
margin: 0 auto;
|
136 |
+
clear: both;
|
137 |
+
width: 100%;
|
138 |
+
|
139 |
+
/* Note Firefox 3.5 and before have a bug with border-collapse
|
140 |
+
* ( https://bugzilla.mozilla.org/show%5Fbug.cgi?id=155955 )
|
141 |
+
* border-spacing: 0; is one possible option. Conditional-css.com is
|
142 |
+
* useful for this kind of thing
|
143 |
+
*
|
144 |
+
* Further note IE 6/7 has problems when calculating widths with border width.
|
145 |
+
* It subtracts one px relative to the other browsers from the first column, and
|
146 |
+
* adds one to the end...
|
147 |
+
*
|
148 |
+
* If you want that effect I'd suggest setting a border-top/left on th/td's and
|
149 |
+
* then filling in the gaps with other borders.
|
150 |
+
*/
|
151 |
+
}
|
152 |
+
|
153 |
+
table.display thead th {
|
154 |
+
padding: 3px 18px 3px 10px;
|
155 |
+
border-bottom: 1px solid black;
|
156 |
+
font-weight: bold;
|
157 |
+
cursor: pointer;
|
158 |
+
* cursor: hand;
|
159 |
+
}
|
160 |
+
|
161 |
+
table.display tfoot th {
|
162 |
+
padding: 3px 18px 3px 10px;
|
163 |
+
border-top: 1px solid black;
|
164 |
+
font-weight: bold;
|
165 |
+
}
|
166 |
+
|
167 |
+
table.display tr.heading2 td {
|
168 |
+
border-bottom: 1px solid #aaa;
|
169 |
+
}
|
170 |
+
|
171 |
+
table.display td {
|
172 |
+
padding: 3px 10px;
|
173 |
+
}
|
174 |
+
|
175 |
+
table.display td.center {
|
176 |
+
text-align: center;
|
177 |
+
}
|
178 |
+
|
179 |
+
|
180 |
+
|
181 |
+
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
182 |
+
* DataTables sorting
|
183 |
+
*/
|
184 |
+
|
185 |
+
.sorting_asc {
|
186 |
+
background: url('../images/sort_asc.png') no-repeat center right;
|
187 |
+
}
|
188 |
+
|
189 |
+
.sorting_desc {
|
190 |
+
background: url('../images/sort_desc.png') no-repeat center right;
|
191 |
+
}
|
192 |
+
|
193 |
+
.sorting {
|
194 |
+
background: url('../images/sort_both.png') no-repeat center right;
|
195 |
+
}
|
196 |
+
|
197 |
+
.sorting_asc_disabled {
|
198 |
+
background: url('../images/sort_asc_disabled.png') no-repeat center right;
|
199 |
+
}
|
200 |
+
|
201 |
+
.sorting_desc_disabled {
|
202 |
+
background: url('../images/sort_desc_disabled.png') no-repeat center right;
|
203 |
+
}
|
204 |
+
|
205 |
+
th:active {
|
206 |
+
outline: none;
|
207 |
+
}
|
208 |
+
|
209 |
+
|
210 |
+
|
211 |
+
|
212 |
+
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
213 |
+
* DataTables row classes
|
214 |
+
*/
|
215 |
+
table.display tr.odd.gradeA {
|
216 |
+
background-color: #ddffdd;
|
217 |
+
}
|
218 |
+
|
219 |
+
table.display tr.even.gradeA {
|
220 |
+
background-color: #eeffee;
|
221 |
+
}
|
222 |
+
|
223 |
+
table.display tr.odd.gradeC {
|
224 |
+
background-color: #ddddff;
|
225 |
+
}
|
226 |
+
|
227 |
+
table.display tr.even.gradeC {
|
228 |
+
background-color: #eeeeff;
|
229 |
+
}
|
230 |
+
|
231 |
+
table.display tr.odd.gradeX {
|
232 |
+
background-color: #ffdddd;
|
233 |
+
}
|
234 |
+
|
235 |
+
table.display tr.even.gradeX {
|
236 |
+
background-color: #ffeeee;
|
237 |
+
}
|
238 |
+
|
239 |
+
table.display tr.odd.gradeU {
|
240 |
+
background-color: #ddd;
|
241 |
+
}
|
242 |
+
|
243 |
+
table.display tr.even.gradeU {
|
244 |
+
background-color: #eee;
|
245 |
+
}
|
246 |
+
|
247 |
+
|
248 |
+
tr.odd {
|
249 |
+
background-color: #EEEEEE;
|
250 |
+
}
|
251 |
+
|
252 |
+
tr.even {
|
253 |
+
background-color: white;
|
254 |
+
}
|
255 |
+
|
256 |
+
|
257 |
+
|
258 |
+
|
259 |
+
|
260 |
+
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
261 |
+
* Misc
|
262 |
+
*/
|
263 |
+
.dataTables_scroll {
|
264 |
+
clear: both;
|
265 |
+
}
|
266 |
+
|
267 |
+
.dataTables_scrollBody {
|
268 |
+
*margin-top: -1px;
|
269 |
+
}
|
270 |
+
|
271 |
+
.clear {
|
272 |
+
clear: both;
|
273 |
+
}
|
274 |
+
|
275 |
+
.dataTables_empty {
|
276 |
+
text-align: center;
|
277 |
+
}
|
278 |
+
|
279 |
+
tfoot input {
|
280 |
+
margin: 0.5em 0;
|
281 |
+
width: 100%;
|
282 |
+
color: #444;
|
283 |
+
}
|
284 |
+
|
285 |
+
tfoot input.search_init {
|
286 |
+
color: #999;
|
287 |
+
}
|
288 |
+
|
289 |
+
td.group {
|
290 |
+
background-color: #d1cfd0;
|
291 |
+
border-bottom: 2px solid #A19B9E;
|
292 |
+
border-top: 2px solid #A19B9E;
|
293 |
+
}
|
294 |
+
|
295 |
+
td.details {
|
296 |
+
background-color: #d1cfd0;
|
297 |
+
border: 2px solid #A19B9E;
|
298 |
+
}
|
299 |
+
|
300 |
+
|
301 |
+
.example_alt_pagination div.dataTables_info {
|
302 |
+
width: 40%;
|
303 |
+
}
|
304 |
+
|
305 |
+
.paging_full_numbers {
|
306 |
+
width: 400px;
|
307 |
+
height: 22px;
|
308 |
+
line-height: 22px;
|
309 |
+
}
|
310 |
+
|
311 |
+
.paging_full_numbers a:active {
|
312 |
+
outline: none
|
313 |
+
}
|
314 |
+
|
315 |
+
.paging_full_numbers a:hover {
|
316 |
+
text-decoration: none;
|
317 |
+
}
|
318 |
+
|
319 |
+
.paging_full_numbers a.paginate_button,
|
320 |
+
.paging_full_numbers a.paginate_active {
|
321 |
+
border: 1px solid #aaa;
|
322 |
+
-webkit-border-radius: 5px;
|
323 |
+
-moz-border-radius: 5px;
|
324 |
+
padding: 2px 5px;
|
325 |
+
margin: 0 3px;
|
326 |
+
cursor: pointer;
|
327 |
+
*cursor: hand;
|
328 |
+
color: #333 !important;
|
329 |
+
}
|
330 |
+
|
331 |
+
.paging_full_numbers a.paginate_button {
|
332 |
+
background-color: #ddd;
|
333 |
+
}
|
334 |
+
|
335 |
+
.paging_full_numbers a.paginate_button:hover {
|
336 |
+
background-color: #ccc;
|
337 |
+
text-decoration: none !important;
|
338 |
+
}
|
339 |
+
|
340 |
+
.paging_full_numbers a.paginate_active {
|
341 |
+
background-color: #99B3FF;
|
342 |
+
}
|
343 |
+
|
344 |
+
table.display tr.even.row_selected td {
|
345 |
+
background-color: #B0BED9;
|
346 |
+
}
|
347 |
+
|
348 |
+
table.display tr.odd.row_selected td {
|
349 |
+
background-color: #9FAFD1;
|
350 |
+
}
|
351 |
+
|
352 |
+
|
353 |
+
/*
|
354 |
+
* Sorting classes for columns
|
355 |
+
*/
|
356 |
+
/* For the standard odd/even */
|
357 |
+
tr.odd td.sorting_1 {
|
358 |
+
}
|
359 |
+
|
360 |
+
tr.odd td.sorting_2 {
|
361 |
+
}
|
362 |
+
|
363 |
+
tr.odd td.sorting_3 {
|
364 |
+
}
|
365 |
+
|
366 |
+
tr.even td.sorting_1 {
|
367 |
+
}
|
368 |
+
|
369 |
+
tr.even td.sorting_2 {
|
370 |
+
}
|
371 |
+
|
372 |
+
tr.even td.sorting_3 {
|
373 |
+
}
|
374 |
+
|
375 |
+
|
376 |
+
/* For the Conditional-CSS grading rows */
|
377 |
+
/*
|
378 |
+
Colour calculations (based off the main row colours)
|
379 |
+
Level 1:
|
380 |
+
dd > c4
|
381 |
+
ee > d5
|
382 |
+
Level 2:
|
383 |
+
dd > d1
|
384 |
+
ee > e2
|
385 |
+
*/
|
386 |
+
tr.odd.gradeA td.sorting_1 {
|
387 |
+
background-color: #c4ffc4;
|
388 |
+
}
|
389 |
+
|
390 |
+
tr.odd.gradeA td.sorting_2 {
|
391 |
+
background-color: #d1ffd1;
|
392 |
+
}
|
393 |
+
|
394 |
+
tr.odd.gradeA td.sorting_3 {
|
395 |
+
background-color: #d1ffd1;
|
396 |
+
}
|
397 |
+
|
398 |
+
tr.even.gradeA td.sorting_1 {
|
399 |
+
background-color: #d5ffd5;
|
400 |
+
}
|
401 |
+
|
402 |
+
tr.even.gradeA td.sorting_2 {
|
403 |
+
background-color: #e2ffe2;
|
404 |
+
}
|
405 |
+
|
406 |
+
tr.even.gradeA td.sorting_3 {
|
407 |
+
background-color: #e2ffe2;
|
408 |
+
}
|
409 |
+
|
410 |
+
tr.odd.gradeC td.sorting_1 {
|
411 |
+
background-color: #c4c4ff;
|
412 |
+
}
|
413 |
+
|
414 |
+
tr.odd.gradeC td.sorting_2 {
|
415 |
+
background-color: #d1d1ff;
|
416 |
+
}
|
417 |
+
|
418 |
+
tr.odd.gradeC td.sorting_3 {
|
419 |
+
background-color: #d1d1ff;
|
420 |
+
}
|
421 |
+
|
422 |
+
tr.even.gradeC td.sorting_1 {
|
423 |
+
background-color: #d5d5ff;
|
424 |
+
}
|
425 |
+
|
426 |
+
tr.even.gradeC td.sorting_2 {
|
427 |
+
background-color: #e2e2ff;
|
428 |
+
}
|
429 |
+
|
430 |
+
tr.even.gradeC td.sorting_3 {
|
431 |
+
background-color: #e2e2ff;
|
432 |
+
}
|
433 |
+
|
434 |
+
tr.odd.gradeX td.sorting_1 {
|
435 |
+
background-color: #ffc4c4;
|
436 |
+
}
|
437 |
+
|
438 |
+
tr.odd.gradeX td.sorting_2 {
|
439 |
+
background-color: #ffd1d1;
|
440 |
+
}
|
441 |
+
|
442 |
+
tr.odd.gradeX td.sorting_3 {
|
443 |
+
background-color: #ffd1d1;
|
444 |
+
}
|
445 |
+
|
446 |
+
tr.even.gradeX td.sorting_1 {
|
447 |
+
background-color: #ffd5d5;
|
448 |
+
}
|
449 |
+
|
450 |
+
tr.even.gradeX td.sorting_2 {
|
451 |
+
background-color: #ffe2e2;
|
452 |
+
}
|
453 |
+
|
454 |
+
tr.even.gradeX td.sorting_3 {
|
455 |
+
background-color: #ffe2e2;
|
456 |
+
}
|
457 |
+
|
458 |
+
tr.odd.gradeU td.sorting_1 {
|
459 |
+
background-color: #c4c4c4;
|
460 |
+
}
|
461 |
+
|
462 |
+
tr.odd.gradeU td.sorting_2 {
|
463 |
+
background-color: #d1d1d1;
|
464 |
+
}
|
465 |
+
|
466 |
+
tr.odd.gradeU td.sorting_3 {
|
467 |
+
background-color: #d1d1d1;
|
468 |
+
}
|
469 |
+
|
470 |
+
tr.even.gradeU td.sorting_1 {
|
471 |
+
background-color: #d5d5d5;
|
472 |
+
}
|
473 |
+
|
474 |
+
tr.even.gradeU td.sorting_2 {
|
475 |
+
background-color: #e2e2e2;
|
476 |
+
}
|
477 |
+
|
478 |
+
tr.even.gradeU td.sorting_3 {
|
479 |
+
background-color: #e2e2e2;
|
480 |
+
}
|
481 |
+
|
482 |
+
|
483 |
+
/*
|
484 |
+
* Row highlighting example
|
485 |
+
*/
|
486 |
+
.ex_highlight #example tbody tr.even:hover, #example tbody tr.even td.highlighted {
|
487 |
+
background-color: #ECFFB3;
|
488 |
+
}
|
489 |
+
|
490 |
+
.ex_highlight #example tbody tr.odd:hover, #example tbody tr.odd td.highlighted {
|
491 |
+
background-color: #E6FF99;
|
492 |
+
}
|
493 |
+
|
494 |
+
.ex_highlight_row #example tr.even:hover {
|
495 |
+
background-color: #ECFFB3;
|
496 |
+
}
|
497 |
+
|
498 |
+
.ex_highlight_row #example tr.even:hover td.sorting_1 {
|
499 |
+
background-color: #DDFF75;
|
500 |
+
}
|
501 |
+
|
502 |
+
.ex_highlight_row #example tr.even:hover td.sorting_2 {
|
503 |
+
background-color: #E7FF9E;
|
504 |
+
}
|
505 |
+
|
506 |
+
.ex_highlight_row #example tr.even:hover td.sorting_3 {
|
507 |
+
background-color: #E2FF89;
|
508 |
+
}
|
509 |
+
|
510 |
+
.ex_highlight_row #example tr.odd:hover {
|
511 |
+
background-color: #E6FF99;
|
512 |
+
}
|
513 |
+
|
514 |
+
.ex_highlight_row #example tr.odd:hover td.sorting_1 {
|
515 |
+
background-color: #D6FF5C;
|
516 |
+
}
|
517 |
+
|
518 |
+
.ex_highlight_row #example tr.odd:hover td.sorting_2 {
|
519 |
+
background-color: #E0FF84;
|
520 |
+
}
|
521 |
+
|
522 |
+
.ex_highlight_row #example tr.odd:hover td.sorting_3 {
|
523 |
+
background-color: #DBFF70;
|
524 |
+
}
|
525 |
+
|
526 |
+
|
527 |
+
/*
|
528 |
+
* KeyTable
|
529 |
+
*/
|
530 |
+
table.KeyTable td {
|
531 |
+
border: 3px solid transparent;
|
532 |
+
}
|
533 |
+
|
534 |
+
table.KeyTable td.focus {
|
535 |
+
border: 3px solid #3366FF;
|
536 |
+
}
|
537 |
+
|
538 |
+
table.display tr.gradeA {
|
539 |
+
background-color: #eeffee;
|
540 |
+
}
|
541 |
+
|
542 |
+
table.display tr.gradeC {
|
543 |
+
background-color: #ddddff;
|
544 |
+
}
|
545 |
+
|
546 |
+
table.display tr.gradeX {
|
547 |
+
background-color: #ffdddd;
|
548 |
+
}
|
549 |
+
|
550 |
+
table.display tr.gradeU {
|
551 |
+
background-color: #ddd;
|
552 |
+
}
|
553 |
+
|
554 |
+
#wpgmza_marker_holder div.box {
|
555 |
+
height: 100px;
|
556 |
+
padding: 10px;
|
557 |
+
overflow: auto;
|
558 |
+
border: 1px solid #8080FF;
|
559 |
+
background-color: #E5E5FF;
|
560 |
+
}
|
css/jquery.dataTables.min.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
table.dataTable{width:100%;margin:0 auto;clear:both;border-collapse:separate;border-spacing:0}table.dataTable thead th,table.dataTable tfoot th{font-weight:bold}table.dataTable thead th,table.dataTable thead td{padding:10px 18px;border-bottom:1px solid #111}table.dataTable thead th:active,table.dataTable thead td:active{outline:none}table.dataTable tfoot th,table.dataTable tfoot td{padding:10px 18px 6px 18px;border-top:1px solid #111}table.dataTable thead .sorting_asc,table.dataTable thead .sorting_desc,table.dataTable thead .sorting{cursor:pointer;*cursor:hand}table.dataTable thead .sorting{background:url("../images/sort_both.png") no-repeat center right}table.dataTable thead .sorting_asc{background:url("../images/sort_asc.png") no-repeat center right}table.dataTable thead .sorting_desc{background:url("../images/sort_desc.png") no-repeat center right}table.dataTable thead .sorting_asc_disabled{background:url("../images/sort_asc_disabled.png") no-repeat center right}table.dataTable thead .sorting_desc_disabled{background:url("../images/sort_desc_disabled.png") no-repeat center right}table.dataTable tbody tr{background-color:#fff}table.dataTable tbody tr.selected{background-color:#b0bed9}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}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,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;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}table.dataTable.cell-border tbody tr:first-child th,table.dataTable.cell-border tbody tr:first-child td{border-top:none}table.dataTable.stripe tbody tr.odd,table.dataTable.display tbody tr.odd{background-color:#f9f9f9}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{background-color:#f5f5f5}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{background-color:#a9b7d1}table.dataTable.order-column tbody tr>.sorting_1,table.dataTable.order-column tbody tr>.sorting_2,table.dataTable.order-column tbody tr>.sorting_3,table.dataTable.display tbody tr>.sorting_1,table.dataTable.display tbody tr>.sorting_2,table.dataTable.display tbody tr>.sorting_3{background-color:#f9f9f9}table.dataTable.order-column tbody tr.selected>.sorting_1,table.dataTable.order-column tbody tr.selected>.sorting_2,table.dataTable.order-column tbody tr.selected>.sorting_3,table.dataTable.display tbody tr.selected>.sorting_1,table.dataTable.display tbody tr.selected>.sorting_2,table.dataTable.display tbody tr.selected>.sorting_3{background-color:#acbad4}table.dataTable.display tbody tr.odd>.sorting_1,table.dataTable.order-column.stripe tbody tr.odd>.sorting_1{background-color:#f1f1f1}table.dataTable.display tbody tr.odd>.sorting_2,table.dataTable.order-column.stripe tbody tr.odd>.sorting_2{background-color:#f3f3f3}table.dataTable.display tbody tr.odd>.sorting_3,table.dataTable.order-column.stripe tbody tr.odd>.sorting_3{background-color:#f5f5f5}table.dataTable.display tbody tr.odd.selected>.sorting_1,table.dataTable.order-column.stripe tbody tr.odd.selected>.sorting_1{background-color:#a6b3cd}table.dataTable.display tbody tr.odd.selected>.sorting_2,table.dataTable.order-column.stripe tbody tr.odd.selected>.sorting_2{background-color:#a7b5ce}table.dataTable.display tbody tr.odd.selected>.sorting_3,table.dataTable.order-column.stripe tbody tr.odd.selected>.sorting_3{background-color:#a9b6d0}table.dataTable.display tbody tr.even>.sorting_1,table.dataTable.order-column.stripe tbody tr.even>.sorting_1{background-color:#f9f9f9}table.dataTable.display tbody tr.even>.sorting_2,table.dataTable.order-column.stripe tbody tr.even>.sorting_2{background-color:#fbfbfb}table.dataTable.display tbody tr.even>.sorting_3,table.dataTable.order-column.stripe tbody tr.even>.sorting_3{background-color:#fdfdfd}table.dataTable.display tbody tr.even.selected>.sorting_1,table.dataTable.order-column.stripe tbody tr.even.selected>.sorting_1{background-color:#acbad4}table.dataTable.display tbody tr.even.selected>.sorting_2,table.dataTable.order-column.stripe tbody tr.even.selected>.sorting_2{background-color:#adbbd6}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{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{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{background-color:#eee}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{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{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{background-color:#a4b2cb}table.dataTable.no-footer{border-bottom:1px solid #111}table.dataTable.nowrap th,table.dataTable.nowrap td{white-space:nowrap}table.dataTable.compact thead th,table.dataTable.compact thead td{padding:5px 9px}table.dataTable.compact tfoot th,table.dataTable.compact tfoot td{padding:5px 9px 3px 9px}table.dataTable.compact tbody th,table.dataTable.compact tbody td{padding:4px 5px}table.dataTable th.dt-left,table.dataTable td.dt-left{text-align:left}table.dataTable th.dt-center,table.dataTable td.dt-center,table.dataTable td.dataTables_empty{text-align:center}table.dataTable th.dt-right,table.dataTable td.dt-right{text-align:right}table.dataTable th.dt-justify,table.dataTable td.dt-justify{text-align:justify}table.dataTable th.dt-nowrap,table.dataTable td.dt-nowrap{white-space:nowrap}table.dataTable thead th.dt-head-left,table.dataTable thead td.dt-head-left,table.dataTable tfoot th.dt-head-left,table.dataTable tfoot td.dt-head-left{text-align:left}table.dataTable thead th.dt-head-center,table.dataTable thead td.dt-head-center,table.dataTable tfoot th.dt-head-center,table.dataTable tfoot td.dt-head-center{text-align:center}table.dataTable thead th.dt-head-right,table.dataTable thead td.dt-head-right,table.dataTable tfoot th.dt-head-right,table.dataTable tfoot td.dt-head-right{text-align:right}table.dataTable thead th.dt-head-justify,table.dataTable thead td.dt-head-justify,table.dataTable tfoot th.dt-head-justify,table.dataTable tfoot td.dt-head-justify{text-align:justify}table.dataTable thead th.dt-head-nowrap,table.dataTable thead td.dt-head-nowrap,table.dataTable tfoot th.dt-head-nowrap,table.dataTable tfoot td.dt-head-nowrap{white-space:nowrap}table.dataTable tbody th.dt-body-left,table.dataTable tbody td.dt-body-left{text-align:left}table.dataTable tbody th.dt-body-center,table.dataTable tbody td.dt-body-center{text-align:center}table.dataTable tbody th.dt-body-right,table.dataTable tbody td.dt-body-right{text-align:right}table.dataTable tbody th.dt-body-justify,table.dataTable tbody td.dt-body-justify{text-align:justify}table.dataTable tbody th.dt-body-nowrap,table.dataTable tbody td.dt-body-nowrap{white-space:nowrap}table.dataTable,table.dataTable th,table.dataTable td{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.dataTables_wrapper{position:relative;clear:both;*zoom:1;zoom:1}.dataTables_wrapper .dataTables_length{float:left}.dataTables_wrapper .dataTables_filter{float:right;text-align:right}.dataTables_wrapper .dataTables_filter input{margin-left:0.5em}.dataTables_wrapper .dataTables_info{clear:both;float:left;padding-top:0.755em}.dataTables_wrapper .dataTables_paginate{float:right;text-align:right;padding-top:0.25em}.dataTables_wrapper .dataTables_paginate .paginate_button{box-sizing:border-box;display:inline-block;min-width:1.5em;padding:0.5em 1em;margin-left:2px;text-align:center;text-decoration:none !important;cursor:pointer;*cursor:hand;color:#333 !important;border:1px solid transparent}.dataTables_wrapper .dataTables_paginate .paginate_button.current,.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover{color:#333 !important;border:1px solid #cacaca;background-color:#fff;background:-webkit-gradient(linear, left top, left bottom, color-stop(0%, #fff), color-stop(100%, #dcdcdc));background:-webkit-linear-gradient(top, #fff 0%, #dcdcdc 100%);background:-moz-linear-gradient(top, #fff 0%, #dcdcdc 100%);background:-ms-linear-gradient(top, #fff 0%, #dcdcdc 100%);background:-o-linear-gradient(top, #fff 0%, #dcdcdc 100%);background:linear-gradient(to bottom, #fff 0%, #dcdcdc 100%)}.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover,.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active{cursor:default;color:#666 !important;border:1px solid transparent;background:transparent;box-shadow:none}.dataTables_wrapper .dataTables_paginate .paginate_button:hover{color:white !important;border:1px solid #111;background-color:#585858;background:-webkit-gradient(linear, left top, left bottom, color-stop(0%, #585858), color-stop(100%, #111));background:-webkit-linear-gradient(top, #585858 0%, #111 100%);background:-moz-linear-gradient(top, #585858 0%, #111 100%);background:-ms-linear-gradient(top, #585858 0%, #111 100%);background:-o-linear-gradient(top, #585858 0%, #111 100%);background:linear-gradient(to bottom, #585858 0%, #111 100%)}.dataTables_wrapper .dataTables_paginate .paginate_button:active{outline:none;background-color:#2b2b2b;background:-webkit-gradient(linear, left top, left bottom, color-stop(0%, #2b2b2b), color-stop(100%, #0c0c0c));background:-webkit-linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%);background:-moz-linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%);background:-ms-linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%);background:-o-linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%);background:linear-gradient(to bottom, #2b2b2b 0%, #0c0c0c 100%);box-shadow:inset 0 0 3px #111}.dataTables_wrapper .dataTables_processing{position:absolute;top:50%;left:50%;width:100%;height:40px;margin-left:-50%;margin-top:-25px;padding-top:20px;text-align:center;font-size:1.2em;background-color:white;background:-webkit-gradient(linear, left top, right top, color-stop(0%, rgba(255,255,255,0)), color-stop(25%, rgba(255,255,255,0.9)), color-stop(75%, rgba(255,255,255,0.9)), color-stop(100%, rgba(255,255,255,0)));background:-webkit-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);background:-moz-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);background:-ms-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);background:-o-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);background:linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%)}.dataTables_wrapper .dataTables_length,.dataTables_wrapper .dataTables_filter,.dataTables_wrapper .dataTables_info,.dataTables_wrapper .dataTables_processing,.dataTables_wrapper .dataTables_paginate{color:#333}.dataTables_wrapper .dataTables_scroll{clear:both}.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody{*margin-top:-1px;-webkit-overflow-scrolling:touch}.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody th>div.dataTables_sizing,.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody td>div.dataTables_sizing{height:0;overflow:hidden;margin:0 !important;padding:0 !important}.dataTables_wrapper.no-footer .dataTables_scrollBody{border-bottom:1px solid #111}.dataTables_wrapper.no-footer div.dataTables_scrollHead table,.dataTables_wrapper.no-footer div.dataTables_scrollBody table{border-bottom:none}.dataTables_wrapper:after{visibility:hidden;display:block;content:"";clear:both;height:0}@media screen and (max-width: 767px){.dataTables_wrapper .dataTables_info,.dataTables_wrapper .dataTables_paginate{float:none;text-align:center}.dataTables_wrapper .dataTables_paginate{margin-top:0.5em}}@media screen and (max-width: 640px){.dataTables_wrapper .dataTables_length,.dataTables_wrapper .dataTables_filter{float:none;text-align:center}.dataTables_wrapper .dataTables_filter{margin-top:0.5em}}
|
css/wpgmza_style.css
CHANGED
@@ -108,18 +108,7 @@
|
|
108 |
min-width:100px;
|
109 |
}
|
110 |
|
111 |
-
|
112 |
-
width:40% !important;
|
113 |
-
}
|
114 |
-
.wpgmza_table_marker {
|
115 |
-
width:10% !important;
|
116 |
-
}
|
117 |
-
.wpgmza_table_title {
|
118 |
-
width:20% !important;
|
119 |
-
}
|
120 |
-
.wpgmza_table_address {
|
121 |
-
width:30% !important;
|
122 |
-
}
|
123 |
.dataTables_filter input[type="text"], .dataTables_filter select { display: inline !important; }
|
124 |
.dataTables_filter label { font-weight:bold; }
|
125 |
.adp-placemark img { width:24px !important; max-width:none !important; }
|
@@ -266,3 +255,74 @@
|
|
266 |
.wpgmza_infowindow_address { white-space: normal; }
|
267 |
.wpgmza_infowindow_title { font-weight: bold; }
|
268 |
.gm-style-iw div {overflow:visible !important;}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
108 |
min-width:100px;
|
109 |
}
|
110 |
|
111 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
112 |
.dataTables_filter input[type="text"], .dataTables_filter select { display: inline !important; }
|
113 |
.dataTables_filter label { font-weight:bold; }
|
114 |
.adp-placemark img { width:24px !important; max-width:none !important; }
|
255 |
.wpgmza_infowindow_address { white-space: normal; }
|
256 |
.wpgmza_infowindow_title { font-weight: bold; }
|
257 |
.gm-style-iw div {overflow:visible !important;}
|
258 |
+
#wpgmza_marker_list tr { vertical-align: middle !important; }
|
259 |
+
#wpgmza_marker_list td { vertical-align: middle !important; }
|
260 |
+
#wpgmza_marker_list td img { vertical-align: middle !important; }
|
261 |
+
|
262 |
+
.wpgmza_marker_carousel { clear:both; }
|
263 |
+
|
264 |
+
.wpgmza-shadow {
|
265 |
+
-webkit-box-shadow: 3px 3px 10px 0px rgba(107,107,107,1);
|
266 |
+
-moz-box-shadow: 3px 3px 10px 0px rgba(107,107,107,1);
|
267 |
+
box-shadow: 3px 3px 10px 0px rgba(107,107,107,1);
|
268 |
+
}
|
269 |
+
.wpgmza_innermap_holder {
|
270 |
+
padding:5px;
|
271 |
+
background-color:white;
|
272 |
+
border 1px solid #ccc;
|
273 |
+
border-radius:5px;
|
274 |
+
}
|
275 |
+
.wpgmza_small_img { max-width: 14px; max-height: 14px; }
|
276 |
+
ul.wpgmza_marker_list_class {
|
277 |
+
list-style: none;
|
278 |
+
margin-left:5px;
|
279 |
+
padding-left:0;
|
280 |
+
}
|
281 |
+
|
282 |
+
.wpgmza-basic-list-item { float:left; cursor:pointer; }
|
283 |
+
.wpgmaps_blist_row { clear:both; display:block; height:auto; overflow:hidden; }
|
284 |
+
.wpgmaps_blist_row:hover { background-color:#EEE; }
|
285 |
+
.wpgmza_div_marker { width:17px; height:17px; }
|
286 |
+
.wpgmza_div_address { padding-left:2px;}
|
287 |
+
|
288 |
+
|
289 |
+
.wpgmza_row {
|
290 |
+
width:100%;
|
291 |
+
display:block;
|
292 |
+
overflow:auto;
|
293 |
+
}
|
294 |
+
.wpgmza_row_col {
|
295 |
+
width:90%;
|
296 |
+
float:left;
|
297 |
+
display:block;
|
298 |
+
overflow:auto;
|
299 |
+
margin:0.25%;
|
300 |
+
padding:0.2%;
|
301 |
+
min-height:360px;
|
302 |
+
}
|
303 |
+
.wpgmza_row_col h2 {
|
304 |
+
font-weight:900;
|
305 |
+
}
|
306 |
+
.wpgmza_row_col ul li {
|
307 |
+
margin: 0.3em 2.5em;
|
308 |
+
}
|
309 |
+
|
310 |
+
.wpgmza_row_col ul {
|
311 |
+
list-style-type:disc;
|
312 |
+
}
|
313 |
+
|
314 |
+
|
315 |
+
@media only screen and (min-width:480px) {
|
316 |
+
.wpgmza_row_col {
|
317 |
+
width:31%;
|
318 |
+
float:left;
|
319 |
+
display:block;
|
320 |
+
overflow:auto;
|
321 |
+
margin:0.25%;
|
322 |
+
padding:0.2%;
|
323 |
+
min-height:360px;
|
324 |
+
}
|
325 |
+
|
326 |
+
|
327 |
+
|
328 |
+
}
|
images/back_disabled.png
CHANGED
Binary file
|
images/back_enabled.png
CHANGED
Binary file
|
images/back_enabled_hover.png
CHANGED
Binary file
|
images/forward_disabled.png
CHANGED
Binary file
|
images/forward_enabled.png
CHANGED
Binary file
|
images/forward_enabled_hover.png
CHANGED
Binary file
|
images/sort_asc.png
CHANGED
Binary file
|
images/sort_asc_disabled.png
CHANGED
Binary file
|
images/sort_both.png
CHANGED
Binary file
|
images/sort_desc.png
CHANGED
Binary file
|
images/sort_desc_disabled.png
CHANGED
Binary file
|
js/dataTables.responsive.js
ADDED
@@ -0,0 +1,834 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*! Responsive 1.0.4
|
2 |
+
* 2014 SpryMedia Ltd - datatables.net/license
|
3 |
+
*/
|
4 |
+
|
5 |
+
/**
|
6 |
+
* @summary Responsive
|
7 |
+
* @description Responsive tables plug-in for DataTables
|
8 |
+
* @version 1.0.4
|
9 |
+
* @file dataTables.responsive.js
|
10 |
+
* @author SpryMedia Ltd (www.sprymedia.co.uk)
|
11 |
+
* @contact www.sprymedia.co.uk/contact
|
12 |
+
* @copyright Copyright 2014 SpryMedia Ltd.
|
13 |
+
*
|
14 |
+
* This source file is free software, available under the following license:
|
15 |
+
* MIT license - http://datatables.net/license/mit
|
16 |
+
*
|
17 |
+
* This source file is distributed in the hope that it will be useful, but
|
18 |
+
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
19 |
+
* or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.
|
20 |
+
*
|
21 |
+
* For details please refer to: http://www.datatables.net
|
22 |
+
*/
|
23 |
+
|
24 |
+
(function(window, document, undefined) {
|
25 |
+
|
26 |
+
|
27 |
+
var factory = function( $, DataTable ) {
|
28 |
+
"use strict";
|
29 |
+
|
30 |
+
/**
|
31 |
+
* Responsive is a plug-in for the DataTables library that makes use of
|
32 |
+
* DataTables' ability to change the visibility of columns, changing the
|
33 |
+
* visibility of columns so the displayed columns fit into the table container.
|
34 |
+
* The end result is that complex tables will be dynamically adjusted to fit
|
35 |
+
* into the viewport, be it on a desktop, tablet or mobile browser.
|
36 |
+
*
|
37 |
+
* Responsive for DataTables has two modes of operation, which can used
|
38 |
+
* individually or combined:
|
39 |
+
*
|
40 |
+
* * Class name based control - columns assigned class names that match the
|
41 |
+
* breakpoint logic can be shown / hidden as required for each breakpoint.
|
42 |
+
* * Automatic control - columns are automatically hidden when there is no
|
43 |
+
* room left to display them. Columns removed from the right.
|
44 |
+
*
|
45 |
+
* In additional to column visibility control, Responsive also has built into
|
46 |
+
* options to use DataTables' child row display to show / hide the information
|
47 |
+
* from the table that has been hidden. There are also two modes of operation
|
48 |
+
* for this child row display:
|
49 |
+
*
|
50 |
+
* * Inline - when the control element that the user can use to show / hide
|
51 |
+
* child rows is displayed inside the first column of the table.
|
52 |
+
* * Column - where a whole column is dedicated to be the show / hide control.
|
53 |
+
*
|
54 |
+
* Initialisation of Responsive is performed by:
|
55 |
+
*
|
56 |
+
* * Adding the class `responsive` or `dt-responsive` to the table. In this case
|
57 |
+
* Responsive will automatically be initialised with the default configuration
|
58 |
+
* options when the DataTable is created.
|
59 |
+
* * Using the `responsive` option in the DataTables configuration options. This
|
60 |
+
* can also be used to specify the configuration options, or simply set to
|
61 |
+
* `true` to use the defaults.
|
62 |
+
*
|
63 |
+
* @class
|
64 |
+
* @param {object} settings DataTables settings object for the host table
|
65 |
+
* @param {object} [opts] Configuration options
|
66 |
+
* @requires jQuery 1.7+
|
67 |
+
* @requires DataTables 1.10.1+
|
68 |
+
*
|
69 |
+
* @example
|
70 |
+
* $('#example').DataTable( {
|
71 |
+
* responsive: true
|
72 |
+
* } );
|
73 |
+
* } );
|
74 |
+
*/
|
75 |
+
var Responsive = function ( settings, opts ) {
|
76 |
+
// Sanity check that we are using DataTables 1.10 or newer
|
77 |
+
if ( ! DataTable.versionCheck || ! DataTable.versionCheck( '1.10.1' ) ) {
|
78 |
+
throw 'DataTables Responsive requires DataTables 1.10.1 or newer';
|
79 |
+
}
|
80 |
+
|
81 |
+
this.s = {
|
82 |
+
dt: new DataTable.Api( settings ),
|
83 |
+
columns: []
|
84 |
+
};
|
85 |
+
|
86 |
+
// Check if responsive has already been initialised on this table
|
87 |
+
if ( this.s.dt.settings()[0].responsive ) {
|
88 |
+
return;
|
89 |
+
}
|
90 |
+
|
91 |
+
// details is an object, but for simplicity the user can give it as a string
|
92 |
+
if ( opts && typeof opts.details === 'string' ) {
|
93 |
+
opts.details = { type: opts.details };
|
94 |
+
}
|
95 |
+
|
96 |
+
this.c = $.extend( true, {}, Responsive.defaults, DataTable.defaults.responsive, opts );
|
97 |
+
settings.responsive = this;
|
98 |
+
this._constructor();
|
99 |
+
};
|
100 |
+
|
101 |
+
Responsive.prototype = {
|
102 |
+
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
103 |
+
* Constructor
|
104 |
+
*/
|
105 |
+
|
106 |
+
/**
|
107 |
+
* Initialise the Responsive instance
|
108 |
+
*
|
109 |
+
* @private
|
110 |
+
*/
|
111 |
+
_constructor: function ()
|
112 |
+
{
|
113 |
+
var that = this;
|
114 |
+
var dt = this.s.dt;
|
115 |
+
|
116 |
+
dt.settings()[0]._responsive = this;
|
117 |
+
|
118 |
+
// Use DataTables' private throttle function to avoid processor thrashing
|
119 |
+
$(window).on( 'resize.dtr orientationchange.dtr', dt.settings()[0].oApi._fnThrottle( function () {
|
120 |
+
that._resize();
|
121 |
+
} ) );
|
122 |
+
|
123 |
+
// Destroy event handler
|
124 |
+
dt.on( 'destroy.dtr', function () {
|
125 |
+
$(window).off( 'resize.dtr orientationchange.dtr draw.dtr' );
|
126 |
+
} );
|
127 |
+
|
128 |
+
// Reorder the breakpoints array here in case they have been added out
|
129 |
+
// of order
|
130 |
+
this.c.breakpoints.sort( function (a, b) {
|
131 |
+
return a.width < b.width ? 1 :
|
132 |
+
a.width > b.width ? -1 : 0;
|
133 |
+
} );
|
134 |
+
|
135 |
+
// Determine which columns are already hidden, and should therefore
|
136 |
+
// remain hidden. TODO - should this be done? See thread 22677
|
137 |
+
//
|
138 |
+
// this.s.alwaysHidden = dt.columns(':hidden').indexes();
|
139 |
+
|
140 |
+
this._classLogic();
|
141 |
+
this._resizeAuto();
|
142 |
+
|
143 |
+
// First pass - draw the table for the current viewport size
|
144 |
+
this._resize();
|
145 |
+
|
146 |
+
// Details handler
|
147 |
+
var details = this.c.details;
|
148 |
+
if ( details.type ) {
|
149 |
+
that._detailsInit();
|
150 |
+
this._detailsVis();
|
151 |
+
|
152 |
+
dt.on( 'column-visibility.dtr', function () {
|
153 |
+
that._detailsVis();
|
154 |
+
} );
|
155 |
+
|
156 |
+
// Redraw the details box on each draw. This is used until
|
157 |
+
// DataTables implements a native `updated` event for rows
|
158 |
+
dt.on( 'draw.dtr', function () {
|
159 |
+
dt.rows().iterator( 'row', function ( settings, idx ) {
|
160 |
+
var row = dt.row( idx );
|
161 |
+
|
162 |
+
if ( row.child.isShown() ) {
|
163 |
+
var info = that.c.details.renderer( dt, idx );
|
164 |
+
row.child( info, 'child' ).show();
|
165 |
+
}
|
166 |
+
} );
|
167 |
+
} );
|
168 |
+
|
169 |
+
$(dt.table().node()).addClass( 'dtr-'+details.type );
|
170 |
+
}
|
171 |
+
},
|
172 |
+
|
173 |
+
|
174 |
+
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
175 |
+
* Private methods
|
176 |
+
*/
|
177 |
+
|
178 |
+
/**
|
179 |
+
* Calculate the visibility for the columns in a table for a given
|
180 |
+
* breakpoint. The result is pre-determined based on the class logic if
|
181 |
+
* class names are used to control all columns, but the width of the table
|
182 |
+
* is also used if there are columns which are to be automatically shown
|
183 |
+
* and hidden.
|
184 |
+
*
|
185 |
+
* @param {string} breakpoint Breakpoint name to use for the calculation
|
186 |
+
* @return {array} Array of boolean values initiating the visibility of each
|
187 |
+
* column.
|
188 |
+
* @private
|
189 |
+
*/
|
190 |
+
_columnsVisiblity: function ( breakpoint )
|
191 |
+
{
|
192 |
+
var dt = this.s.dt;
|
193 |
+
var columns = this.s.columns;
|
194 |
+
var i, ien;
|
195 |
+
|
196 |
+
// Class logic - determine which columns are in this breakpoint based
|
197 |
+
// on the classes. If no class control (i.e. `auto`) then `-` is used
|
198 |
+
// to indicate this to the rest of the function
|
199 |
+
var display = $.map( columns, function ( col ) {
|
200 |
+
return col.auto && col.minWidth === null ?
|
201 |
+
false :
|
202 |
+
col.auto === true ?
|
203 |
+
'-' :
|
204 |
+
$.inArray( breakpoint, col.includeIn ) !== -1;
|
205 |
+
} );
|
206 |
+
|
207 |
+
// Auto column control - first pass: how much width is taken by the
|
208 |
+
// ones that must be included from the non-auto columns
|
209 |
+
var requiredWidth = 0;
|
210 |
+
for ( i=0, ien=display.length ; i<ien ; i++ ) {
|
211 |
+
if ( display[i] === true ) {
|
212 |
+
requiredWidth += columns[i].minWidth;
|
213 |
+
}
|
214 |
+
}
|
215 |
+
|
216 |
+
// Second pass, use up any remaining width for other columns
|
217 |
+
var widthAvailable = dt.table().container().offsetWidth;
|
218 |
+
var usedWidth = widthAvailable - requiredWidth;
|
219 |
+
|
220 |
+
// Control column needs to always be included. This makes it sub-
|
221 |
+
// optimal in terms of using the available with, but to stop layout
|
222 |
+
// thrashing or overflow. Also we need to account for the control column
|
223 |
+
// width first so we know how much width is available for the other
|
224 |
+
// columns, since the control column might not be the first one shown
|
225 |
+
for ( i=0, ien=display.length ; i<ien ; i++ ) {
|
226 |
+
if ( columns[i].control ) {
|
227 |
+
usedWidth -= columns[i].minWidth;
|
228 |
+
}
|
229 |
+
}
|
230 |
+
|
231 |
+
// Allow columns to be shown (counting from the left) until we run out
|
232 |
+
// of room
|
233 |
+
for ( i=0, ien=display.length ; i<ien ; i++ ) {
|
234 |
+
if ( display[i] === '-' && ! columns[i].control ) {
|
235 |
+
display[i] = usedWidth - columns[i].minWidth < 0 ?
|
236 |
+
false :
|
237 |
+
true;
|
238 |
+
|
239 |
+
usedWidth -= columns[i].minWidth;
|
240 |
+
}
|
241 |
+
}
|
242 |
+
|
243 |
+
// Determine if the 'control' column should be shown (if there is one).
|
244 |
+
// This is the case when there is a hidden column (that is not the
|
245 |
+
// control column). The two loops look inefficient here, but they are
|
246 |
+
// trivial and will fly through. We need to know the outcome from the
|
247 |
+
// first , before the action in the second can be taken
|
248 |
+
var showControl = false;
|
249 |
+
|
250 |
+
for ( i=0, ien=columns.length ; i<ien ; i++ ) {
|
251 |
+
if ( ! columns[i].control && ! columns[i].never && ! display[i] ) {
|
252 |
+
showControl = true;
|
253 |
+
break;
|
254 |
+
}
|
255 |
+
}
|
256 |
+
|
257 |
+
for ( i=0, ien=columns.length ; i<ien ; i++ ) {
|
258 |
+
if ( columns[i].control ) {
|
259 |
+
display[i] = showControl;
|
260 |
+
}
|
261 |
+
}
|
262 |
+
|
263 |
+
// Finally we need to make sure that there is at least one column that
|
264 |
+
// is visible
|
265 |
+
if ( $.inArray( true, display ) === -1 ) {
|
266 |
+
display[0] = true;
|
267 |
+
}
|
268 |
+
|
269 |
+
return display;
|
270 |
+
},
|
271 |
+
|
272 |
+
|
273 |
+
/**
|
274 |
+
* Create the internal `columns` array with information about the columns
|
275 |
+
* for the table. This includes determining which breakpoints the column
|
276 |
+
* will appear in, based upon class names in the column, which makes up the
|
277 |
+
* vast majority of this method.
|
278 |
+
*
|
279 |
+
* @private
|
280 |
+
*/
|
281 |
+
_classLogic: function ()
|
282 |
+
{
|
283 |
+
var that = this;
|
284 |
+
var calc = {};
|
285 |
+
var breakpoints = this.c.breakpoints;
|
286 |
+
var columns = this.s.dt.columns().eq(0).map( function (i) {
|
287 |
+
var className = this.column(i).header().className;
|
288 |
+
|
289 |
+
return {
|
290 |
+
className: className,
|
291 |
+
includeIn: [],
|
292 |
+
auto: false,
|
293 |
+
control: false,
|
294 |
+
never: className.match(/\bnever\b/) ? true : false
|
295 |
+
};
|
296 |
+
} );
|
297 |
+
|
298 |
+
// Simply add a breakpoint to `includeIn` array, ensuring that there are
|
299 |
+
// no duplicates
|
300 |
+
var add = function ( colIdx, name ) {
|
301 |
+
var includeIn = columns[ colIdx ].includeIn;
|
302 |
+
|
303 |
+
if ( $.inArray( name, includeIn ) === -1 ) {
|
304 |
+
includeIn.push( name );
|
305 |
+
}
|
306 |
+
};
|
307 |
+
|
308 |
+
var column = function ( colIdx, name, operator, matched ) {
|
309 |
+
var size, i, ien;
|
310 |
+
|
311 |
+
if ( ! operator ) {
|
312 |
+
columns[ colIdx ].includeIn.push( name );
|
313 |
+
}
|
314 |
+
else if ( operator === 'max-' ) {
|
315 |
+
// Add this breakpoint and all smaller
|
316 |
+
size = that._find( name ).width;
|
317 |
+
|
318 |
+
for ( i=0, ien=breakpoints.length ; i<ien ; i++ ) {
|
319 |
+
if ( breakpoints[i].width <= size ) {
|
320 |
+
add( colIdx, breakpoints[i].name );
|
321 |
+
}
|
322 |
+
}
|
323 |
+
}
|
324 |
+
else if ( operator === 'min-' ) {
|
325 |
+
// Add this breakpoint and all larger
|
326 |
+
size = that._find( name ).width;
|
327 |
+
|
328 |
+
for ( i=0, ien=breakpoints.length ; i<ien ; i++ ) {
|
329 |
+
if ( breakpoints[i].width >= size ) {
|
330 |
+
add( colIdx, breakpoints[i].name );
|
331 |
+
}
|
332 |
+
}
|
333 |
+
}
|
334 |
+
else if ( operator === 'not-' ) {
|
335 |
+
// Add all but this breakpoint (xxx need extra information)
|
336 |
+
|
337 |
+
for ( i=0, ien=breakpoints.length ; i<ien ; i++ ) {
|
338 |
+
if ( breakpoints[i].name.indexOf( matched ) === -1 ) {
|
339 |
+
add( colIdx, breakpoints[i].name );
|
340 |
+
}
|
341 |
+
}
|
342 |
+
}
|
343 |
+
};
|
344 |
+
|
345 |
+
// Loop over each column and determine if it has a responsive control
|
346 |
+
// class
|
347 |
+
columns.each( function ( col, i ) {
|
348 |
+
var classNames = col.className.split(' ');
|
349 |
+
var hasClass = false;
|
350 |
+
|
351 |
+
// Split the class name up so multiple rules can be applied if needed
|
352 |
+
for ( var k=0, ken=classNames.length ; k<ken ; k++ ) {
|
353 |
+
var className = $.trim( classNames[k] );
|
354 |
+
|
355 |
+
if ( className === 'all' ) {
|
356 |
+
// Include in all
|
357 |
+
hasClass = true;
|
358 |
+
col.includeIn = $.map( breakpoints, function (a) {
|
359 |
+
return a.name;
|
360 |
+
} );
|
361 |
+
return;
|
362 |
+
}
|
363 |
+
else if ( className === 'none' || className === 'never' ) {
|
364 |
+
// Include in none (default) and no auto
|
365 |
+
hasClass = true;
|
366 |
+
return;
|
367 |
+
}
|
368 |
+
else if ( className === 'control' ) {
|
369 |
+
// Special column that is only visible, when one of the other
|
370 |
+
// columns is hidden. This is used for the details control
|
371 |
+
hasClass = true;
|
372 |
+
col.control = true;
|
373 |
+
return;
|
374 |
+
}
|
375 |
+
|
376 |
+
$.each( breakpoints, function ( j, breakpoint ) {
|
377 |
+
// Does this column have a class that matches this breakpoint?
|
378 |
+
var brokenPoint = breakpoint.name.split('-');
|
379 |
+
var re = new RegExp( '(min\\-|max\\-|not\\-)?('+brokenPoint[0]+')(\\-[_a-zA-Z0-9])?' );
|
380 |
+
var match = className.match( re );
|
381 |
+
|
382 |
+
if ( match ) {
|
383 |
+
hasClass = true;
|
384 |
+
|
385 |
+
if ( match[2] === brokenPoint[0] && match[3] === '-'+brokenPoint[1] ) {
|
386 |
+
// Class name matches breakpoint name fully
|
387 |
+
column( i, breakpoint.name, match[1], match[2]+match[3] );
|
388 |
+
}
|
389 |
+
else if ( match[2] === brokenPoint[0] && ! match[3] ) {
|
390 |
+
// Class name matched primary breakpoint name with no qualifier
|
391 |
+
column( i, breakpoint.name, match[1], match[2] );
|
392 |
+
}
|
393 |
+
}
|
394 |
+
} );
|
395 |
+
}
|
396 |
+
|
397 |
+
// If there was no control class, then automatic sizing is used
|
398 |
+
if ( ! hasClass ) {
|
399 |
+
col.auto = true;
|
400 |
+
}
|
401 |
+
} );
|
402 |
+
|
403 |
+
this.s.columns = columns;
|
404 |
+
},
|
405 |
+
|
406 |
+
|
407 |
+
/**
|
408 |
+
* Initialisation for the details handler
|
409 |
+
*
|
410 |
+
* @private
|
411 |
+
*/
|
412 |
+
_detailsInit: function ()
|
413 |
+
{
|
414 |
+
var that = this;
|
415 |
+
var dt = this.s.dt;
|
416 |
+
var details = this.c.details;
|
417 |
+
|
418 |
+
// The inline type always uses the first child as the target
|
419 |
+
if ( details.type === 'inline' ) {
|
420 |
+
details.target = 'td:first-child';
|
421 |
+
}
|
422 |
+
|
423 |
+
// type.target can be a string jQuery selector or a column index
|
424 |
+
var target = details.target;
|
425 |
+
var selector = typeof target === 'string' ? target : 'td';
|
426 |
+
|
427 |
+
// Click handler to show / hide the details rows when they are available
|
428 |
+
$( dt.table().body() ).on( 'click', selector, function (e) {
|
429 |
+
// If the table is not collapsed (i.e. there is no hidden columns)
|
430 |
+
// then take no action
|
431 |
+
if ( ! $(dt.table().node()).hasClass('collapsed' ) ) {
|
432 |
+
return;
|
433 |
+
}
|
434 |
+
|
435 |
+
// Check that the row is actually a DataTable's controlled node
|
436 |
+
if ( ! dt.row( $(this).closest('tr') ).length ) {
|
437 |
+
return;
|
438 |
+
}
|
439 |
+
|
440 |
+
// For column index, we determine if we should act or not in the
|
441 |
+
// handler - otherwise it is already okay
|
442 |
+
if ( typeof target === 'number' ) {
|
443 |
+
var targetIdx = target < 0 ?
|
444 |
+
dt.columns().eq(0).length + target :
|
445 |
+
target;
|
446 |
+
|
447 |
+
if ( dt.cell( this ).index().column !== targetIdx ) {
|
448 |
+
return;
|
449 |
+
}
|
450 |
+
}
|
451 |
+
|
452 |
+
// $().closest() includes itself in its check
|
453 |
+
var row = dt.row( $(this).closest('tr') );
|
454 |
+
|
455 |
+
if ( row.child.isShown() ) {
|
456 |
+
row.child( false );
|
457 |
+
$( row.node() ).removeClass( 'parent' );
|
458 |
+
}
|
459 |
+
else {
|
460 |
+
var info = that.c.details.renderer( dt, row[0] );
|
461 |
+
row.child( info, 'child' ).show();
|
462 |
+
$( row.node() ).addClass( 'parent' );
|
463 |
+
}
|
464 |
+
} );
|
465 |
+
},
|
466 |
+
|
467 |
+
|
468 |
+
/**
|
469 |
+
* Update the child rows in the table whenever the column visibility changes
|
470 |
+
*
|
471 |
+
* @private
|
472 |
+
*/
|
473 |
+
_detailsVis: function ()
|
474 |
+
{
|
475 |
+
var that = this;
|
476 |
+
var dt = this.s.dt;
|
477 |
+
|
478 |
+
// Find how many columns are hidden
|
479 |
+
var hiddenColumns = dt.columns().indexes().filter( function ( idx ) {
|
480 |
+
var col = dt.column( idx );
|
481 |
+
|
482 |
+
if ( col.visible() ) {
|
483 |
+
return null;
|
484 |
+
}
|
485 |
+
|
486 |
+
// Only counts as hidden if it doesn't have the `never` class
|
487 |
+
return $( col.header() ).hasClass( 'never' ) ? null : idx;
|
488 |
+
} );
|
489 |
+
var haveHidden = true;
|
490 |
+
|
491 |
+
if ( hiddenColumns.length === 0 || ( hiddenColumns.length === 1 && this.s.columns[ hiddenColumns[0] ].control ) ) {
|
492 |
+
haveHidden = false;
|
493 |
+
}
|
494 |
+
|
495 |
+
if ( haveHidden ) {
|
496 |
+
// Got hidden columns
|
497 |
+
$( dt.table().node() ).addClass('collapsed');
|
498 |
+
|
499 |
+
// Show all existing child rows
|
500 |
+
dt.rows().eq(0).each( function (idx) {
|
501 |
+
var row = dt.row( idx );
|
502 |
+
|
503 |
+
if ( row.child() ) {
|
504 |
+
var info = that.c.details.renderer( dt, row[0] );
|
505 |
+
|
506 |
+
// The renderer can return false to have no child row
|
507 |
+
if ( info === false ) {
|
508 |
+
row.child.hide();
|
509 |
+
}
|
510 |
+
else {
|
511 |
+
row.child( info, 'child' ).show();
|
512 |
+
}
|
513 |
+
}
|
514 |
+
} );
|
515 |
+
}
|
516 |
+
else {
|
517 |
+
// No hidden columns
|
518 |
+
$( dt.table().node() ).removeClass('collapsed');
|
519 |
+
|
520 |
+
// Hide all existing child rows
|
521 |
+
dt.rows().eq(0).each( function (idx) {
|
522 |
+
dt.row( idx ).child.hide();
|
523 |
+
} );
|
524 |
+
}
|
525 |
+
},
|
526 |
+
|
527 |
+
|
528 |
+
/**
|
529 |
+
* Find a breakpoint object from a name
|
530 |
+
* @param {string} name Breakpoint name to find
|
531 |
+
* @return {object} Breakpoint description object
|
532 |
+
*/
|
533 |
+
_find: function ( name )
|
534 |
+
{
|
535 |
+
var breakpoints = this.c.breakpoints;
|
536 |
+
|
537 |
+
for ( var i=0, ien=breakpoints.length ; i<ien ; i++ ) {
|
538 |
+
if ( breakpoints[i].name === name ) {
|
539 |
+
return breakpoints[i];
|
540 |
+
}
|
541 |
+
}
|
542 |
+
},
|
543 |
+
|
544 |
+
|
545 |
+
/**
|
546 |
+
* Alter the table display for a resized viewport. This involves first
|
547 |
+
* determining what breakpoint the window currently is in, getting the
|
548 |
+
* column visibilities to apply and then setting them.
|
549 |
+
*
|
550 |
+
* @private
|
551 |
+
*/
|
552 |
+
_resize: function ()
|
553 |
+
{
|
554 |
+
var dt = this.s.dt;
|
555 |
+
var width = $(window).width();
|
556 |
+
var breakpoints = this.c.breakpoints;
|
557 |
+
var breakpoint = breakpoints[0].name;
|
558 |
+
|
559 |
+
// Determine what breakpoint we are currently at
|
560 |
+
for ( var i=breakpoints.length-1 ; i>=0 ; i-- ) {
|
561 |
+
if ( width <= breakpoints[i].width ) {
|
562 |
+
breakpoint = breakpoints[i].name;
|
563 |
+
break;
|
564 |
+
}
|
565 |
+
}
|
566 |
+
|
567 |
+
// Show the columns for that break point
|
568 |
+
var columns = this._columnsVisiblity( breakpoint );
|
569 |
+
|
570 |
+
dt.columns().eq(0).each( function ( colIdx, i ) {
|
571 |
+
dt.column( colIdx ).visible( columns[i] );
|
572 |
+
} );
|
573 |
+
},
|
574 |
+
|
575 |
+
|
576 |
+
/**
|
577 |
+
* Determine the width of each column in the table so the auto column hiding
|
578 |
+
* has that information to work with. This method is never going to be 100%
|
579 |
+
* perfect since column widths can change slightly per page, but without
|
580 |
+
* seriously compromising performance this is quite effective.
|
581 |
+
*
|
582 |
+
* @private
|
583 |
+
*/
|
584 |
+
_resizeAuto: function ()
|
585 |
+
{
|
586 |
+
var dt = this.s.dt;
|
587 |
+
var columns = this.s.columns;
|
588 |
+
|
589 |
+
// Are we allowed to do auto sizing?
|
590 |
+
if ( ! this.c.auto ) {
|
591 |
+
return;
|
592 |
+
}
|
593 |
+
|
594 |
+
// Are there any columns that actually need auto-sizing, or do they all
|
595 |
+
// have classes defined
|
596 |
+
if ( $.inArray( true, $.map( columns, function (c) { return c.auto; } ) ) === -1 ) {
|
597 |
+
return;
|
598 |
+
}
|
599 |
+
|
600 |
+
// Clone the table with the current data in it
|
601 |
+
var tableWidth = dt.table().node().offsetWidth;
|
602 |
+
var columnWidths = dt.columns;
|
603 |
+
var clonedTable = dt.table().node().cloneNode( false );
|
604 |
+
var clonedHeader = $( dt.table().header().cloneNode( false ) ).appendTo( clonedTable );
|
605 |
+
var clonedBody = $( dt.table().body().cloneNode( false ) ).appendTo( clonedTable );
|
606 |
+
|
607 |
+
// This is a bit slow, but we need to get a clone of each row that
|
608 |
+
// includes all columns. As such, try to do this as little as possible.
|
609 |
+
dt.rows( { page: 'current' } ).indexes().flatten().each( function ( idx ) {
|
610 |
+
var clone = dt.row( idx ).node().cloneNode( true );
|
611 |
+
|
612 |
+
if ( dt.columns( ':hidden' ).flatten().length ) {
|
613 |
+
$(clone).append( dt.cells( idx, ':hidden' ).nodes().to$().clone() );
|
614 |
+
}
|
615 |
+
|
616 |
+
$(clone).appendTo( clonedBody );
|
617 |
+
} );
|
618 |
+
|
619 |
+
var cells = dt.columns().header().to$().clone( false );
|
620 |
+
$('<tr/>')
|
621 |
+
.append( cells )
|
622 |
+
.appendTo( clonedHeader );
|
623 |
+
|
624 |
+
var inserted = $('<div/>')
|
625 |
+
.css( {
|
626 |
+
width: 1,
|
627 |
+
height: 1,
|
628 |
+
overflow: 'hidden'
|
629 |
+
} )
|
630 |
+
.append( clonedTable )
|
631 |
+
.insertBefore( dt.table().node() );
|
632 |
+
|
633 |
+
// The cloned header now contains the smallest that each column can be
|
634 |
+
dt.columns().eq(0).each( function ( idx ) {
|
635 |
+
columns[idx].minWidth = cells[ idx ].offsetWidth || 0;
|
636 |
+
} );
|
637 |
+
|
638 |
+
inserted.remove();
|
639 |
+
}
|
640 |
+
};
|
641 |
+
|
642 |
+
|
643 |
+
/**
|
644 |
+
* List of default breakpoints. Each item in the array is an object with two
|
645 |
+
* properties:
|
646 |
+
*
|
647 |
+
* * `name` - the breakpoint name.
|
648 |
+
* * `width` - the breakpoint width
|
649 |
+
*
|
650 |
+
* @name Responsive.breakpoints
|
651 |
+
* @static
|
652 |
+
*/
|
653 |
+
Responsive.breakpoints = [
|
654 |
+
{ name: 'desktop', width: Infinity },
|
655 |
+
{ name: 'tablet-l', width: 1024 },
|
656 |
+
{ name: 'tablet-p', width: 768 },
|
657 |
+
{ name: 'mobile-l', width: 480 },
|
658 |
+
{ name: 'mobile-p', width: 320 }
|
659 |
+
];
|
660 |
+
|
661 |
+
|
662 |
+
/**
|
663 |
+
* Responsive default settings for initialisation
|
664 |
+
*
|
665 |
+
* @namespace
|
666 |
+
* @name Responsive.defaults
|
667 |
+
* @static
|
668 |
+
*/
|
669 |
+
Responsive.defaults = {
|
670 |
+
/**
|
671 |
+
* List of breakpoints for the instance. Note that this means that each
|
672 |
+
* instance can have its own breakpoints. Additionally, the breakpoints
|
673 |
+
* cannot be changed once an instance has been creased.
|
674 |
+
*
|
675 |
+
* @type {Array}
|
676 |
+
* @default Takes the value of `Responsive.breakpoints`
|
677 |
+
*/
|
678 |
+
breakpoints: Responsive.breakpoints,
|
679 |
+
|
680 |
+
/**
|
681 |
+
* Enable / disable auto hiding calculations. It can help to increase
|
682 |
+
* performance slightly if you disable this option, but all columns would
|
683 |
+
* need to have breakpoint classes assigned to them
|
684 |
+
*
|
685 |
+
* @type {Boolean}
|
686 |
+
* @default `true`
|
687 |
+
*/
|
688 |
+
auto: true,
|
689 |
+
|
690 |
+
/**
|
691 |
+
* Details control. If given as a string value, the `type` property of the
|
692 |
+
* default object is set to that value, and the defaults used for the rest
|
693 |
+
* of the object - this is for ease of implementation.
|
694 |
+
*
|
695 |
+
* The object consists of the following properties:
|
696 |
+
*
|
697 |
+
* * `renderer` - function that is called for display of the child row data.
|
698 |
+
* The default function will show the data from the hidden columns
|
699 |
+
* * `target` - Used as the selector for what objects to attach the child
|
700 |
+
* open / close to
|
701 |
+
* * `type` - `false` to disable the details display, `inline` or `column`
|
702 |
+
* for the two control types
|
703 |
+
*
|
704 |
+
* @type {Object|string}
|
705 |
+
*/
|
706 |
+
details: {
|
707 |
+
renderer: function ( api, rowIdx ) {
|
708 |
+
var data = api.cells( rowIdx, ':hidden' ).eq(0).map( function ( cell ) {
|
709 |
+
var header = $( api.column( cell.column ).header() );
|
710 |
+
var idx = api.cell( cell ).index();
|
711 |
+
|
712 |
+
if ( header.hasClass( 'control' ) || header.hasClass( 'never' ) ) {
|
713 |
+
return '';
|
714 |
+
}
|
715 |
+
|
716 |
+
// Use a non-public DT API method to render the data for display
|
717 |
+
// This needs to be updated when DT adds a suitable method for
|
718 |
+
// this type of data retrieval
|
719 |
+
var dtPrivate = api.settings()[0];
|
720 |
+
var cellData = dtPrivate.oApi._fnGetCellData(
|
721 |
+
dtPrivate, idx.row, idx.column, 'display'
|
722 |
+
);
|
723 |
+
var title = header.text();
|
724 |
+
if ( title ) {
|
725 |
+
title = title + ':';
|
726 |
+
}
|
727 |
+
|
728 |
+
return '<li data-dtr-index="'+idx.column+'">'+
|
729 |
+
'<span class="dtr-title">'+
|
730 |
+
title+
|
731 |
+
'</span> '+
|
732 |
+
'<span class="dtr-data">'+
|
733 |
+
cellData+
|
734 |
+
'</span>'+
|
735 |
+
'</li>';
|
736 |
+
} ).toArray().join('');
|
737 |
+
|
738 |
+
return data ?
|
739 |
+
$('<ul data-dtr-index="'+rowIdx+'"/>').append( data ) :
|
740 |
+
false;
|
741 |
+
},
|
742 |
+
|
743 |
+
target: 0,
|
744 |
+
|
745 |
+
type: 'inline'
|
746 |
+
}
|
747 |
+
};
|
748 |
+
|
749 |
+
|
750 |
+
/*
|
751 |
+
* API
|
752 |
+
*/
|
753 |
+
var Api = $.fn.dataTable.Api;
|
754 |
+
|
755 |
+
// Doesn't do anything - work around for a bug in DT... Not documented
|
756 |
+
Api.register( 'responsive()', function () {
|
757 |
+
return this;
|
758 |
+
} );
|
759 |
+
|
760 |
+
Api.register( 'responsive.index()', function ( li ) {
|
761 |
+
li = $(li);
|
762 |
+
|
763 |
+
return {
|
764 |
+
column: li.data('dtr-index'),
|
765 |
+
row: li.parent().data('dtr-index')
|
766 |
+
};
|
767 |
+
} );
|
768 |
+
|
769 |
+
Api.register( 'responsive.rebuild()', function () {
|
770 |
+
return this.iterator( 'table', function ( ctx ) {
|
771 |
+
if ( ctx._responsive ) {
|
772 |
+
ctx._responsive._classLogic();
|
773 |
+
}
|
774 |
+
} );
|
775 |
+
} );
|
776 |
+
|
777 |
+
Api.register( 'responsive.recalc()', function () {
|
778 |
+
return this.iterator( 'table', function ( ctx ) {
|
779 |
+
if ( ctx._responsive ) {
|
780 |
+
ctx._responsive._resizeAuto();
|
781 |
+
ctx._responsive._resize();
|
782 |
+
}
|
783 |
+
} );
|
784 |
+
} );
|
785 |
+
|
786 |
+
|
787 |
+
/**
|
788 |
+
* Version information
|
789 |
+
*
|
790 |
+
* @name Responsive.version
|
791 |
+
* @static
|
792 |
+
*/
|
793 |
+
Responsive.version = '1.0.4';
|
794 |
+
|
795 |
+
|
796 |
+
$.fn.dataTable.Responsive = Responsive;
|
797 |
+
$.fn.DataTable.Responsive = Responsive;
|
798 |
+
|
799 |
+
// Attach a listener to the document which listens for DataTables initialisation
|
800 |
+
// events so we can automatically initialise
|
801 |
+
$(document).on( 'init.dt.dtr', function (e, settings, json) {
|
802 |
+
if ( $(settings.nTable).hasClass( 'responsive' ) ||
|
803 |
+
$(settings.nTable).hasClass( 'dt-responsive' ) ||
|
804 |
+
settings.oInit.responsive ||
|
805 |
+
DataTable.defaults.responsive
|
806 |
+
) {
|
807 |
+
var init = settings.oInit.responsive;
|
808 |
+
|
809 |
+
if ( init !== false ) {
|
810 |
+
new Responsive( settings, $.isPlainObject( init ) ? init : {} );
|
811 |
+
}
|
812 |
+
}
|
813 |
+
} );
|
814 |
+
|
815 |
+
return Responsive;
|
816 |
+
}; // /factory
|
817 |
+
|
818 |
+
|
819 |
+
// Define as an AMD module if possible
|
820 |
+
if ( typeof define === 'function' && define.amd ) {
|
821 |
+
define( ['jquery', 'datatables'], factory );
|
822 |
+
}
|
823 |
+
else if ( typeof exports === 'object' ) {
|
824 |
+
// Node/CommonJS
|
825 |
+
factory( require('jquery'), require('datatables') );
|
826 |
+
}
|
827 |
+
else if ( jQuery && !jQuery.fn.dataTable.Responsive ) {
|
828 |
+
// Otherwise simply initialise as normal, stopping multiple evaluation
|
829 |
+
factory( jQuery, jQuery.fn.dataTable );
|
830 |
+
}
|
831 |
+
|
832 |
+
|
833 |
+
})(window, document);
|
834 |
+
|
js/jquery.dataTables.js
CHANGED
@@ -1,4942 +1,5276 @@
|
|
|
|
|
|
|
|
|
|
1 |
/**
|
2 |
* @summary DataTables
|
3 |
-
* @description Paginate, search and
|
4 |
-
* @version 1.
|
5 |
* @file jquery.dataTables.js
|
6 |
-
* @author
|
7 |
* @contact www.sprymedia.co.uk/contact
|
|
|
8 |
*
|
9 |
-
*
|
|
|
10 |
*
|
11 |
-
* This source file is
|
12 |
-
*
|
13 |
-
* http://datatables.net/license_gpl2
|
14 |
-
* http://datatables.net/license_bsd
|
15 |
-
*
|
16 |
-
* This source file is distributed in the hope that it will be useful, but
|
17 |
-
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
18 |
* or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.
|
19 |
-
*
|
20 |
* For details please refer to: http://www.datatables.net
|
21 |
*/
|
22 |
|
23 |
/*jslint evil: true, undef: true, browser: true */
|
24 |
-
/*globals $,
|
25 |
|
26 |
(/** @lends <global> */function( window, document, undefined ) {
|
27 |
|
28 |
(function( factory ) {
|
29 |
"use strict";
|
30 |
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
define( ['jquery'], factory );
|
35 |
}
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
{
|
|
|
|
|
41 |
factory( jQuery );
|
42 |
}
|
43 |
}
|
44 |
(/** @lends <global> */function( $ ) {
|
45 |
"use strict";
|
46 |
-
|
47 |
-
|
48 |
-
*
|
49 |
-
*
|
50 |
-
*
|
51 |
-
*
|
|
|
52 |
*
|
53 |
-
* Note that the
|
54 |
-
*
|
55 |
-
*
|
56 |
*
|
57 |
* @class
|
58 |
-
* @param {object} [
|
59 |
* are defined by {@link DataTable.defaults}
|
60 |
-
* @requires jQuery 1.
|
61 |
-
*
|
62 |
* @example
|
63 |
* // Basic initialisation
|
64 |
* $(document).ready( function {
|
65 |
* $('#example').dataTable();
|
66 |
* } );
|
67 |
-
*
|
68 |
* @example
|
69 |
* // Initialisation with configuration options - in this case, disable
|
70 |
* // pagination and sorting.
|
71 |
* $(document).ready( function {
|
72 |
* $('#example').dataTable( {
|
73 |
-
* "
|
74 |
-
* "
|
75 |
* } );
|
76 |
* } );
|
77 |
*/
|
78 |
-
var DataTable
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
125 |
}
|
126 |
}
|
127 |
-
|
128 |
-
/* Use the column options function to initialise classes etc */
|
129 |
-
_fnColumnOptions( oSettings, iCol, null );
|
130 |
}
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
* @param {object} oSettings dataTables settings object
|
136 |
-
* @param {int} iCol column index to consider
|
137 |
-
* @param {object} oOptions object with sType, bVisible and bSearchable etc
|
138 |
-
* @memberof DataTable#oApi
|
139 |
-
*/
|
140 |
-
function _fnColumnOptions( oSettings, iCol, oOptions )
|
141 |
-
{
|
142 |
-
var oCol = oSettings.aoColumns[ iCol ];
|
143 |
-
|
144 |
-
/* User specified column options */
|
145 |
-
if ( oOptions !== undefined && oOptions !== null )
|
146 |
-
{
|
147 |
-
/* Backwards compatibility for mDataProp */
|
148 |
-
if ( oOptions.mDataProp && !oOptions.mData )
|
149 |
-
{
|
150 |
-
oOptions.mData = oOptions.mDataProp;
|
151 |
-
}
|
152 |
-
|
153 |
-
if ( oOptions.sType !== undefined )
|
154 |
-
{
|
155 |
-
oCol.sType = oOptions.sType;
|
156 |
-
oCol._bAutoType = false;
|
157 |
}
|
158 |
-
|
159 |
-
$.extend( oCol, oOptions );
|
160 |
-
_fnMap( oCol, oOptions, "sWidth", "sWidthOrig" );
|
161 |
-
|
162 |
-
/* iDataSort to be applied (backwards compatibility), but aDataSort will take
|
163 |
-
* priority if defined
|
164 |
-
*/
|
165 |
-
if ( oOptions.iDataSort !== undefined )
|
166 |
-
{
|
167 |
-
oCol.aDataSort = [ oOptions.iDataSort ];
|
168 |
-
}
|
169 |
-
_fnMap( oCol, oOptions, "aDataSort" );
|
170 |
}
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
182 |
}
|
183 |
-
return innerData;
|
184 |
-
};
|
185 |
-
oCol.fnSetData = _fnSetObjectDataFn( oCol.mData );
|
186 |
-
|
187 |
-
/* Feature sorting overrides column specific when off */
|
188 |
-
if ( !oSettings.oFeatures.bSort )
|
189 |
-
{
|
190 |
-
oCol.bSortable = false;
|
191 |
-
}
|
192 |
-
|
193 |
-
/* Check that the class assignment is correct for sorting */
|
194 |
-
if ( !oCol.bSortable ||
|
195 |
-
($.inArray('asc', oCol.asSorting) == -1 && $.inArray('desc', oCol.asSorting) == -1) )
|
196 |
-
{
|
197 |
-
oCol.sSortingClass = oSettings.oClasses.sSortableNone;
|
198 |
-
oCol.sSortingClassJUI = "";
|
199 |
-
}
|
200 |
-
else if ( $.inArray('asc', oCol.asSorting) == -1 && $.inArray('desc', oCol.asSorting) == -1 )
|
201 |
-
{
|
202 |
-
oCol.sSortingClass = oSettings.oClasses.sSortable;
|
203 |
-
oCol.sSortingClassJUI = oSettings.oClasses.sSortJUI;
|
204 |
-
}
|
205 |
-
else if ( $.inArray('asc', oCol.asSorting) != -1 && $.inArray('desc', oCol.asSorting) == -1 )
|
206 |
-
{
|
207 |
-
oCol.sSortingClass = oSettings.oClasses.sSortableAsc;
|
208 |
-
oCol.sSortingClassJUI = oSettings.oClasses.sSortJUIAscAllowed;
|
209 |
-
}
|
210 |
-
else if ( $.inArray('asc', oCol.asSorting) == -1 && $.inArray('desc', oCol.asSorting) != -1 )
|
211 |
-
{
|
212 |
-
oCol.sSortingClass = oSettings.oClasses.sSortableDesc;
|
213 |
-
oCol.sSortingClassJUI = oSettings.oClasses.sSortJUIDescAllowed;
|
214 |
}
|
215 |
}
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
* Adjust the table column widths for new data. Note: you would probably want to
|
220 |
-
* do a redraw after calling this function!
|
221 |
-
* @param {object} oSettings dataTables settings object
|
222 |
-
* @memberof DataTable#oApi
|
223 |
-
*/
|
224 |
-
function _fnAdjustColumnSizing ( oSettings )
|
225 |
-
{
|
226 |
-
/* Not interested in doing column width calculation if auto-width is disabled */
|
227 |
-
if ( oSettings.oFeatures.bAutoWidth === false )
|
228 |
-
{
|
229 |
-
return false;
|
230 |
-
}
|
231 |
-
|
232 |
-
_fnCalculateColumnWidths( oSettings );
|
233 |
-
for ( var i=0 , iLen=oSettings.aoColumns.length ; i<iLen ; i++ )
|
234 |
-
{
|
235 |
-
oSettings.aoColumns[i].nTh.style.width = oSettings.aoColumns[i].sWidth;
|
236 |
}
|
237 |
}
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
return typeof aiVis[iMatch] === 'number' ?
|
253 |
-
aiVis[iMatch] :
|
254 |
-
null;
|
255 |
}
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
* Covert the index of an index in the data array and convert it to the visible
|
260 |
-
* column index (take account of hidden columns)
|
261 |
-
* @param {int} iMatch Column index to lookup
|
262 |
-
* @param {object} oSettings dataTables settings object
|
263 |
-
* @returns {int} i the data index
|
264 |
-
* @memberof DataTable#oApi
|
265 |
-
*/
|
266 |
-
function _fnColumnIndexToVisible( oSettings, iMatch )
|
267 |
-
{
|
268 |
-
var aiVis = _fnGetColumns( oSettings, 'bVisible' );
|
269 |
-
var iPos = $.inArray( iMatch, aiVis );
|
270 |
-
|
271 |
-
return iPos !== -1 ? iPos : null;
|
272 |
}
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
* Get the number of visible columns
|
277 |
-
* @param {object} oSettings dataTables settings object
|
278 |
-
* @returns {int} i the number of visible columns
|
279 |
-
* @memberof DataTable#oApi
|
280 |
-
*/
|
281 |
-
function _fnVisbleColumns( oSettings )
|
282 |
-
{
|
283 |
-
return _fnGetColumns( oSettings, 'bVisible' ).length;
|
284 |
}
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
302 |
}
|
303 |
-
}
|
304 |
-
|
305 |
-
|
|
|
306 |
}
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
321 |
{
|
322 |
-
|
323 |
-
|
|
|
|
|
324 |
{
|
325 |
-
|
326 |
}
|
327 |
}
|
328 |
-
|
329 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
330 |
}
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
*/
|
339 |
-
function _fnReOrderIndex ( oSettings, sColumns )
|
340 |
-
{
|
341 |
-
var aColumns = sColumns.split(',');
|
342 |
-
var aiReturn = [];
|
343 |
-
|
344 |
-
for ( var i=0, iLen=oSettings.aoColumns.length ; i<iLen ; i++ )
|
345 |
{
|
346 |
-
|
|
|
347 |
{
|
348 |
-
|
349 |
-
{
|
350 |
-
|
351 |
-
break;
|
352 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
353 |
}
|
354 |
}
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
365 |
*/
|
366 |
-
|
|
|
367 |
{
|
368 |
-
|
369 |
-
for ( var i=0, iLen=oSettings.aoColumns.length ; i<iLen ; i++ )
|
370 |
-
{
|
371 |
-
sNames += oSettings.aoColumns[i].sName+',';
|
372 |
-
}
|
373 |
-
if ( sNames.length == iLen )
|
374 |
-
{
|
375 |
-
return "";
|
376 |
-
}
|
377 |
-
return sNames.slice(0, -1);
|
378 |
}
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
* they relate to column indexes. The callback function will then apply the
|
384 |
-
* definition found for a column to a suitable configuration object.
|
385 |
-
* @param {object} oSettings dataTables settings object
|
386 |
-
* @param {array} aoColDefs The aoColumnDefs array that is to be applied
|
387 |
-
* @param {array} aoCols The aoColumns array that defines columns individually
|
388 |
-
* @param {function} fn Callback function - takes two parameters, the calculated
|
389 |
-
* column index and the definition for that column.
|
390 |
-
* @memberof DataTable#oApi
|
391 |
-
*/
|
392 |
-
function _fnApplyColumnDefs( oSettings, aoColDefs, aoCols, fn )
|
393 |
{
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
440 |
}
|
441 |
}
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
450 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
451 |
}
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
463 |
{
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
var iRow = oSettings.aoData.length;
|
473 |
-
var oData = $.extend( true, {}, DataTable.models.oRow );
|
474 |
-
oData._aData = aDataIn;
|
475 |
-
oSettings.aoData.push( oData );
|
476 |
-
|
477 |
-
/* Create the cells */
|
478 |
-
var nTd, sThisType;
|
479 |
-
for ( var i=0, iLen=oSettings.aoColumns.length ; i<iLen ; i++ )
|
480 |
{
|
481 |
-
|
482 |
-
|
483 |
-
/* Use rendered data for filtering / sorting */
|
484 |
-
if ( typeof oCol.fnRender === 'function' && oCol.bUseRendered && oCol.mData !== null )
|
485 |
-
{
|
486 |
-
_fnSetCellData( oSettings, iRow, i, _fnRender(oSettings, iRow, i) );
|
487 |
-
}
|
488 |
-
else
|
489 |
-
{
|
490 |
-
_fnSetCellData( oSettings, iRow, i, _fnGetCellData( oSettings, iRow, i ) );
|
491 |
-
}
|
492 |
-
|
493 |
-
/* See if we should auto-detect the column type */
|
494 |
-
if ( oCol._bAutoType && oCol.sType != 'string' )
|
495 |
-
{
|
496 |
-
/* Attempt to auto detect the type - same as _fnGatherData() */
|
497 |
-
var sVarType = _fnGetCellData( oSettings, iRow, i, 'type' );
|
498 |
-
if ( sVarType !== null && sVarType !== '' )
|
499 |
-
{
|
500 |
-
sThisType = _fnDetectType( sVarType );
|
501 |
-
if ( oCol.sType === null )
|
502 |
-
{
|
503 |
-
oCol.sType = sThisType;
|
504 |
-
}
|
505 |
-
else if ( oCol.sType != sThisType && oCol.sType != "html" )
|
506 |
-
{
|
507 |
-
/* String is always the 'fallback' option */
|
508 |
-
oCol.sType = 'string';
|
509 |
-
}
|
510 |
-
}
|
511 |
-
}
|
512 |
}
|
513 |
-
|
514 |
-
|
515 |
-
oSettings.aiDisplayMaster.push( iRow );
|
516 |
-
|
517 |
-
/* Create the DOM information */
|
518 |
-
if ( !oSettings.oFeatures.bDeferRender )
|
519 |
{
|
520 |
-
|
521 |
}
|
522 |
-
|
523 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
524 |
}
|
525 |
-
|
526 |
-
|
527 |
-
|
528 |
-
|
529 |
-
|
530 |
-
|
531 |
-
|
532 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
533 |
{
|
534 |
-
|
535 |
-
|
536 |
-
|
537 |
-
|
538 |
-
|
539 |
-
|
540 |
-
|
541 |
-
|
542 |
-
|
543 |
-
|
544 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
545 |
{
|
546 |
-
|
547 |
-
|
548 |
-
|
549 |
-
|
550 |
-
|
551 |
-
|
552 |
-
|
553 |
-
|
554 |
-
|
555 |
-
|
556 |
-
|
557 |
-
|
558 |
-
|
559 |
-
|
560 |
-
|
561 |
-
|
562 |
-
|
563 |
-
|
564 |
-
|
565 |
-
|
566 |
-
|
567 |
-
|
568 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
569 |
}
|
570 |
}
|
571 |
-
|
572 |
-
|
573 |
-
|
574 |
-
|
575 |
-
|
576 |
-
|
577 |
-
* setup!
|
578 |
-
*/
|
579 |
-
nTrs = _fnGetTrNodes( oSettings );
|
580 |
-
nTds = [];
|
581 |
-
for ( i=0, iLen=nTrs.length ; i<iLen ; i++ )
|
582 |
-
{
|
583 |
-
nTd = nTrs[i].firstChild;
|
584 |
-
while ( nTd )
|
585 |
-
{
|
586 |
-
sNodeName = nTd.nodeName.toUpperCase();
|
587 |
-
if ( sNodeName == "TD" || sNodeName == "TH" )
|
588 |
-
{
|
589 |
-
nTds.push( nTd );
|
590 |
}
|
591 |
-
|
|
|
|
|
|
|
|
|
592 |
}
|
593 |
}
|
594 |
-
|
595 |
-
|
596 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
597 |
{
|
598 |
-
|
599 |
-
|
600 |
-
/*
|
601 |
-
|
|
|
|
|
|
|
|
|
602 |
{
|
603 |
-
|
604 |
}
|
605 |
-
|
606 |
-
|
607 |
-
bAutoType = oCol._bAutoType,
|
608 |
-
bRender = typeof oCol.fnRender === 'function',
|
609 |
-
bClass = oCol.sClass !== null,
|
610 |
-
bVisible = oCol.bVisible,
|
611 |
-
nCell, sThisType, sRendered, sValType;
|
612 |
-
|
613 |
-
/* A single loop to rule them all (and be more efficient) */
|
614 |
-
if ( bAutoType || bRender || bClass || !bVisible )
|
615 |
{
|
616 |
-
|
617 |
{
|
618 |
-
|
619 |
-
|
620 |
-
|
621 |
-
/* Type detection */
|
622 |
-
if ( bAutoType && oCol.sType != 'string' )
|
623 |
-
{
|
624 |
-
sValType = _fnGetCellData( oSettings, iRow, iColumn, 'type' );
|
625 |
-
if ( sValType !== '' )
|
626 |
-
{
|
627 |
-
sThisType = _fnDetectType( sValType );
|
628 |
-
if ( oCol.sType === null )
|
629 |
-
{
|
630 |
-
oCol.sType = sThisType;
|
631 |
-
}
|
632 |
-
else if ( oCol.sType != sThisType &&
|
633 |
-
oCol.sType != "html" )
|
634 |
-
{
|
635 |
-
/* String is always the 'fallback' option */
|
636 |
-
oCol.sType = 'string';
|
637 |
-
}
|
638 |
-
}
|
639 |
-
}
|
640 |
-
|
641 |
-
if ( oCol.mRender )
|
642 |
-
{
|
643 |
-
// mRender has been defined, so we need to get the value and set it
|
644 |
-
nCell.innerHTML = _fnGetCellData( oSettings, iRow, iColumn, 'display' );
|
645 |
-
}
|
646 |
-
else if ( oCol.mData !== iColumn )
|
647 |
{
|
648 |
-
|
649 |
-
// get the dev set value. If it is the column, no point in wasting
|
650 |
-
// time setting the value that is already there!
|
651 |
-
nCell.innerHTML = _fnGetCellData( oSettings, iRow, iColumn, 'display' );
|
652 |
}
|
653 |
-
|
654 |
-
/*
|
655 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
656 |
{
|
657 |
-
|
658 |
-
|
659 |
-
if ( oCol.bUseRendered )
|
660 |
{
|
661 |
-
|
662 |
-
_fnSetCellData( oSettings, iRow, iColumn, sRendered );
|
663 |
}
|
664 |
}
|
665 |
-
|
666 |
-
/* Classes */
|
667 |
-
if ( bClass )
|
668 |
-
{
|
669 |
-
nCell.className += ' '+oCol.sClass;
|
670 |
-
}
|
671 |
-
|
672 |
-
/* Column visibility */
|
673 |
-
if ( !bVisible )
|
674 |
-
{
|
675 |
-
oData._anHidden[iColumn] = nCell;
|
676 |
-
nCell.parentNode.removeChild( nCell );
|
677 |
-
}
|
678 |
-
else
|
679 |
-
{
|
680 |
-
oData._anHidden[iColumn] = null;
|
681 |
-
}
|
682 |
-
|
683 |
-
if ( oCol.fnCreatedCell )
|
684 |
-
{
|
685 |
-
oCol.fnCreatedCell.call( oSettings.oInstance,
|
686 |
-
nCell, _fnGetCellData( oSettings, iRow, iColumn, 'display' ), oData._aData, iRow, iColumn
|
687 |
-
);
|
688 |
-
}
|
689 |
}
|
690 |
}
|
691 |
}
|
692 |
-
|
693 |
-
/* Row created callbacks */
|
694 |
-
if ( oSettings.aoRowCreatedCallback.length !== 0 )
|
695 |
-
{
|
696 |
-
for ( i=0, iLen=oSettings.aoData.length ; i<iLen ; i++ )
|
697 |
-
{
|
698 |
-
oData = oSettings.aoData[i];
|
699 |
-
_fnCallbackFire( oSettings, 'aoRowCreatedCallback', null, [oData.nTr, oData._aData, i] );
|
700 |
-
}
|
701 |
-
}
|
702 |
}
|
703 |
-
|
704 |
-
|
705 |
-
|
706 |
-
* Take a TR element and convert it to an index in aoData
|
707 |
-
* @param {object} oSettings dataTables settings object
|
708 |
-
* @param {node} n the TR element to find
|
709 |
-
* @returns {int} index if the node is found, null if not
|
710 |
-
* @memberof DataTable#oApi
|
711 |
-
*/
|
712 |
-
function _fnNodeToDataIndex( oSettings, n )
|
713 |
{
|
714 |
-
|
|
|
|
|
|
|
715 |
}
|
716 |
-
|
717 |
-
|
718 |
-
|
719 |
-
|
720 |
-
|
721 |
-
|
722 |
-
|
723 |
-
|
724 |
-
|
725 |
-
|
726 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
727 |
{
|
728 |
-
|
729 |
-
|
730 |
-
|
731 |
-
{
|
732 |
-
|
733 |
-
{
|
734 |
-
return i;
|
735 |
-
}
|
736 |
}
|
737 |
-
|
738 |
}
|
739 |
-
|
740 |
-
|
741 |
-
|
742 |
-
|
743 |
-
|
744 |
-
|
745 |
-
* @param {string} sSpecific data get type ('type' 'filter' 'sort')
|
746 |
-
* @param {array} aiColumns Array of column indexes to get data from
|
747 |
-
* @returns {array} Data array
|
748 |
-
* @memberof DataTable#oApi
|
749 |
-
*/
|
750 |
-
function _fnGetRowData( oSettings, iRow, sSpecific, aiColumns )
|
751 |
{
|
752 |
-
|
753 |
-
|
754 |
-
|
755 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
756 |
}
|
757 |
-
return
|
758 |
}
|
759 |
-
|
760 |
-
|
761 |
-
|
762 |
-
|
763 |
-
|
764 |
-
|
765 |
-
|
766 |
-
|
767 |
-
|
768 |
-
|
769 |
-
|
770 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
771 |
{
|
772 |
-
|
773 |
-
var
|
774 |
-
|
775 |
-
|
776 |
-
|
777 |
-
{
|
778 |
-
if ( oSettings.iDrawError != oSettings.iDraw && oCol.sDefaultContent === null )
|
779 |
-
{
|
780 |
-
_fnLog( oSettings, 0, "Requested unknown parameter "+
|
781 |
-
(typeof oCol.mData=='function' ? '{mData function}' : "'"+oCol.mData+"'")+
|
782 |
-
" from the data source for row "+iRow );
|
783 |
-
oSettings.iDrawError = oSettings.iDraw;
|
784 |
}
|
785 |
-
|
786 |
-
|
787 |
-
|
788 |
-
|
789 |
-
|
790 |
-
|
791 |
-
|
792 |
-
}
|
793 |
-
else if ( typeof sData === 'function' )
|
794 |
-
{
|
795 |
-
/* If the data source is a function, then we run it and use the return */
|
796 |
-
return sData();
|
797 |
-
}
|
798 |
-
|
799 |
-
if ( sSpecific == 'display' && sData === null )
|
800 |
-
{
|
801 |
-
return '';
|
802 |
-
}
|
803 |
-
return sData;
|
804 |
}
|
805 |
-
|
806 |
-
|
807 |
-
/**
|
808 |
-
* Set the value for a specific cell, into the internal data cache
|
809 |
-
* @param {object} oSettings dataTables settings object
|
810 |
-
* @param {int} iRow aoData row id
|
811 |
-
* @param {int} iCol Column index
|
812 |
-
* @param {*} val Value to set
|
813 |
-
* @memberof DataTable#oApi
|
814 |
-
*/
|
815 |
-
function _fnSetCellData( oSettings, iRow, iCol, val )
|
816 |
{
|
817 |
-
|
818 |
-
|
819 |
-
|
820 |
-
|
821 |
}
|
822 |
-
|
823 |
-
|
824 |
-
// Private variable that is used to match array syntax in the data property object
|
825 |
-
var __reArray = /\[.*?\]$/;
|
826 |
-
|
827 |
-
/**
|
828 |
-
* Return a function that can be used to get data from a source object, taking
|
829 |
-
* into account the ability to use nested objects as a source
|
830 |
-
* @param {string|int|function} mSource The data source for the object
|
831 |
-
* @returns {function} Data get function
|
832 |
-
* @memberof DataTable#oApi
|
833 |
-
*/
|
834 |
-
function _fnGetObjectDataFn( mSource )
|
835 |
{
|
836 |
-
|
837 |
-
|
838 |
-
|
839 |
-
return function (data, type) {
|
840 |
-
return null;
|
841 |
-
};
|
842 |
-
}
|
843 |
-
else if ( typeof mSource === 'function' )
|
844 |
-
{
|
845 |
-
return function (data, type, extra) {
|
846 |
-
return mSource( data, type, extra );
|
847 |
-
};
|
848 |
-
}
|
849 |
-
else if ( typeof mSource === 'string' && (mSource.indexOf('.') !== -1 || mSource.indexOf('[') !== -1) )
|
850 |
-
{
|
851 |
-
/* If there is a . in the source string then the data source is in a
|
852 |
-
* nested object so we loop over the data for each level to get the next
|
853 |
-
* level down. On each loop we test for undefined, and if found immediately
|
854 |
-
* return. This allows entire objects to be missing and sDefaultContent to
|
855 |
-
* be used if defined, rather than throwing an error
|
856 |
-
*/
|
857 |
-
var fetchData = function (data, type, src) {
|
858 |
-
var a = src.split('.');
|
859 |
-
var arrayNotation, out, innerSrc;
|
860 |
-
|
861 |
-
if ( src !== "" )
|
862 |
-
{
|
863 |
-
for ( var i=0, iLen=a.length ; i<iLen ; i++ )
|
864 |
-
{
|
865 |
-
// Check if we are dealing with an array notation request
|
866 |
-
arrayNotation = a[i].match(__reArray);
|
867 |
-
|
868 |
-
if ( arrayNotation ) {
|
869 |
-
a[i] = a[i].replace(__reArray, '');
|
870 |
-
|
871 |
-
// Condition allows simply [] to be passed in
|
872 |
-
if ( a[i] !== "" ) {
|
873 |
-
data = data[ a[i] ];
|
874 |
-
}
|
875 |
-
out = [];
|
876 |
-
|
877 |
-
// Get the remainder of the nested object to get
|
878 |
-
a.splice( 0, i+1 );
|
879 |
-
innerSrc = a.join('.');
|
880 |
-
|
881 |
-
// Traverse each entry in the array getting the properties requested
|
882 |
-
for ( var j=0, jLen=data.length ; j<jLen ; j++ ) {
|
883 |
-
out.push( fetchData( data[j], type, innerSrc ) );
|
884 |
-
}
|
885 |
-
|
886 |
-
// If a string is given in between the array notation indicators, that
|
887 |
-
// is used to join the strings together, otherwise an array is returned
|
888 |
-
var join = arrayNotation[0].substring(1, arrayNotation[0].length-1);
|
889 |
-
data = (join==="") ? out : out.join(join);
|
890 |
-
|
891 |
-
// The inner call to fetchData has already traversed through the remainder
|
892 |
-
// of the source requested, so we exit from the loop
|
893 |
-
break;
|
894 |
-
}
|
895 |
-
|
896 |
-
if ( data === null || data[ a[i] ] === undefined )
|
897 |
-
{
|
898 |
-
return undefined;
|
899 |
-
}
|
900 |
-
data = data[ a[i] ];
|
901 |
-
}
|
902 |
-
}
|
903 |
-
|
904 |
-
return data;
|
905 |
-
};
|
906 |
-
|
907 |
-
return function (data, type) {
|
908 |
-
return fetchData( data, type, mSource );
|
909 |
-
};
|
910 |
-
}
|
911 |
-
else
|
912 |
-
{
|
913 |
-
/* Array or flat object mapping */
|
914 |
-
return function (data, type) {
|
915 |
-
return data[mSource];
|
916 |
-
};
|
917 |
-
}
|
918 |
}
|
919 |
-
|
920 |
-
|
921 |
-
|
922 |
-
|
923 |
-
|
924 |
-
|
925 |
-
|
926 |
-
|
927 |
-
|
928 |
-
|
929 |
-
|
930 |
-
|
931 |
-
|
932 |
-
|
933 |
-
|
934 |
-
|
935 |
-
|
936 |
-
{
|
937 |
-
return function (data, val) {
|
938 |
-
mSource( data, 'set', val );
|
939 |
-
};
|
940 |
-
}
|
941 |
-
else if ( typeof mSource === 'string' && (mSource.indexOf('.') !== -1 || mSource.indexOf('[') !== -1) )
|
942 |
-
{
|
943 |
-
/* Like the get, we need to get data from a nested object */
|
944 |
-
var setData = function (data, val, src) {
|
945 |
-
var a = src.split('.'), b;
|
946 |
-
var arrayNotation, o, innerSrc;
|
947 |
-
|
948 |
-
for ( var i=0, iLen=a.length-1 ; i<iLen ; i++ )
|
949 |
{
|
950 |
-
// Check if we are dealing with
|
951 |
arrayNotation = a[i].match(__reArray);
|
952 |
-
|
|
|
953 |
if ( arrayNotation )
|
954 |
{
|
|
|
955 |
a[i] = a[i].replace(__reArray, '');
|
956 |
-
|
957 |
-
|
958 |
-
|
959 |
-
|
960 |
-
b.splice( 0, i+1 );
|
961 |
-
innerSrc = b.join('.');
|
962 |
-
|
963 |
-
// Traverse each entry in the array setting the properties requested
|
964 |
-
for ( var j=0, jLen=val.length ; j<jLen ; j++ )
|
965 |
-
{
|
966 |
-
o = {};
|
967 |
-
setData( o, val[j], innerSrc );
|
968 |
-
data[ a[i] ].push( o );
|
969 |
}
|
970 |
-
|
971 |
-
|
972 |
-
//
|
973 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
974 |
}
|
975 |
-
|
976 |
-
// If the nested object doesn't currently exist - since we are
|
977 |
-
// trying to set the value - create it
|
978 |
-
if ( data[ a[i] ] === null || data[ a[i] ] === undefined )
|
979 |
{
|
980 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
981 |
}
|
982 |
data = data[ a[i] ];
|
983 |
}
|
984 |
-
|
985 |
-
|
986 |
-
|
987 |
-
|
988 |
-
|
989 |
-
|
990 |
-
return
|
991 |
-
|
992 |
-
};
|
993 |
-
}
|
994 |
-
else
|
995 |
-
{
|
996 |
-
/* Array or flat object mapping */
|
997 |
-
return function (data, val) {
|
998 |
-
data[mSource] = val;
|
999 |
-
};
|
1000 |
-
}
|
1001 |
}
|
1002 |
-
|
1003 |
-
|
1004 |
-
/**
|
1005 |
-
* Return an array with the full table data
|
1006 |
-
* @param {object} oSettings dataTables settings object
|
1007 |
-
* @returns array {array} aData Master data array
|
1008 |
-
* @memberof DataTable#oApi
|
1009 |
-
*/
|
1010 |
-
function _fnGetDataMaster ( oSettings )
|
1011 |
{
|
1012 |
-
|
1013 |
-
|
1014 |
-
|
1015 |
-
|
1016 |
-
aData.push( oSettings.aoData[i]._aData );
|
1017 |
-
}
|
1018 |
-
return aData;
|
1019 |
}
|
1020 |
-
|
1021 |
-
|
1022 |
-
|
1023 |
-
|
1024 |
-
|
1025 |
-
|
1026 |
-
|
1027 |
-
|
|
|
|
|
|
|
|
|
|
|
1028 |
{
|
1029 |
-
|
1030 |
-
|
1031 |
-
|
1032 |
-
|
|
|
|
|
1033 |
}
|
1034 |
-
|
1035 |
-
|
1036 |
-
/**
|
1037 |
-
* Take an array of integers (index array) and remove a target integer (value - not
|
1038 |
-
* the key!)
|
1039 |
-
* @param {array} a Index array to target
|
1040 |
-
* @param {int} iTarget value to find
|
1041 |
-
* @memberof DataTable#oApi
|
1042 |
-
*/
|
1043 |
-
function _fnDeleteIndex( a, iTarget )
|
1044 |
{
|
1045 |
-
|
1046 |
-
|
1047 |
-
for ( var i=0, iLen=a.length ; i<iLen ; i++ )
|
1048 |
-
{
|
1049 |
-
if ( a[i] == iTarget )
|
1050 |
-
{
|
1051 |
-
iTargetIndex = i;
|
1052 |
-
}
|
1053 |
-
else if ( a[i] > iTarget )
|
1054 |
-
{
|
1055 |
-
a[i]--;
|
1056 |
-
}
|
1057 |
-
}
|
1058 |
-
|
1059 |
-
if ( iTargetIndex != -1 )
|
1060 |
-
{
|
1061 |
-
a.splice( iTargetIndex, 1 );
|
1062 |
-
}
|
1063 |
}
|
1064 |
-
|
1065 |
-
|
1066 |
-
/**
|
1067 |
-
* Call the developer defined fnRender function for a given cell (row/column) with
|
1068 |
-
* the required parameters and return the result.
|
1069 |
-
* @param {object} oSettings dataTables settings object
|
1070 |
-
* @param {int} iRow aoData index for the row
|
1071 |
-
* @param {int} iCol aoColumns index for the column
|
1072 |
-
* @returns {*} Return of the developer's fnRender function
|
1073 |
-
* @memberof DataTable#oApi
|
1074 |
-
*/
|
1075 |
-
function _fnRender( oSettings, iRow, iCol )
|
1076 |
{
|
1077 |
-
|
1078 |
-
|
1079 |
-
|
1080 |
-
"iDataRow": iRow,
|
1081 |
-
"iDataColumn": iCol,
|
1082 |
-
"oSettings": oSettings,
|
1083 |
-
"aData": oSettings.aoData[iRow]._aData,
|
1084 |
-
"mDataProp": oCol.mData
|
1085 |
-
}, _fnGetCellData(oSettings, iRow, iCol, 'display') );
|
1086 |
}
|
1087 |
-
|
1088 |
-
|
1089 |
-
* @param {object} oSettings dataTables settings object
|
1090 |
-
* @param {int} iRow Row to consider
|
1091 |
-
* @memberof DataTable#oApi
|
1092 |
-
*/
|
1093 |
-
function _fnCreateTr ( oSettings, iRow )
|
1094 |
{
|
1095 |
-
|
1096 |
-
var
|
1097 |
-
|
1098 |
-
|
1099 |
-
|
1100 |
-
|
1101 |
-
|
1102 |
-
/* Use a private property on the node to allow reserve mapping from the node
|
1103 |
-
* to the aoData array for fast look up
|
1104 |
-
*/
|
1105 |
-
oData.nTr._DT_RowIndex = iRow;
|
1106 |
-
|
1107 |
-
/* Special parameters can be given by the data source to be used on the row */
|
1108 |
-
if ( oData._aData.DT_RowId )
|
1109 |
-
{
|
1110 |
-
oData.nTr.id = oData._aData.DT_RowId;
|
1111 |
-
}
|
1112 |
-
|
1113 |
-
if ( oData._aData.DT_RowClass )
|
1114 |
-
{
|
1115 |
-
oData.nTr.className = oData._aData.DT_RowClass;
|
1116 |
-
}
|
1117 |
-
|
1118 |
-
/* Process each column */
|
1119 |
-
for ( var i=0, iLen=oSettings.aoColumns.length ; i<iLen ; i++ )
|
1120 |
{
|
1121 |
-
|
1122 |
-
|
1123 |
-
|
1124 |
-
|
1125 |
-
|
1126 |
-
*/
|
1127 |
-
nTd.innerHTML = (typeof oCol.fnRender === 'function' && (!oCol.bUseRendered || oCol.mData === null)) ?
|
1128 |
-
_fnRender( oSettings, iRow, i ) :
|
1129 |
-
_fnGetCellData( oSettings, iRow, i, 'display' );
|
1130 |
-
|
1131 |
-
/* Add user defined class */
|
1132 |
-
if ( oCol.sClass !== null )
|
1133 |
-
{
|
1134 |
-
nTd.className = oCol.sClass;
|
1135 |
-
}
|
1136 |
-
|
1137 |
-
if ( oCol.bVisible )
|
1138 |
{
|
1139 |
-
|
1140 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1141 |
}
|
1142 |
-
else
|
1143 |
{
|
1144 |
-
|
|
|
|
|
1145 |
}
|
1146 |
-
|
1147 |
-
|
|
|
|
|
1148 |
{
|
1149 |
-
|
1150 |
-
nTd, _fnGetCellData( oSettings, iRow, i, 'display' ), oData._aData, iRow, i
|
1151 |
-
);
|
1152 |
}
|
|
|
1153 |
}
|
1154 |
-
|
1155 |
-
|
1156 |
-
|
1157 |
-
}
|
1158 |
-
|
1159 |
-
|
1160 |
-
/**
|
1161 |
-
* Create the HTML header for the table
|
1162 |
-
* @param {object} oSettings dataTables settings object
|
1163 |
-
* @memberof DataTable#oApi
|
1164 |
-
*/
|
1165 |
-
function _fnBuildHead( oSettings )
|
1166 |
-
{
|
1167 |
-
var i, nTh, iLen, j, jLen;
|
1168 |
-
var iThs = $('th, td', oSettings.nTHead).length;
|
1169 |
-
var iCorrector = 0;
|
1170 |
-
var jqChildren;
|
1171 |
-
|
1172 |
-
/* If there is a header in place - then use it - otherwise it's going to get nuked... */
|
1173 |
-
if ( iThs !== 0 )
|
1174 |
-
{
|
1175 |
-
/* We've got a thead from the DOM, so remove hidden columns and apply width to vis cols */
|
1176 |
-
for ( i=0, iLen=oSettings.aoColumns.length ; i<iLen ; i++ )
|
1177 |
-
{
|
1178 |
-
nTh = oSettings.aoColumns[i].nTh;
|
1179 |
-
nTh.setAttribute('role', 'columnheader');
|
1180 |
-
if ( oSettings.aoColumns[i].bSortable )
|
1181 |
-
{
|
1182 |
-
nTh.setAttribute('tabindex', oSettings.iTabIndex);
|
1183 |
-
nTh.setAttribute('aria-controls', oSettings.sTableId);
|
1184 |
-
}
|
1185 |
-
|
1186 |
-
if ( oSettings.aoColumns[i].sClass !== null )
|
1187 |
-
{
|
1188 |
-
$(nTh).addClass( oSettings.aoColumns[i].sClass );
|
1189 |
-
}
|
1190 |
-
|
1191 |
-
/* Set the title of the column if it is user defined (not what was auto detected) */
|
1192 |
-
if ( oSettings.aoColumns[i].sTitle != nTh.innerHTML )
|
1193 |
-
{
|
1194 |
-
nTh.innerHTML = oSettings.aoColumns[i].sTitle;
|
1195 |
-
}
|
1196 |
-
}
|
1197 |
-
}
|
1198 |
-
else
|
1199 |
-
{
|
1200 |
-
/* We don't have a header in the DOM - so we are going to have to create one */
|
1201 |
-
var nTr = document.createElement( "tr" );
|
1202 |
-
|
1203 |
-
for ( i=0, iLen=oSettings.aoColumns.length ; i<iLen ; i++ )
|
1204 |
-
{
|
1205 |
-
nTh = oSettings.aoColumns[i].nTh;
|
1206 |
-
nTh.innerHTML = oSettings.aoColumns[i].sTitle;
|
1207 |
-
nTh.setAttribute('tabindex', '0');
|
1208 |
-
|
1209 |
-
if ( oSettings.aoColumns[i].sClass !== null )
|
1210 |
-
{
|
1211 |
-
$(nTh).addClass( oSettings.aoColumns[i].sClass );
|
1212 |
-
}
|
1213 |
-
|
1214 |
-
nTr.appendChild( nTh );
|
1215 |
-
}
|
1216 |
-
$(oSettings.nTHead).html( '' )[0].appendChild( nTr );
|
1217 |
-
_fnDetectHeader( oSettings.aoHeader, oSettings.nTHead );
|
1218 |
-
}
|
1219 |
-
|
1220 |
-
/* ARIA role for the rows */
|
1221 |
-
$(oSettings.nTHead).children('tr').attr('role', 'row');
|
1222 |
-
|
1223 |
-
/* Add the extra markup needed by jQuery UI's themes */
|
1224 |
-
if ( oSettings.bJUI )
|
1225 |
-
{
|
1226 |
-
for ( i=0, iLen=oSettings.aoColumns.length ; i<iLen ; i++ )
|
1227 |
{
|
1228 |
-
|
1229 |
-
|
1230 |
-
var nDiv = document.createElement('div');
|
1231 |
-
nDiv.className = oSettings.oClasses.sSortJUIWrapper;
|
1232 |
-
$(nTh).contents().appendTo(nDiv);
|
1233 |
-
|
1234 |
-
var nSpan = document.createElement('span');
|
1235 |
-
nSpan.className = oSettings.oClasses.sSortIcon;
|
1236 |
-
nDiv.appendChild( nSpan );
|
1237 |
-
nTh.appendChild( nDiv );
|
1238 |
}
|
1239 |
-
|
1240 |
-
|
1241 |
-
if ( oSettings.oFeatures.bSort )
|
1242 |
-
{
|
1243 |
-
for ( i=0 ; i<oSettings.aoColumns.length ; i++ )
|
1244 |
{
|
1245 |
-
|
1246 |
-
|
1247 |
-
|
1248 |
-
}
|
1249 |
-
else
|
1250 |
-
{
|
1251 |
-
$(oSettings.aoColumns[i].nTh).addClass( oSettings.oClasses.sSortableNone );
|
1252 |
-
}
|
1253 |
}
|
1254 |
-
}
|
1255 |
-
|
1256 |
-
|
1257 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1258 |
{
|
1259 |
-
|
1260 |
}
|
1261 |
-
|
1262 |
-
/* Cache the footer elements */
|
1263 |
-
if ( oSettings.nTFoot !== null )
|
1264 |
{
|
1265 |
-
|
1266 |
-
for ( i=0, iLen=oSettings.aoColumns.length ; i<iLen ; i++ )
|
1267 |
-
{
|
1268 |
-
if ( anCells[i] )
|
1269 |
-
{
|
1270 |
-
oSettings.aoColumns[i].nTf = anCells[i];
|
1271 |
-
if ( oSettings.aoColumns[i].sClass )
|
1272 |
-
{
|
1273 |
-
$(anCells[i]).addClass( oSettings.aoColumns[i].sClass );
|
1274 |
-
}
|
1275 |
-
}
|
1276 |
-
}
|
1277 |
}
|
1278 |
}
|
1279 |
-
|
1280 |
-
|
1281 |
-
/**
|
1282 |
-
* Draw the header (or footer) element based on the column visibility states. The
|
1283 |
-
* methodology here is to use the layout array from _fnDetectHeader, modified for
|
1284 |
-
* the instantaneous column visibility, to construct the new layout. The grid is
|
1285 |
-
* traversed over cell at a time in a rows x columns grid fashion, although each
|
1286 |
-
* cell insert can cover multiple elements in the grid - which is tracks using the
|
1287 |
-
* aApplied array. Cell inserts in the grid will only occur where there isn't
|
1288 |
-
* already a cell in that position.
|
1289 |
-
* @param {object} oSettings dataTables settings object
|
1290 |
-
* @param array {objects} aoSource Layout array from _fnDetectHeader
|
1291 |
-
* @param {boolean} [bIncludeHidden=false] If true then include the hidden columns in the calc,
|
1292 |
-
* @memberof DataTable#oApi
|
1293 |
-
*/
|
1294 |
-
function _fnDrawHead( oSettings, aoSource, bIncludeHidden )
|
1295 |
{
|
1296 |
-
|
1297 |
-
|
1298 |
-
|
1299 |
-
|
1300 |
-
|
1301 |
-
|
1302 |
-
|
1303 |
-
|
1304 |
-
|
1305 |
-
|
1306 |
-
|
1307 |
-
|
1308 |
-
|
1309 |
-
|
1310 |
-
|
1311 |
-
|
1312 |
-
|
1313 |
-
|
1314 |
-
|
1315 |
-
|
1316 |
-
|
1317 |
-
|
1318 |
-
|
1319 |
-
|
1320 |
-
|
1321 |
-
|
1322 |
-
|
1323 |
-
|
|
|
|
|
|
|
1324 |
}
|
1325 |
-
|
1326 |
-
|
1327 |
-
|
1328 |
-
|
1329 |
-
|
1330 |
-
|
1331 |
-
|
1332 |
-
|
1333 |
-
|
1334 |
-
|
1335 |
-
|
1336 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1337 |
}
|
1338 |
-
|
1339 |
-
|
1340 |
-
|
1341 |
-
iRowspan = 1;
|
1342 |
-
iColspan = 1;
|
1343 |
-
|
1344 |
-
/* Check to see if there is already a cell (row/colspan) covering our target
|
1345 |
-
* insert point. If there is, then there is nothing to do.
|
1346 |
-
*/
|
1347 |
-
if ( aApplied[i][j] === undefined )
|
1348 |
-
{
|
1349 |
-
nLocalTr.appendChild( aoLocal[i][j].cell );
|
1350 |
-
aApplied[i][j] = 1;
|
1351 |
-
|
1352 |
-
/* Expand the cell to cover as many rows as needed */
|
1353 |
-
while ( aoLocal[i+iRowspan] !== undefined &&
|
1354 |
-
aoLocal[i][j].cell == aoLocal[i+iRowspan][j].cell )
|
1355 |
-
{
|
1356 |
-
aApplied[i+iRowspan][j] = 1;
|
1357 |
-
iRowspan++;
|
1358 |
-
}
|
1359 |
-
|
1360 |
-
/* Expand the cell to cover as many columns as needed */
|
1361 |
-
while ( aoLocal[i][j+iColspan] !== undefined &&
|
1362 |
-
aoLocal[i][j].cell == aoLocal[i][j+iColspan].cell )
|
1363 |
-
{
|
1364 |
-
/* Must update the applied array over the rows for the columns */
|
1365 |
-
for ( k=0 ; k<iRowspan ; k++ )
|
1366 |
-
{
|
1367 |
-
aApplied[i+k][j+iColspan] = 1;
|
1368 |
-
}
|
1369 |
-
iColspan++;
|
1370 |
-
}
|
1371 |
-
|
1372 |
-
/* Do the actual expansion in the DOM */
|
1373 |
-
aoLocal[i][j].cell.rowSpan = iRowspan;
|
1374 |
-
aoLocal[i][j].cell.colSpan = iColspan;
|
1375 |
}
|
1376 |
}
|
1377 |
}
|
1378 |
}
|
1379 |
-
|
1380 |
-
|
1381 |
-
|
1382 |
-
|
1383 |
-
|
1384 |
-
|
1385 |
-
|
1386 |
-
|
1387 |
-
|
1388 |
-
|
1389 |
-
|
1390 |
-
|
1391 |
-
|
1392 |
-
|
1393 |
-
|
1394 |
}
|
1395 |
-
|
1396 |
-
|
1397 |
-
|
1398 |
-
|
1399 |
-
|
1400 |
-
|
1401 |
-
|
1402 |
-
|
1403 |
-
|
1404 |
-
|
1405 |
-
|
1406 |
-
|
1407 |
-
|
1408 |
-
|
1409 |
-
|
1410 |
-
|
1411 |
-
|
1412 |
-
|
1413 |
-
|
1414 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1415 |
}
|
1416 |
-
oSettings.iInitDisplayStart = -1;
|
1417 |
-
_fnCalculateEnd( oSettings );
|
1418 |
-
}
|
1419 |
-
|
1420 |
-
/* Server-side processing draw intercept */
|
1421 |
-
if ( oSettings.bDeferLoading )
|
1422 |
-
{
|
1423 |
-
oSettings.bDeferLoading = false;
|
1424 |
-
oSettings.iDraw++;
|
1425 |
-
}
|
1426 |
-
else if ( !oSettings.oFeatures.bServerSide )
|
1427 |
-
{
|
1428 |
-
oSettings.iDraw++;
|
1429 |
-
}
|
1430 |
-
else if ( !oSettings.bDestroying && !_fnAjaxUpdate( oSettings ) )
|
1431 |
-
{
|
1432 |
-
return;
|
1433 |
}
|
1434 |
-
|
1435 |
-
|
1436 |
-
|
1437 |
-
|
1438 |
-
|
1439 |
-
|
1440 |
-
|
1441 |
-
|
1442 |
-
|
1443 |
-
|
1444 |
-
|
1445 |
-
|
1446 |
-
|
1447 |
-
|
1448 |
-
|
1449 |
-
|
1450 |
-
|
1451 |
-
|
1452 |
-
|
1453 |
-
|
1454 |
-
|
1455 |
-
|
1456 |
-
|
1457 |
-
if ( iStripes !== 0 )
|
1458 |
-
{
|
1459 |
-
var sStripe = oSettings.asStripeClasses[ iRowCount % iStripes ];
|
1460 |
-
if ( aoData._sRowStripe != sStripe )
|
1461 |
-
{
|
1462 |
-
$(nRow).removeClass( aoData._sRowStripe ).addClass( sStripe );
|
1463 |
-
aoData._sRowStripe = sStripe;
|
1464 |
}
|
|
|
1465 |
}
|
1466 |
-
|
1467 |
-
|
1468 |
-
_fnCallbackFire( oSettings, 'aoRowCallback', null,
|
1469 |
-
[nRow, oSettings.aoData[ oSettings.aiDisplay[j] ]._aData, iRowCount, j] );
|
1470 |
-
|
1471 |
-
anRows.push( nRow );
|
1472 |
-
iRowCount++;
|
1473 |
-
|
1474 |
-
/* If there is an open row - and it is attached to this parent - attach it on redraw */
|
1475 |
-
if ( iOpenRows !== 0 )
|
1476 |
-
{
|
1477 |
-
for ( var k=0 ; k<iOpenRows ; k++ )
|
1478 |
-
{
|
1479 |
-
if ( nRow == oSettings.aoOpenRows[k].nParent )
|
1480 |
-
{
|
1481 |
-
anRows.push( oSettings.aoOpenRows[k].nTr );
|
1482 |
-
break;
|
1483 |
-
}
|
1484 |
-
}
|
1485 |
}
|
1486 |
}
|
1487 |
}
|
1488 |
-
|
1489 |
-
|
1490 |
-
|
1491 |
-
|
1492 |
-
|
1493 |
-
|
1494 |
-
|
1495 |
-
|
1496 |
-
|
1497 |
-
|
1498 |
-
|
1499 |
-
|
1500 |
-
if ( oSettings.iDraw == 1 && oSettings.sAjaxSource !== null && !oSettings.oFeatures.bServerSide )
|
1501 |
-
{
|
1502 |
-
sZero = oLang.sLoadingRecords;
|
1503 |
-
}
|
1504 |
-
else if ( oLang.sEmptyTable && oSettings.fnRecordsTotal() === 0 )
|
1505 |
-
{
|
1506 |
-
sZero = oLang.sEmptyTable;
|
1507 |
}
|
1508 |
-
|
1509 |
-
|
1510 |
-
nTd.setAttribute( 'valign', "top" );
|
1511 |
-
nTd.colSpan = _fnVisbleColumns( oSettings );
|
1512 |
-
nTd.className = oSettings.oClasses.sRowEmpty;
|
1513 |
-
nTd.innerHTML = _fnInfoMacros( oSettings, sZero );
|
1514 |
-
|
1515 |
-
anRows[ iRowCount ].appendChild( nTd );
|
1516 |
}
|
|
|
|
|
|
|
|
|
1517 |
|
1518 |
-
|
1519 |
-
|
1520 |
-
|
1521 |
-
|
1522 |
-
|
1523 |
-
|
1524 |
-
|
1525 |
-
|
1526 |
-
|
1527 |
-
|
1528 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1529 |
*/
|
1530 |
-
|
1531 |
-
|
1532 |
-
|
1533 |
-
|
1534 |
-
|
1535 |
-
|
|
|
1536 |
{
|
1537 |
-
|
1538 |
-
|
1539 |
-
|
1540 |
-
|
1541 |
-
|
1542 |
-
|
1543 |
-
if ( !
|
1544 |
-
oSettings.bSorted || oSettings.bFiltered )
|
1545 |
{
|
1546 |
-
|
1547 |
-
{
|
1548 |
-
oSettings.nTBody.removeChild( n );
|
1549 |
-
}
|
1550 |
}
|
1551 |
-
|
1552 |
-
/*
|
1553 |
-
|
1554 |
{
|
1555 |
-
|
1556 |
}
|
1557 |
-
|
1558 |
-
|
1559 |
-
if (
|
1560 |
{
|
1561 |
-
|
1562 |
}
|
1563 |
-
|
1564 |
-
|
1565 |
-
|
1566 |
-
|
1567 |
-
|
1568 |
-
|
1569 |
-
oSettings.bSorted = false;
|
1570 |
-
oSettings.bFiltered = false;
|
1571 |
-
oSettings.bDrawing = false;
|
1572 |
-
|
1573 |
-
if ( oSettings.oFeatures.bServerSide )
|
1574 |
-
{
|
1575 |
-
_fnProcessingDisplay( oSettings, false );
|
1576 |
-
if ( !oSettings._bInitComplete )
|
1577 |
{
|
1578 |
-
|
|
|
|
|
1579 |
}
|
1580 |
}
|
|
|
|
|
1581 |
}
|
1582 |
-
|
1583 |
-
|
1584 |
-
|
1585 |
-
|
1586 |
-
|
1587 |
-
|
1588 |
-
|
1589 |
-
|
1590 |
-
|
1591 |
-
|
1592 |
-
|
1593 |
-
|
1594 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1595 |
}
|
1596 |
-
|
1597 |
-
{
|
1598 |
-
|
1599 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1600 |
}
|
1601 |
-
|
1602 |
-
{
|
1603 |
-
|
1604 |
-
|
|
|
|
|
|
|
1605 |
}
|
1606 |
}
|
1607 |
-
|
1608 |
-
|
1609 |
-
|
1610 |
-
|
1611 |
-
|
1612 |
-
|
1613 |
-
|
1614 |
-
|
1615 |
-
|
1616 |
-
|
1617 |
-
|
1618 |
-
|
1619 |
-
|
1620 |
-
|
1621 |
-
|
1622 |
-
|
1623 |
-
|
1624 |
-
|
1625 |
-
|
1626 |
-
|
1627 |
-
|
1628 |
-
|
1629 |
-
|
1630 |
-
|
1631 |
-
|
1632 |
-
|
1633 |
-
|
1634 |
-
|
1635 |
-
|
1636 |
-
|
1637 |
-
|
1638 |
-
|
1639 |
-
|
1640 |
-
if (
|
1641 |
-
|
1642 |
-
|
1643 |
-
|
1644 |
-
|
1645 |
-
|
1646 |
-
cNext = aDom[i+1];
|
1647 |
-
if ( cNext == "'" || cNext == '"' )
|
1648 |
-
{
|
1649 |
-
sAttr = "";
|
1650 |
-
j = 2;
|
1651 |
-
while ( aDom[i+j] != cNext )
|
1652 |
-
{
|
1653 |
-
sAttr += aDom[i+j];
|
1654 |
-
j++;
|
1655 |
-
}
|
1656 |
-
|
1657 |
-
/* Replace jQuery UI constants */
|
1658 |
-
if ( sAttr == "H" )
|
1659 |
-
{
|
1660 |
-
sAttr = oSettings.oClasses.sJUIHeader;
|
1661 |
-
}
|
1662 |
-
else if ( sAttr == "F" )
|
1663 |
-
{
|
1664 |
-
sAttr = oSettings.oClasses.sJUIFooter;
|
1665 |
-
}
|
1666 |
-
|
1667 |
-
/* The attribute can be in the format of "#id.class", "#id" or "class" This logic
|
1668 |
-
* breaks the string into parts and applies them as needed
|
1669 |
-
*/
|
1670 |
-
if ( sAttr.indexOf('.') != -1 )
|
1671 |
-
{
|
1672 |
-
var aSplit = sAttr.split('.');
|
1673 |
-
nNewNode.id = aSplit[0].substr(1, aSplit[0].length-1);
|
1674 |
-
nNewNode.className = aSplit[1];
|
1675 |
-
}
|
1676 |
-
else if ( sAttr.charAt(0) == "#" )
|
1677 |
-
{
|
1678 |
-
nNewNode.id = sAttr.substr(1, sAttr.length-1);
|
1679 |
-
}
|
1680 |
-
else
|
1681 |
-
{
|
1682 |
-
nNewNode.className = sAttr;
|
1683 |
-
}
|
1684 |
-
|
1685 |
-
i += j; /* Move along the position array */
|
1686 |
-
}
|
1687 |
-
|
1688 |
-
nInsertNode.appendChild( nNewNode );
|
1689 |
-
nInsertNode = nNewNode;
|
1690 |
-
}
|
1691 |
-
else if ( cOption == '>' )
|
1692 |
-
{
|
1693 |
-
/* End container div */
|
1694 |
-
nInsertNode = nInsertNode.parentNode;
|
1695 |
-
}
|
1696 |
-
else if ( cOption == 'l' && oSettings.oFeatures.bPaginate && oSettings.oFeatures.bLengthChange )
|
1697 |
-
{
|
1698 |
-
/* Length */
|
1699 |
-
nTmp = _fnFeatureHtmlLength( oSettings );
|
1700 |
-
iPushFeature = 1;
|
1701 |
-
}
|
1702 |
-
else if ( cOption == 'f' && oSettings.oFeatures.bFilter )
|
1703 |
-
{
|
1704 |
-
/* Filter */
|
1705 |
-
nTmp = _fnFeatureHtmlFilter( oSettings );
|
1706 |
-
iPushFeature = 1;
|
1707 |
-
}
|
1708 |
-
else if ( cOption == 'r' && oSettings.oFeatures.bProcessing )
|
1709 |
-
{
|
1710 |
-
/* pRocessing */
|
1711 |
-
nTmp = _fnFeatureHtmlProcessing( oSettings );
|
1712 |
-
iPushFeature = 1;
|
1713 |
}
|
1714 |
-
|
1715 |
-
|
1716 |
-
|
1717 |
-
|
1718 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1719 |
}
|
1720 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1721 |
{
|
1722 |
-
|
1723 |
-
nTmp = _fnFeatureHtmlInfo( oSettings );
|
1724 |
-
iPushFeature = 1;
|
1725 |
}
|
1726 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1727 |
{
|
1728 |
-
|
1729 |
-
nTmp = _fnFeatureHtmlPaginate( oSettings );
|
1730 |
-
iPushFeature = 1;
|
1731 |
}
|
1732 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1733 |
{
|
1734 |
-
|
1735 |
-
|
1736 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1737 |
{
|
1738 |
-
|
|
|
1739 |
{
|
1740 |
-
|
1741 |
-
if ( nTmp )
|
1742 |
-
{
|
1743 |
-
iPushFeature = 1;
|
1744 |
-
}
|
1745 |
-
break;
|
1746 |
}
|
|
|
1747 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1748 |
}
|
1749 |
-
|
1750 |
-
|
1751 |
-
|
|
|
|
|
1752 |
{
|
1753 |
-
|
|
|
1754 |
{
|
1755 |
-
|
|
|
1756 |
}
|
1757 |
-
oSettings.aanFeatures[cOption].push( nTmp );
|
1758 |
-
nInsertNode.appendChild( nTmp );
|
1759 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1760 |
}
|
1761 |
-
|
1762 |
-
/* Built our DOM structure - replace the holding div with what we want */
|
1763 |
-
nHolding.parentNode.replaceChild( oSettings.nTableWrapper, nHolding );
|
1764 |
}
|
1765 |
-
|
1766 |
-
|
1767 |
-
/**
|
1768 |
-
* Use the DOM source to create up an array of header cells. The idea here is to
|
1769 |
-
* create a layout grid (array) of rows x columns, which contains a reference
|
1770 |
-
* to the cell that that point in the grid (regardless of col/rowspan), such that
|
1771 |
-
* any column / row could be removed and the new grid constructed
|
1772 |
-
* @param array {object} aLayout Array to store the calculated layout in
|
1773 |
-
* @param {node} nThead The header/footer element for the table
|
1774 |
-
* @memberof DataTable#oApi
|
1775 |
-
*/
|
1776 |
-
function _fnDetectHeader ( aLayout, nThead )
|
1777 |
{
|
1778 |
-
|
1779 |
-
var
|
1780 |
-
|
1781 |
-
var bUnique;
|
1782 |
-
var fnShiftCol = function ( a, i, j ) {
|
1783 |
-
var k = a[i];
|
1784 |
-
while ( k[j] ) {
|
1785 |
-
j++;
|
1786 |
-
}
|
1787 |
-
return j;
|
1788 |
-
};
|
1789 |
-
|
1790 |
-
aLayout.splice( 0, aLayout.length );
|
1791 |
-
|
1792 |
-
/* We know how many rows there are in the layout - so prep it */
|
1793 |
-
for ( i=0, iLen=nTrs.length ; i<iLen ; i++ )
|
1794 |
{
|
1795 |
-
|
1796 |
}
|
1797 |
-
|
1798 |
-
/* Calculate a layout array */
|
1799 |
-
for ( i=0, iLen=nTrs.length ; i<iLen ; i++ )
|
1800 |
{
|
1801 |
-
|
1802 |
-
iColumn = 0;
|
1803 |
-
|
1804 |
-
/* For every cell in the row... */
|
1805 |
-
nCell = nTr.firstChild;
|
1806 |
-
while ( nCell ) {
|
1807 |
-
if ( nCell.nodeName.toUpperCase() == "TD" ||
|
1808 |
-
nCell.nodeName.toUpperCase() == "TH" )
|
1809 |
-
{
|
1810 |
-
/* Get the col and rowspan attributes from the DOM and sanitise them */
|
1811 |
-
iColspan = nCell.getAttribute('colspan') * 1;
|
1812 |
-
iRowspan = nCell.getAttribute('rowspan') * 1;
|
1813 |
-
iColspan = (!iColspan || iColspan===0 || iColspan===1) ? 1 : iColspan;
|
1814 |
-
iRowspan = (!iRowspan || iRowspan===0 || iRowspan===1) ? 1 : iRowspan;
|
1815 |
-
|
1816 |
-
/* There might be colspan cells already in this row, so shift our target
|
1817 |
-
* accordingly
|
1818 |
-
*/
|
1819 |
-
iColShifted = fnShiftCol( aLayout, i, iColumn );
|
1820 |
-
|
1821 |
-
/* Cache calculation for unique columns */
|
1822 |
-
bUnique = iColspan === 1 ? true : false;
|
1823 |
-
|
1824 |
-
/* If there is col / rowspan, copy the information into the layout grid */
|
1825 |
-
for ( l=0 ; l<iColspan ; l++ )
|
1826 |
-
{
|
1827 |
-
for ( k=0 ; k<iRowspan ; k++ )
|
1828 |
-
{
|
1829 |
-
aLayout[i+k][iColShifted+l] = {
|
1830 |
-
"cell": nCell,
|
1831 |
-
"unique": bUnique
|
1832 |
-
};
|
1833 |
-
aLayout[i+k].nTr = nTr;
|
1834 |
-
}
|
1835 |
-
}
|
1836 |
-
}
|
1837 |
-
nCell = nCell.nextSibling;
|
1838 |
-
}
|
1839 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1840 |
}
|
1841 |
-
|
1842 |
-
|
1843 |
-
|
1844 |
-
|
1845 |
-
|
1846 |
-
|
1847 |
-
|
1848 |
-
|
1849 |
-
|
1850 |
-
|
1851 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1852 |
{
|
1853 |
-
|
1854 |
-
|
1855 |
-
|
1856 |
-
|
1857 |
-
if ( nHeader )
|
1858 |
-
{
|
1859 |
-
aLayout = [];
|
1860 |
-
_fnDetectHeader( aLayout, nHeader );
|
1861 |
-
}
|
1862 |
-
}
|
1863 |
-
|
1864 |
-
for ( var i=0, iLen=aLayout.length ; i<iLen ; i++ )
|
1865 |
{
|
1866 |
-
|
|
|
|
|
|
|
|
|
|
|
1867 |
{
|
1868 |
-
|
1869 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1870 |
{
|
1871 |
-
|
|
|
|
|
1872 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1873 |
}
|
|
|
|
|
|
|
1874 |
}
|
1875 |
-
|
1876 |
-
return aReturn;
|
1877 |
-
}
|
1878 |
-
|
1879 |
-
|
1880 |
-
|
1881 |
-
/**
|
1882 |
-
* Update the table using an Ajax call
|
1883 |
-
* @param {object} oSettings dataTables settings object
|
1884 |
-
* @returns {boolean} Block the table drawing or not
|
1885 |
-
* @memberof DataTable#oApi
|
1886 |
-
*/
|
1887 |
-
function _fnAjaxUpdate( oSettings )
|
1888 |
-
{
|
1889 |
-
if ( oSettings.bAjaxDataGet )
|
1890 |
{
|
1891 |
-
|
1892 |
-
|
1893 |
-
var iColumns = oSettings.aoColumns.length;
|
1894 |
-
var aoData = _fnAjaxParameters( oSettings );
|
1895 |
-
_fnServerParams( oSettings, aoData );
|
1896 |
-
|
1897 |
-
oSettings.fnServerData.call( oSettings.oInstance, oSettings.sAjaxSource, aoData,
|
1898 |
-
function(json) {
|
1899 |
-
_fnAjaxUpdateDraw( oSettings, json );
|
1900 |
-
}, oSettings );
|
1901 |
-
return false;
|
1902 |
}
|
1903 |
-
|
|
|
1904 |
{
|
1905 |
-
|
|
|
1906 |
}
|
1907 |
-
|
1908 |
-
|
1909 |
-
|
1910 |
-
/**
|
1911 |
-
* Build up the parameters in an object needed for a server-side processing request
|
1912 |
-
* @param {object} oSettings dataTables settings object
|
1913 |
-
* @returns {bool} block the table drawing or not
|
1914 |
-
* @memberof DataTable#oApi
|
1915 |
-
*/
|
1916 |
-
function _fnAjaxParameters( oSettings )
|
1917 |
-
{
|
1918 |
-
var iColumns = oSettings.aoColumns.length;
|
1919 |
-
var aoData = [], mDataProp, aaSort, aDataSort;
|
1920 |
-
var i, j;
|
1921 |
-
|
1922 |
-
aoData.push( { "name": "sEcho", "value": oSettings.iDraw } );
|
1923 |
-
aoData.push( { "name": "iColumns", "value": iColumns } );
|
1924 |
-
aoData.push( { "name": "sColumns", "value": _fnColumnOrdering(oSettings) } );
|
1925 |
-
aoData.push( { "name": "iDisplayStart", "value": oSettings._iDisplayStart } );
|
1926 |
-
aoData.push( { "name": "iDisplayLength", "value": oSettings.oFeatures.bPaginate !== false ?
|
1927 |
-
oSettings._iDisplayLength : -1 } );
|
1928 |
-
|
1929 |
-
for ( i=0 ; i<iColumns ; i++ )
|
1930 |
{
|
1931 |
-
|
1932 |
-
|
1933 |
}
|
1934 |
-
|
1935 |
-
/* Filtering */
|
1936 |
-
if ( oSettings.oFeatures.bFilter !== false )
|
1937 |
{
|
1938 |
-
|
1939 |
-
|
1940 |
-
for ( i=0 ; i<iColumns ; i++ )
|
1941 |
-
{
|
1942 |
-
aoData.push( { "name": "sSearch_"+i, "value": oSettings.aoPreSearchCols[i].sSearch } );
|
1943 |
-
aoData.push( { "name": "bRegex_"+i, "value": oSettings.aoPreSearchCols[i].bRegex } );
|
1944 |
-
aoData.push( { "name": "bSearchable_"+i, "value": oSettings.aoColumns[i].bSearchable } );
|
1945 |
-
}
|
1946 |
}
|
1947 |
-
|
1948 |
-
/* Sorting */
|
1949 |
-
if ( oSettings.oFeatures.bSort !== false )
|
1950 |
{
|
1951 |
-
|
1952 |
-
|
1953 |
-
|
1954 |
-
|
1955 |
-
|
1956 |
-
|
1957 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1958 |
{
|
1959 |
-
|
1960 |
-
|
1961 |
-
for ( j=0 ; j<aDataSort.length ; j++ )
|
1962 |
{
|
1963 |
-
|
1964 |
-
|
1965 |
-
iCounter++;
|
1966 |
}
|
1967 |
}
|
1968 |
-
|
1969 |
-
|
1970 |
-
|
|
|
|
|
|
|
|
|
|
|
1971 |
{
|
1972 |
-
|
1973 |
}
|
|
|
|
|
|
|
1974 |
}
|
1975 |
-
|
1976 |
-
return aoData;
|
1977 |
}
|
1978 |
-
|
1979 |
-
|
1980 |
-
|
1981 |
-
|
1982 |
-
|
1983 |
-
|
1984 |
-
|
1985 |
-
|
1986 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1987 |
{
|
1988 |
-
|
1989 |
}
|
1990 |
-
|
1991 |
-
|
1992 |
-
|
1993 |
-
* Data the data from the server (nuking the old) and redraw the table
|
1994 |
-
* @param {object} oSettings dataTables settings object
|
1995 |
-
* @param {object} json json data return from the server.
|
1996 |
-
* @param {string} json.sEcho Tracking flag for DataTables to match requests
|
1997 |
-
* @param {int} json.iTotalRecords Number of records in the data set, not accounting for filtering
|
1998 |
-
* @param {int} json.iTotalDisplayRecords Number of records in the data set, accounting for filtering
|
1999 |
-
* @param {array} json.aaData The data to display on this page
|
2000 |
-
* @param {string} [json.sColumns] Column ordering (sName, comma separated)
|
2001 |
-
* @memberof DataTable#oApi
|
2002 |
-
*/
|
2003 |
-
function _fnAjaxUpdateDraw ( oSettings, json )
|
2004 |
{
|
2005 |
-
|
2006 |
-
|
2007 |
-
|
2008 |
-
|
2009 |
-
|
2010 |
-
|
2011 |
-
|
2012 |
-
|
2013 |
-
}
|
2014 |
-
else
|
2015 |
-
{
|
2016 |
-
oSettings.iDraw = json.sEcho * 1;
|
2017 |
-
}
|
2018 |
-
}
|
2019 |
-
|
2020 |
-
if ( !oSettings.oScroll.bInfinite ||
|
2021 |
-
(oSettings.oScroll.bInfinite && (oSettings.bSorted || oSettings.bFiltered)) )
|
2022 |
-
{
|
2023 |
-
_fnClearTable( oSettings );
|
2024 |
-
}
|
2025 |
-
oSettings._iRecordsTotal = parseInt(json.iTotalRecords, 10);
|
2026 |
-
oSettings._iRecordsDisplay = parseInt(json.iTotalDisplayRecords, 10);
|
2027 |
-
|
2028 |
-
/* Determine if reordering is required */
|
2029 |
-
var sOrdering = _fnColumnOrdering(oSettings);
|
2030 |
-
var bReOrder = (json.sColumns !== undefined && sOrdering !== "" && json.sColumns != sOrdering );
|
2031 |
-
var aiIndex;
|
2032 |
-
if ( bReOrder )
|
2033 |
-
{
|
2034 |
-
aiIndex = _fnReOrderIndex( oSettings, json.sColumns );
|
2035 |
-
}
|
2036 |
-
|
2037 |
-
var aData = _fnGetObjectDataFn( oSettings.sAjaxDataProp )( json );
|
2038 |
-
for ( var i=0, iLen=aData.length ; i<iLen ; i++ )
|
2039 |
-
{
|
2040 |
-
if ( bReOrder )
|
2041 |
{
|
2042 |
-
/*
|
2043 |
-
|
2044 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2045 |
{
|
2046 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2047 |
}
|
2048 |
-
_fnAddData( oSettings, aDataSorted );
|
2049 |
-
}
|
2050 |
-
else
|
2051 |
-
{
|
2052 |
-
/* No re-order required, sever got it "right" - just straight add */
|
2053 |
-
_fnAddData( oSettings, aData[i] );
|
2054 |
}
|
|
|
2055 |
}
|
2056 |
-
oSettings.aiDisplay = oSettings.aiDisplayMaster.slice();
|
2057 |
-
|
2058 |
-
oSettings.bAjaxDataGet = false;
|
2059 |
-
_fnDraw( oSettings );
|
2060 |
-
oSettings.bAjaxDataGet = true;
|
2061 |
-
_fnProcessingDisplay( oSettings, false );
|
2062 |
}
|
2063 |
-
|
2064 |
-
|
2065 |
-
|
2066 |
-
|
2067 |
-
|
2068 |
-
|
2069 |
-
|
2070 |
-
|
2071 |
-
|
2072 |
-
|
|
|
|
|
|
|
|
|
|
|
2073 |
{
|
2074 |
-
|
2075 |
-
|
2076 |
-
var sSearchStr = oSettings.oLanguage.sSearch;
|
2077 |
-
sSearchStr = (sSearchStr.indexOf('_INPUT_') !== -1) ?
|
2078 |
-
sSearchStr.replace('_INPUT_', '<input type="text" />') :
|
2079 |
-
sSearchStr==="" ? '<input type="text" />' : sSearchStr+' <input type="text" />';
|
2080 |
-
|
2081 |
-
var nFilter = document.createElement( 'div' );
|
2082 |
-
nFilter.className = oSettings.oClasses.sFilter;
|
2083 |
-
nFilter.innerHTML = '<label>'+sSearchStr+'</label>';
|
2084 |
-
if ( !oSettings.aanFeatures.f )
|
2085 |
{
|
2086 |
-
|
|
|
2087 |
}
|
2088 |
-
|
2089 |
-
var jqFilter = $('input[type="text"]', nFilter);
|
2090 |
-
|
2091 |
-
// Store a reference to the input element, so other input elements could be
|
2092 |
-
// added to the filter wrapper if needed (submit button for example)
|
2093 |
-
nFilter._DT_Input = jqFilter[0];
|
2094 |
-
|
2095 |
-
jqFilter.val( oPreviousSearch.sSearch.replace('"','"') );
|
2096 |
-
jqFilter.bind( 'keyup.DT', function(e) {
|
2097 |
-
/* Update all other filter input elements for the new display */
|
2098 |
-
var n = oSettings.aanFeatures.f;
|
2099 |
-
var val = this.value==="" ? "" : this.value; // mental IE8 fix :-(
|
2100 |
-
|
2101 |
-
for ( var i=0, iLen=n.length ; i<iLen ; i++ )
|
2102 |
-
{
|
2103 |
-
if ( n[i] != $(this).parents('div.dataTables_filter')[0] )
|
2104 |
-
{
|
2105 |
-
$(n[i]._DT_Input).val( val );
|
2106 |
-
}
|
2107 |
-
}
|
2108 |
-
|
2109 |
-
/* Now do the filter */
|
2110 |
-
if ( val != oPreviousSearch.sSearch )
|
2111 |
-
{
|
2112 |
-
_fnFilterComplete( oSettings, {
|
2113 |
-
"sSearch": val,
|
2114 |
-
"bRegex": oPreviousSearch.bRegex,
|
2115 |
-
"bSmart": oPreviousSearch.bSmart ,
|
2116 |
-
"bCaseInsensitive": oPreviousSearch.bCaseInsensitive
|
2117 |
-
} );
|
2118 |
-
}
|
2119 |
-
} );
|
2120 |
-
|
2121 |
-
jqFilter
|
2122 |
-
.attr('aria-controls', oSettings.sTableId)
|
2123 |
-
.bind( 'keypress.DT', function(e) {
|
2124 |
-
/* Prevent form submission */
|
2125 |
-
if ( e.keyCode == 13 )
|
2126 |
-
{
|
2127 |
-
return false;
|
2128 |
-
}
|
2129 |
-
}
|
2130 |
-
);
|
2131 |
-
|
2132 |
-
return nFilter;
|
2133 |
}
|
2134 |
-
|
2135 |
-
|
2136 |
-
/**
|
2137 |
-
* Filter the table using both the global filter and column based filtering
|
2138 |
-
* @param {object} oSettings dataTables settings object
|
2139 |
-
* @param {object} oSearch search information
|
2140 |
-
* @param {int} [iForce] force a research of the master array (1) or not (undefined or 0)
|
2141 |
-
* @memberof DataTable#oApi
|
2142 |
-
*/
|
2143 |
-
function _fnFilterComplete ( oSettings, oInput, iForce )
|
2144 |
{
|
2145 |
-
var
|
2146 |
-
var aoPrevSearch = oSettings.aoPreSearchCols;
|
2147 |
-
var fnSaveFilter = function ( oFilter ) {
|
2148 |
-
/* Save the filtering values */
|
2149 |
-
oPrevSearch.sSearch = oFilter.sSearch;
|
2150 |
-
oPrevSearch.bRegex = oFilter.bRegex;
|
2151 |
-
oPrevSearch.bSmart = oFilter.bSmart;
|
2152 |
-
oPrevSearch.bCaseInsensitive = oFilter.bCaseInsensitive;
|
2153 |
-
};
|
2154 |
-
|
2155 |
-
/* In server-side processing all filtering is done by the server, so no point hanging around here */
|
2156 |
-
if ( !oSettings.oFeatures.bServerSide )
|
2157 |
{
|
2158 |
-
|
2159 |
-
|
2160 |
-
fnSaveFilter( oInput );
|
2161 |
-
|
2162 |
-
/* Now do the individual column filter */
|
2163 |
-
for ( var i=0 ; i<oSettings.aoPreSearchCols.length ; i++ )
|
2164 |
{
|
2165 |
-
|
2166 |
-
aoPrevSearch[i].bSmart, aoPrevSearch[i].bCaseInsensitive );
|
2167 |
}
|
2168 |
-
|
2169 |
-
/* Custom filtering */
|
2170 |
-
_fnFilterCustom( oSettings );
|
2171 |
}
|
2172 |
-
else
|
2173 |
-
{
|
2174 |
-
fnSaveFilter( oInput );
|
2175 |
-
}
|
2176 |
-
|
2177 |
-
/* Tell the draw function we have been filtering */
|
2178 |
-
oSettings.bFiltered = true;
|
2179 |
-
$(oSettings.oInstance).trigger('filter', oSettings);
|
2180 |
-
|
2181 |
-
/* Redraw the table */
|
2182 |
-
oSettings._iDisplayStart = 0;
|
2183 |
-
_fnCalculateEnd( oSettings );
|
2184 |
-
_fnDraw( oSettings );
|
2185 |
-
|
2186 |
-
/* Rebuild search array 'offline' */
|
2187 |
-
_fnBuildSearchArray( oSettings, 0 );
|
2188 |
}
|
2189 |
-
|
2190 |
-
|
2191 |
-
|
2192 |
-
|
2193 |
-
|
2194 |
-
|
2195 |
-
|
2196 |
-
|
2197 |
-
|
2198 |
-
|
2199 |
-
|
2200 |
-
|
2201 |
-
|
2202 |
-
|
2203 |
-
|
2204 |
-
|
2205 |
-
|
2206 |
-
|
2207 |
-
|
2208 |
-
|
2209 |
-
|
2210 |
-
|
2211 |
-
|
2212 |
-
|
2213 |
-
|
2214 |
-
|
2215 |
-
|
2216 |
-
|
2217 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
2218 |
}
|
|
|
2219 |
}
|
2220 |
-
|
2221 |
-
|
2222 |
-
|
2223 |
-
|
2224 |
-
/**
|
2225 |
-
* Filter the table on a per-column basis
|
2226 |
-
* @param {object} oSettings dataTables settings object
|
2227 |
-
* @param {string} sInput string to filter on
|
2228 |
-
* @param {int} iColumn column to filter
|
2229 |
-
* @param {bool} bRegex treat search string as a regular expression or not
|
2230 |
-
* @param {bool} bSmart use smart filtering or not
|
2231 |
-
* @param {bool} bCaseInsensitive Do case insenstive matching or not
|
2232 |
-
* @memberof DataTable#oApi
|
2233 |
-
*/
|
2234 |
-
function _fnFilterColumn ( oSettings, sInput, iColumn, bRegex, bSmart, bCaseInsensitive )
|
2235 |
-
{
|
2236 |
-
if ( sInput === "" )
|
2237 |
-
{
|
2238 |
-
return;
|
2239 |
-
}
|
2240 |
-
|
2241 |
-
var iIndexCorrector = 0;
|
2242 |
-
var rpSearch = _fnFilterCreateSearch( sInput, bRegex, bSmart, bCaseInsensitive );
|
2243 |
-
|
2244 |
-
for ( var i=oSettings.aiDisplay.length-1 ; i>=0 ; i-- )
|
2245 |
-
{
|
2246 |
-
var sData = _fnDataToSearch( _fnGetCellData( oSettings, oSettings.aiDisplay[i], iColumn, 'filter' ),
|
2247 |
-
oSettings.aoColumns[iColumn].sType );
|
2248 |
-
if ( ! rpSearch.test( sData ) )
|
2249 |
-
{
|
2250 |
-
oSettings.aiDisplay.splice( i, 1 );
|
2251 |
-
iIndexCorrector++;
|
2252 |
}
|
2253 |
-
}
|
|
|
2254 |
}
|
2255 |
-
|
2256 |
-
|
2257 |
-
|
2258 |
-
|
2259 |
-
|
2260 |
-
|
2261 |
-
* @param {int} iForce optional - force a research of the master array (1) or not (undefined or 0)
|
2262 |
-
* @param {bool} bRegex treat as a regular expression or not
|
2263 |
-
* @param {bool} bSmart perform smart filtering or not
|
2264 |
-
* @param {bool} bCaseInsensitive Do case insenstive matching or not
|
2265 |
-
* @memberof DataTable#oApi
|
2266 |
-
*/
|
2267 |
-
function _fnFilter( oSettings, sInput, iForce, bRegex, bSmart, bCaseInsensitive )
|
2268 |
{
|
2269 |
-
|
2270 |
-
|
2271 |
-
var
|
2272 |
-
|
2273 |
-
|
2274 |
-
|
2275 |
-
|
2276 |
-
|
2277 |
-
|
2278 |
-
|
2279 |
-
|
2280 |
-
|
2281 |
-
|
2282 |
-
|
2283 |
-
}
|
2284 |
-
|
2285 |
-
/*
|
2286 |
-
* If the input is blank - we want the full data set
|
2287 |
-
*/
|
2288 |
-
if ( sInput.length <= 0 )
|
2289 |
-
{
|
2290 |
-
oSettings.aiDisplay.splice( 0, oSettings.aiDisplay.length);
|
2291 |
-
oSettings.aiDisplay = oSettings.aiDisplayMaster.slice();
|
2292 |
-
}
|
2293 |
-
else
|
2294 |
-
{
|
2295 |
-
/*
|
2296 |
-
* We are starting a new search or the new search string is smaller
|
2297 |
-
* then the old one (i.e. delete). Search from the master array
|
2298 |
-
*/
|
2299 |
-
if ( oSettings.aiDisplay.length == oSettings.aiDisplayMaster.length ||
|
2300 |
-
oPrevSearch.sSearch.length > sInput.length || iForce == 1 ||
|
2301 |
-
sInput.indexOf(oPrevSearch.sSearch) !== 0 )
|
2302 |
-
{
|
2303 |
-
/* Nuke the old display array - we are going to rebuild it */
|
2304 |
-
oSettings.aiDisplay.splice( 0, oSettings.aiDisplay.length);
|
2305 |
-
|
2306 |
-
/* Force a rebuild of the search array */
|
2307 |
-
_fnBuildSearchArray( oSettings, 1 );
|
2308 |
-
|
2309 |
-
/* Search through all records to populate the search array
|
2310 |
-
* The the oSettings.aiDisplayMaster and asDataSearch arrays have 1 to 1
|
2311 |
-
* mapping
|
2312 |
-
*/
|
2313 |
-
for ( i=0 ; i<oSettings.aiDisplayMaster.length ; i++ )
|
2314 |
-
{
|
2315 |
-
if ( rpSearch.test(oSettings.asDataSearch[i]) )
|
2316 |
-
{
|
2317 |
-
oSettings.aiDisplay.push( oSettings.aiDisplayMaster[i] );
|
2318 |
-
}
|
2319 |
-
}
|
2320 |
-
}
|
2321 |
-
else
|
2322 |
-
{
|
2323 |
-
/* Using old search array - refine it - do it this way for speed
|
2324 |
-
* Don't have to search the whole master array again
|
2325 |
-
*/
|
2326 |
-
var iIndexCorrector = 0;
|
2327 |
-
|
2328 |
-
/* Search the current results */
|
2329 |
-
for ( i=0 ; i<oSettings.asDataSearch.length ; i++ )
|
2330 |
-
{
|
2331 |
-
if ( ! rpSearch.test(oSettings.asDataSearch[i]) )
|
2332 |
-
{
|
2333 |
-
oSettings.aiDisplay.splice( i-iIndexCorrector, 1 );
|
2334 |
-
iIndexCorrector++;
|
2335 |
-
}
|
2336 |
-
}
|
2337 |
-
}
|
2338 |
-
}
|
2339 |
}
|
2340 |
-
|
2341 |
-
|
2342 |
-
|
2343 |
-
|
2344 |
-
|
2345 |
-
|
2346 |
-
|
2347 |
-
*/
|
2348 |
-
function _fnBuildSearchArray ( oSettings, iMaster )
|
2349 |
-
{
|
2350 |
-
if ( !oSettings.oFeatures.bServerSide )
|
2351 |
-
{
|
2352 |
-
/* Clear out the old data */
|
2353 |
-
oSettings.asDataSearch = [];
|
2354 |
-
|
2355 |
-
var aiFilterColumns = _fnGetColumns( oSettings, 'bSearchable' );
|
2356 |
-
var aiIndex = (iMaster===1) ?
|
2357 |
-
oSettings.aiDisplayMaster :
|
2358 |
-
oSettings.aiDisplay;
|
2359 |
-
|
2360 |
-
for ( var i=0, iLen=aiIndex.length ; i<iLen ; i++ )
|
2361 |
-
{
|
2362 |
-
oSettings.asDataSearch[i] = _fnBuildSearchRow(
|
2363 |
-
oSettings,
|
2364 |
-
_fnGetRowData( oSettings, aiIndex[i], 'filter', aiFilterColumns )
|
2365 |
-
);
|
2366 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2367 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2368 |
}
|
2369 |
-
|
2370 |
-
|
2371 |
-
/**
|
2372 |
-
* Create a searchable string from a single data row
|
2373 |
-
* @param {object} oSettings dataTables settings object
|
2374 |
-
* @param {array} aData Row data array to use for the data to search
|
2375 |
-
* @memberof DataTable#oApi
|
2376 |
-
*/
|
2377 |
-
function _fnBuildSearchRow( oSettings, aData )
|
2378 |
{
|
2379 |
-
|
2380 |
-
|
2381 |
-
|
2382 |
-
|
2383 |
-
{
|
2384 |
-
sSearch = $('<div>').html(sSearch).text();
|
2385 |
-
}
|
2386 |
-
|
2387 |
-
// Strip newline characters
|
2388 |
-
return sSearch.replace( /[\n\r]/g, " " );
|
2389 |
}
|
2390 |
-
|
2391 |
-
/**
|
2392 |
-
* Build a regular expression object suitable for searching a table
|
2393 |
-
* @param {string} sSearch string to search for
|
2394 |
-
* @param {bool} bRegex treat as a regular expression or not
|
2395 |
-
* @param {bool} bSmart perform smart filtering or not
|
2396 |
-
* @param {bool} bCaseInsensitive Do case insensitive matching or not
|
2397 |
-
* @returns {RegExp} constructed object
|
2398 |
-
* @memberof DataTable#oApi
|
2399 |
-
*/
|
2400 |
-
function _fnFilterCreateSearch( sSearch, bRegex, bSmart, bCaseInsensitive )
|
2401 |
{
|
2402 |
-
|
2403 |
-
|
2404 |
-
if ( bSmart )
|
2405 |
-
{
|
2406 |
-
/* Generate the regular expression to use. Something along the lines of:
|
2407 |
-
* ^(?=.*?\bone\b)(?=.*?\btwo\b)(?=.*?\bthree\b).*$
|
2408 |
-
*/
|
2409 |
-
asSearch = bRegex ? sSearch.split( ' ' ) : _fnEscapeRegex( sSearch ).split( ' ' );
|
2410 |
-
sRegExpString = '^(?=.*?'+asSearch.join( ')(?=.*?' )+').*$';
|
2411 |
-
return new RegExp( sRegExpString, bCaseInsensitive ? "i" : "" );
|
2412 |
-
}
|
2413 |
-
else
|
2414 |
-
{
|
2415 |
-
sSearch = bRegex ? sSearch : _fnEscapeRegex( sSearch );
|
2416 |
-
return new RegExp( sSearch, bCaseInsensitive ? "i" : "" );
|
2417 |
-
}
|
2418 |
}
|
2419 |
-
|
2420 |
-
|
2421 |
-
/**
|
2422 |
-
* Convert raw data into something that the user can search on
|
2423 |
-
* @param {string} sData data to be modified
|
2424 |
-
* @param {string} sType data type
|
2425 |
-
* @returns {string} search string
|
2426 |
-
* @memberof DataTable#oApi
|
2427 |
-
*/
|
2428 |
-
function _fnDataToSearch ( sData, sType )
|
2429 |
{
|
2430 |
-
|
2431 |
-
|
2432 |
-
|
2433 |
-
|
2434 |
-
|
2435 |
-
|
2436 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2437 |
}
|
2438 |
-
|
2439 |
-
|
2440 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2441 |
}
|
2442 |
-
|
2443 |
-
{
|
2444 |
-
|
2445 |
}
|
2446 |
-
return sData;
|
2447 |
}
|
2448 |
-
|
2449 |
-
|
2450 |
-
|
2451 |
-
|
2452 |
-
* @param {string} sVal string to escape
|
2453 |
-
* @returns {string} escaped string
|
2454 |
-
* @memberof DataTable#oApi
|
2455 |
-
*/
|
2456 |
-
function _fnEscapeRegex ( sVal )
|
2457 |
-
{
|
2458 |
-
var acEscape = [ '/', '.', '*', '+', '?', '|', '(', ')', '[', ']', '{', '}', '\\', '$', '^', '-' ];
|
2459 |
-
var reReplace = new RegExp( '(\\' + acEscape.join('|\\') + ')', 'g' );
|
2460 |
-
return sVal.replace(reReplace, '\\$1');
|
2461 |
}
|
2462 |
-
|
2463 |
-
|
2464 |
-
|
2465 |
-
|
2466 |
-
|
2467 |
-
|
2468 |
-
|
2469 |
-
|
2470 |
-
|
2471 |
-
|
2472 |
-
var nInfo = document.createElement( 'div' );
|
2473 |
-
nInfo.className = oSettings.oClasses.sInfo;
|
2474 |
-
|
2475 |
-
/* Actions that are to be taken once only for this feature */
|
2476 |
-
if ( !oSettings.aanFeatures.i )
|
2477 |
-
{
|
2478 |
-
/* Add draw callback */
|
2479 |
-
oSettings.aoDrawCallback.push( {
|
2480 |
-
"fn": _fnUpdateInfo,
|
2481 |
-
"sName": "information"
|
2482 |
-
} );
|
2483 |
-
|
2484 |
-
/* Add id */
|
2485 |
-
nInfo.id = oSettings.sTableId+'_info';
|
2486 |
-
}
|
2487 |
-
oSettings.nTable.setAttribute( 'aria-describedby', oSettings.sTableId+'_info' );
|
2488 |
-
|
2489 |
-
return nInfo;
|
2490 |
}
|
2491 |
-
|
2492 |
-
|
2493 |
-
|
2494 |
-
|
2495 |
-
|
2496 |
-
|
2497 |
-
|
2498 |
-
|
2499 |
-
|
2500 |
-
|
2501 |
-
|
2502 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2503 |
return;
|
2504 |
}
|
2505 |
-
|
2506 |
-
var
|
2507 |
-
oLang = oSettings.oLanguage,
|
2508 |
-
iStart = oSettings._iDisplayStart+1,
|
2509 |
-
iEnd = oSettings.fnDisplayEnd(),
|
2510 |
-
iMax = oSettings.fnRecordsTotal(),
|
2511 |
-
iTotal = oSettings.fnRecordsDisplay(),
|
2512 |
-
sOut;
|
2513 |
-
|
2514 |
-
if ( iTotal === 0 )
|
2515 |
-
{
|
2516 |
-
/* Empty record set */
|
2517 |
-
sOut = oLang.sInfoEmpty;
|
2518 |
-
}
|
2519 |
-
else {
|
2520 |
-
/* Normal record set */
|
2521 |
-
sOut = oLang.sInfo;
|
2522 |
-
}
|
2523 |
-
|
2524 |
-
if ( iTotal != iMax )
|
2525 |
-
{
|
2526 |
-
/* Record set after filtering */
|
2527 |
-
sOut += ' ' + oLang.sInfoFiltered;
|
2528 |
-
}
|
2529 |
-
|
2530 |
-
// Convert the macros
|
2531 |
-
sOut += oLang.sInfoPostFix;
|
2532 |
-
sOut = _fnInfoMacros( oSettings, sOut );
|
2533 |
-
|
2534 |
-
if ( oLang.fnInfoCallback !== null )
|
2535 |
-
{
|
2536 |
-
sOut = oLang.fnInfoCallback.call( oSettings.oInstance,
|
2537 |
-
oSettings, iStart, iEnd, iMax, iTotal, sOut );
|
2538 |
-
}
|
2539 |
-
|
2540 |
-
var n = oSettings.aanFeatures.i;
|
2541 |
-
for ( var i=0, iLen=n.length ; i<iLen ; i++ )
|
2542 |
-
{
|
2543 |
-
$(n[i]).html( sOut );
|
2544 |
-
}
|
2545 |
}
|
2546 |
-
|
2547 |
-
|
2548 |
-
|
2549 |
-
|
2550 |
-
|
2551 |
-
|
2552 |
-
|
2553 |
-
|
2554 |
-
sEnd = oSettings.fnFormatNumber( iEnd ),
|
2555 |
-
iTotal = oSettings.fnRecordsDisplay(),
|
2556 |
-
sTotal = oSettings.fnFormatNumber( iTotal ),
|
2557 |
-
iMax = oSettings.fnRecordsTotal(),
|
2558 |
-
sMax = oSettings.fnFormatNumber( iMax );
|
2559 |
-
|
2560 |
-
// When infinite scrolling, we are always starting at 1. _iDisplayStart is used only
|
2561 |
-
// internally
|
2562 |
-
if ( oSettings.oScroll.bInfinite )
|
2563 |
-
{
|
2564 |
-
sStart = oSettings.fnFormatNumber( 1 );
|
2565 |
-
}
|
2566 |
-
|
2567 |
-
return str.
|
2568 |
-
replace(/_START_/g, sStart).
|
2569 |
-
replace(/_END_/g, sEnd).
|
2570 |
-
replace(/_TOTAL_/g, sTotal).
|
2571 |
-
replace(/_MAX_/g, sMax);
|
2572 |
}
|
2573 |
-
|
2574 |
-
|
2575 |
-
|
2576 |
-
|
2577 |
-
|
2578 |
-
|
2579 |
-
|
2580 |
-
|
2581 |
-
|
2582 |
-
|
2583 |
-
|
2584 |
-
|
2585 |
-
|
2586 |
-
|
2587 |
-
|
2588 |
-
|
2589 |
-
|
2590 |
-
|
2591 |
-
|
2592 |
-
|
2593 |
-
|
2594 |
-
|
2595 |
-
|
2596 |
-
|
2597 |
-
|
2598 |
-
|
2599 |
-
|
2600 |
-
|
2601 |
-
|
2602 |
-
|
2603 |
-
|
2604 |
-
|
2605 |
-
|
2606 |
-
|
2607 |
-
|
2608 |
-
|
2609 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2610 |
}
|
2611 |
-
|
2612 |
-
|
2613 |
-
|
2614 |
-
|
2615 |
-
|
2616 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2617 |
}
|
2618 |
-
}
|
2619 |
-
|
2620 |
-
|
2621 |
-
|
2622 |
-
|
2623 |
-
|
2624 |
-
|
2625 |
-
|
2626 |
-
|
2627 |
-
|
2628 |
-
|
2629 |
-
{
|
2630 |
-
_fnFilterComplete( oSettings, oSettings.oPreviousSearch );
|
2631 |
-
}
|
2632 |
-
else
|
2633 |
-
{
|
2634 |
-
oSettings.aiDisplay = oSettings.aiDisplayMaster.slice();
|
2635 |
-
_fnCalculateEnd( oSettings );
|
2636 |
-
_fnDraw( oSettings );
|
2637 |
-
}
|
2638 |
-
|
2639 |
-
/* if there is an ajax source load the data */
|
2640 |
-
if ( oSettings.sAjaxSource !== null && !oSettings.oFeatures.bServerSide )
|
2641 |
-
{
|
2642 |
-
var aoData = [];
|
2643 |
-
_fnServerParams( oSettings, aoData );
|
2644 |
-
oSettings.fnServerData.call( oSettings.oInstance, oSettings.sAjaxSource, aoData, function(json) {
|
2645 |
-
var aData = (oSettings.sAjaxDataProp !== "") ?
|
2646 |
-
_fnGetObjectDataFn( oSettings.sAjaxDataProp )(json) : json;
|
2647 |
-
|
2648 |
-
/* Got the data - add it to the table */
|
2649 |
-
for ( i=0 ; i<aData.length ; i++ )
|
2650 |
-
{
|
2651 |
-
_fnAddData( oSettings, aData[i] );
|
2652 |
-
}
|
2653 |
-
|
2654 |
-
/* Reset the init display for cookie saving. We've already done a filter, and
|
2655 |
-
* therefore cleared it before. So we need to make it appear 'fresh'
|
2656 |
-
*/
|
2657 |
-
oSettings.iInitDisplayStart = iAjaxStart;
|
2658 |
-
|
2659 |
-
if ( oSettings.oFeatures.bSort )
|
2660 |
-
{
|
2661 |
-
_fnSort( oSettings );
|
2662 |
-
}
|
2663 |
-
else
|
2664 |
-
{
|
2665 |
-
oSettings.aiDisplay = oSettings.aiDisplayMaster.slice();
|
2666 |
-
_fnCalculateEnd( oSettings );
|
2667 |
-
_fnDraw( oSettings );
|
2668 |
}
|
2669 |
-
|
2670 |
-
|
2671 |
-
_fnInitComplete( oSettings, json );
|
2672 |
-
}, oSettings );
|
2673 |
-
return;
|
2674 |
}
|
2675 |
-
|
2676 |
-
|
2677 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2678 |
{
|
2679 |
-
|
2680 |
-
|
2681 |
}
|
|
|
|
|
|
|
2682 |
}
|
2683 |
-
|
2684 |
-
|
2685 |
-
/**
|
2686 |
-
* Draw the table for the first time, adding all required features
|
2687 |
-
* @param {object} oSettings dataTables settings object
|
2688 |
-
* @param {object} [json] JSON from the server that completed the table, if using Ajax source
|
2689 |
-
* with client-side processing (optional)
|
2690 |
-
* @memberof DataTable#oApi
|
2691 |
-
*/
|
2692 |
-
function _fnInitComplete ( oSettings, json )
|
2693 |
{
|
2694 |
-
|
2695 |
-
_fnCallbackFire( oSettings, 'aoInitComplete', 'init', [oSettings, json] );
|
2696 |
}
|
2697 |
-
|
2698 |
-
|
2699 |
-
|
2700 |
-
|
2701 |
-
|
2702 |
-
|
2703 |
-
|
2704 |
-
|
2705 |
-
|
2706 |
-
|
2707 |
-
|
2708 |
-
|
2709 |
-
|
2710 |
-
|
2711 |
-
|
2712 |
-
|
2713 |
-
|
2714 |
-
|
2715 |
-
|
2716 |
-
|
2717 |
-
|
2718 |
-
|
2719 |
-
|
2720 |
-
|
2721 |
-
|
2722 |
-
|
2723 |
-
|
|
|
|
|
2724 |
}
|
|
|
|
|
|
|
|
|
|
|
2725 |
}
|
2726 |
-
|
2727 |
-
|
2728 |
-
|
2729 |
-
|
2730 |
-
|
2731 |
-
|
2732 |
-
|
2733 |
-
|
2734 |
-
|
2735 |
-
|
2736 |
-
|
2737 |
-
|
2738 |
-
|
2739 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2740 |
}
|
2741 |
-
|
2742 |
-
|
2743 |
-
|
2744 |
-
|
2745 |
-
|
2746 |
-
|
2747 |
-
|
2748 |
-
|
2749 |
-
|
2750 |
-
|
2751 |
-
|
2752 |
-
|
2753 |
-
|
2754 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2755 |
}
|
2756 |
-
|
2757 |
-
|
2758 |
-
|
2759 |
-
|
2760 |
-
|
|
|
|
|
2761 |
}
|
2762 |
}
|
2763 |
-
|
2764 |
-
|
2765 |
-
|
2766 |
-
|
2767 |
-
|
2768 |
-
|
2769 |
-
|
2770 |
-
|
2771 |
-
|
2772 |
-
|
2773 |
-
|
2774 |
-
|
2775 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2776 |
*/
|
2777 |
-
|
2778 |
-
|
2779 |
-
|
2780 |
-
|
2781 |
-
|
2782 |
-
/* Update all other length options for the new display */
|
2783 |
-
var n = oSettings.aanFeatures.l;
|
2784 |
-
for ( i=0, iLen=n.length ; i<iLen ; i++ )
|
2785 |
-
{
|
2786 |
-
if ( n[i] != this.parentNode )
|
2787 |
-
{
|
2788 |
-
$('select', n[i]).val( iVal );
|
2789 |
-
}
|
2790 |
-
}
|
2791 |
-
|
2792 |
-
/* Redraw the table */
|
2793 |
-
oSettings._iDisplayLength = parseInt(iVal, 10);
|
2794 |
-
_fnCalculateEnd( oSettings );
|
2795 |
-
|
2796 |
-
/* If we have space to show extra rows (backing up from the end point - then do so */
|
2797 |
-
if ( oSettings.fnDisplayEnd() == oSettings.fnRecordsDisplay() )
|
2798 |
-
{
|
2799 |
-
oSettings._iDisplayStart = oSettings.fnDisplayEnd() - oSettings._iDisplayLength;
|
2800 |
-
if ( oSettings._iDisplayStart < 0 )
|
2801 |
-
{
|
2802 |
-
oSettings._iDisplayStart = 0;
|
2803 |
-
}
|
2804 |
-
}
|
2805 |
-
|
2806 |
-
if ( oSettings._iDisplayLength == -1 )
|
2807 |
-
{
|
2808 |
-
oSettings._iDisplayStart = 0;
|
2809 |
}
|
2810 |
-
|
2811 |
-
|
2812 |
} );
|
2813 |
-
|
2814 |
-
|
2815 |
-
$('select', nLength).attr('aria-controls', oSettings.sTableId);
|
2816 |
-
|
2817 |
-
return nLength;
|
2818 |
}
|
2819 |
-
|
2820 |
-
|
2821 |
-
|
2822 |
-
|
2823 |
-
|
2824 |
-
|
2825 |
-
|
2826 |
-
|
2827 |
-
|
2828 |
-
|
2829 |
-
|
2830 |
-
|
2831 |
-
|
2832 |
-
|
2833 |
-
|
2834 |
-
|
2835 |
-
|
2836 |
-
|
2837 |
-
|
2838 |
-
|
2839 |
-
|
2840 |
-
|
2841 |
-
|
2842 |
-
|
2843 |
-
|
2844 |
-
|
2845 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2846 |
}
|
2847 |
}
|
2848 |
-
|
2849 |
-
|
2850 |
-
|
2851 |
-
|
2852 |
-
|
2853 |
-
|
2854 |
-
|
2855 |
-
|
2856 |
-
|
2857 |
-
|
2858 |
-
|
2859 |
-
|
2860 |
-
|
2861 |
-
|
2862 |
-
|
2863 |
-
|
2864 |
-
|
2865 |
-
|
2866 |
-
|
2867 |
-
|
2868 |
-
|
2869 |
-
|
2870 |
-
|
2871 |
-
|
2872 |
-
|
2873 |
-
|
2874 |
-
|
2875 |
-
|
2876 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2877 |
);
|
2878 |
-
|
2879 |
-
/* Add a draw callback for the pagination on first instance, to update the paging display */
|
2880 |
-
if ( !oSettings.aanFeatures.p )
|
2881 |
-
{
|
2882 |
-
oSettings.aoDrawCallback.push( {
|
2883 |
-
"fn": function( oSettings ) {
|
2884 |
-
DataTable.ext.oPagination[ oSettings.sPaginationType ].fnUpdate( oSettings, function( oSettings ) {
|
2885 |
-
_fnCalculateEnd( oSettings );
|
2886 |
-
_fnDraw( oSettings );
|
2887 |
-
} );
|
2888 |
-
},
|
2889 |
-
"sName": "pagination"
|
2890 |
-
} );
|
2891 |
-
}
|
2892 |
-
return nPaginate;
|
2893 |
}
|
2894 |
-
|
2895 |
-
|
2896 |
-
|
2897 |
-
|
2898 |
-
|
2899 |
-
|
2900 |
-
|
2901 |
-
|
2902 |
-
|
2903 |
-
|
2904 |
-
|
2905 |
-
|
2906 |
-
|
2907 |
-
|
2908 |
-
|
2909 |
-
|
2910 |
-
|
2911 |
-
|
2912 |
-
|
2913 |
-
|
2914 |
-
|
2915 |
-
|
2916 |
-
|
2917 |
-
|
2918 |
-
|
2919 |
-
|
2920 |
-
|
2921 |
-
|
2922 |
-
|
2923 |
-
|
2924 |
-
|
2925 |
-
|
2926 |
-
|
2927 |
-
|
2928 |
-
|
2929 |
-
|
2930 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2931 |
}
|
2932 |
-
|
2933 |
-
|
2934 |
-
|
2935 |
-
|
2936 |
-
|
2937 |
-
|
2938 |
-
|
2939 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2940 |
}
|
2941 |
-
|
2942 |
-
|
2943 |
-
|
2944 |
-
|
2945 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
2946 |
}
|
2947 |
-
else
|
2948 |
-
|
2949 |
-
|
2950 |
-
{
|
2951 |
-
var iPages = parseInt( (oSettings.fnRecordsDisplay()-1) / oSettings._iDisplayLength, 10 ) + 1;
|
2952 |
-
oSettings._iDisplayStart = (iPages-1) * oSettings._iDisplayLength;
|
2953 |
-
}
|
2954 |
-
else
|
2955 |
-
{
|
2956 |
-
oSettings._iDisplayStart = 0;
|
2957 |
-
}
|
2958 |
}
|
2959 |
-
|
2960 |
-
|
2961 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2962 |
}
|
2963 |
-
|
2964 |
-
|
2965 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2966 |
}
|
2967 |
-
|
2968 |
-
|
2969 |
-
|
2970 |
-
|
2971 |
-
|
2972 |
-
|
2973 |
-
|
2974 |
-
|
2975 |
-
|
2976 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2977 |
{
|
2978 |
-
|
2979 |
-
|
2980 |
-
if ( !oSettings.aanFeatures.r )
|
2981 |
-
{
|
2982 |
-
nProcessing.id = oSettings.sTableId+'_processing';
|
2983 |
-
}
|
2984 |
-
nProcessing.innerHTML = oSettings.oLanguage.sProcessing;
|
2985 |
-
nProcessing.className = oSettings.oClasses.sProcessing;
|
2986 |
-
oSettings.nTable.parentNode.insertBefore( nProcessing, oSettings.nTable );
|
2987 |
-
|
2988 |
-
return nProcessing;
|
2989 |
}
|
2990 |
-
|
2991 |
-
|
2992 |
-
/**
|
2993 |
-
* Display or hide the processing indicator
|
2994 |
-
* @param {object} oSettings dataTables settings object
|
2995 |
-
* @param {bool} bShow Show the processing indicator (true) or not (false)
|
2996 |
-
* @memberof DataTable#oApi
|
2997 |
-
*/
|
2998 |
-
function _fnProcessingDisplay ( oSettings, bShow )
|
2999 |
{
|
3000 |
-
|
|
|
|
|
3001 |
{
|
3002 |
-
|
3003 |
-
for ( var i=0, iLen=an.length ; i<iLen ; i++ )
|
3004 |
-
{
|
3005 |
-
an[i].style.visibility = bShow ? "visible" : "hidden";
|
3006 |
-
}
|
3007 |
}
|
3008 |
-
|
3009 |
-
$(oSettings.oInstance).trigger('processing', [oSettings, bShow]);
|
3010 |
}
|
3011 |
-
|
3012 |
-
/**
|
3013 |
-
* Add any control elements for the table - specifically scrolling
|
3014 |
-
* @param {object} oSettings dataTables settings object
|
3015 |
-
* @returns {node} Node to add to the DOM
|
3016 |
-
* @memberof DataTable#oApi
|
3017 |
-
*/
|
3018 |
-
function _fnFeatureHtmlTable ( oSettings )
|
3019 |
{
|
3020 |
-
|
3021 |
-
|
3022 |
-
|
3023 |
-
|
3024 |
-
|
3025 |
-
|
3026 |
-
|
3027 |
-
|
3028 |
-
|
3029 |
-
* div - nScrollHead
|
3030 |
-
* div - nScrollHeadInner
|
3031 |
-
* table - nScrollHeadTable
|
3032 |
-
* thead - nThead
|
3033 |
-
* div - nScrollBody
|
3034 |
-
* table - oSettings.nTable
|
3035 |
-
* thead - nTheadSize
|
3036 |
-
* tbody - nTbody
|
3037 |
-
* div - nScrollFoot
|
3038 |
-
* div - nScrollFootInner
|
3039 |
-
* table - nScrollFootTable
|
3040 |
-
* tfoot - nTfoot
|
3041 |
-
*/
|
3042 |
-
var
|
3043 |
-
nScroller = document.createElement('div'),
|
3044 |
-
nScrollHead = document.createElement('div'),
|
3045 |
-
nScrollHeadInner = document.createElement('div'),
|
3046 |
-
nScrollBody = document.createElement('div'),
|
3047 |
-
nScrollFoot = document.createElement('div'),
|
3048 |
-
nScrollFootInner = document.createElement('div'),
|
3049 |
-
nScrollHeadTable = oSettings.nTable.cloneNode(false),
|
3050 |
-
nScrollFootTable = oSettings.nTable.cloneNode(false),
|
3051 |
-
nThead = oSettings.nTable.getElementsByTagName('thead')[0],
|
3052 |
-
nTfoot = oSettings.nTable.getElementsByTagName('tfoot').length === 0 ? null :
|
3053 |
-
oSettings.nTable.getElementsByTagName('tfoot')[0],
|
3054 |
-
oClasses = oSettings.oClasses;
|
3055 |
-
|
3056 |
-
nScrollHead.appendChild( nScrollHeadInner );
|
3057 |
-
nScrollFoot.appendChild( nScrollFootInner );
|
3058 |
-
nScrollBody.appendChild( oSettings.nTable );
|
3059 |
-
nScroller.appendChild( nScrollHead );
|
3060 |
-
nScroller.appendChild( nScrollBody );
|
3061 |
-
nScrollHeadInner.appendChild( nScrollHeadTable );
|
3062 |
-
nScrollHeadTable.appendChild( nThead );
|
3063 |
-
if ( nTfoot !== null )
|
3064 |
-
{
|
3065 |
-
nScroller.appendChild( nScrollFoot );
|
3066 |
-
nScrollFootInner.appendChild( nScrollFootTable );
|
3067 |
-
nScrollFootTable.appendChild( nTfoot );
|
3068 |
-
}
|
3069 |
-
|
3070 |
-
nScroller.className = oClasses.sScrollWrapper;
|
3071 |
-
nScrollHead.className = oClasses.sScrollHead;
|
3072 |
-
nScrollHeadInner.className = oClasses.sScrollHeadInner;
|
3073 |
-
nScrollBody.className = oClasses.sScrollBody;
|
3074 |
-
nScrollFoot.className = oClasses.sScrollFoot;
|
3075 |
-
nScrollFootInner.className = oClasses.sScrollFootInner;
|
3076 |
-
|
3077 |
-
if ( oSettings.oScroll.bAutoCss )
|
3078 |
-
{
|
3079 |
-
nScrollHead.style.overflow = "hidden";
|
3080 |
-
nScrollHead.style.position = "relative";
|
3081 |
-
nScrollFoot.style.overflow = "hidden";
|
3082 |
-
nScrollBody.style.overflow = "auto";
|
3083 |
-
}
|
3084 |
-
|
3085 |
-
nScrollHead.style.border = "0";
|
3086 |
-
nScrollHead.style.width = "100%";
|
3087 |
-
nScrollFoot.style.border = "0";
|
3088 |
-
nScrollHeadInner.style.width = oSettings.oScroll.sXInner !== "" ?
|
3089 |
-
oSettings.oScroll.sXInner : "100%"; /* will be overwritten */
|
3090 |
-
|
3091 |
-
/* Modify attributes to respect the clones */
|
3092 |
-
nScrollHeadTable.removeAttribute('id');
|
3093 |
-
nScrollHeadTable.style.marginLeft = "0";
|
3094 |
-
oSettings.nTable.style.marginLeft = "0";
|
3095 |
-
if ( nTfoot !== null )
|
3096 |
-
{
|
3097 |
-
nScrollFootTable.removeAttribute('id');
|
3098 |
-
nScrollFootTable.style.marginLeft = "0";
|
3099 |
-
}
|
3100 |
-
|
3101 |
-
/* Move caption elements from the body to the header, footer or leave where it is
|
3102 |
-
* depending on the configuration. Note that the DTD says there can be only one caption */
|
3103 |
-
var nCaption = $(oSettings.nTable).children('caption');
|
3104 |
-
if ( nCaption.length > 0 )
|
3105 |
{
|
3106 |
-
|
3107 |
-
if ( nCaption._captionSide === "top" )
|
3108 |
-
{
|
3109 |
-
nScrollHeadTable.appendChild( nCaption );
|
3110 |
-
}
|
3111 |
-
else if ( nCaption._captionSide === "bottom" && nTfoot )
|
3112 |
-
{
|
3113 |
-
nScrollFootTable.appendChild( nCaption );
|
3114 |
-
}
|
3115 |
}
|
3116 |
-
|
3117 |
-
|
3118 |
-
|
3119 |
-
|
3120 |
-
/* When x-scrolling add the width and a scroller to move the header with the body */
|
3121 |
-
if ( oSettings.oScroll.sX !== "" )
|
3122 |
{
|
3123 |
-
|
3124 |
-
nScrollBody.style.width = _fnStringToCss( oSettings.oScroll.sX );
|
3125 |
-
|
3126 |
-
if ( nTfoot !== null )
|
3127 |
-
{
|
3128 |
-
nScrollFoot.style.width = _fnStringToCss( oSettings.oScroll.sX );
|
3129 |
-
}
|
3130 |
-
|
3131 |
-
/* When the body is scrolled, then we also want to scroll the headers */
|
3132 |
-
$(nScrollBody).scroll( function (e) {
|
3133 |
-
nScrollHead.scrollLeft = this.scrollLeft;
|
3134 |
-
|
3135 |
-
if ( nTfoot !== null )
|
3136 |
-
{
|
3137 |
-
nScrollFoot.scrollLeft = this.scrollLeft;
|
3138 |
-
}
|
3139 |
-
} );
|
3140 |
}
|
3141 |
-
|
3142 |
-
|
3143 |
-
|
3144 |
-
|
3145 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3146 |
}
|
3147 |
-
|
3148 |
-
/* Redraw - align columns across the tables */
|
3149 |
-
oSettings.aoDrawCallback.push( {
|
3150 |
-
"fn": _fnScrollDraw,
|
3151 |
-
"sName": "scrolling"
|
3152 |
-
} );
|
3153 |
-
|
3154 |
-
/* Infinite scrolling event handlers */
|
3155 |
-
if ( oSettings.oScroll.bInfinite )
|
3156 |
-
{
|
3157 |
-
$(nScrollBody).scroll( function() {
|
3158 |
-
/* Use a blocker to stop scrolling from loading more data while other data is still loading */
|
3159 |
-
if ( !oSettings.bDrawing && $(this).scrollTop() !== 0 )
|
3160 |
-
{
|
3161 |
-
/* Check if we should load the next data set */
|
3162 |
-
if ( $(this).scrollTop() + $(this).height() >
|
3163 |
-
$(oSettings.nTable).height() - oSettings.oScroll.iLoadGap )
|
3164 |
-
{
|
3165 |
-
/* Only do the redraw if we have to - we might be at the end of the data */
|
3166 |
-
if ( oSettings.fnDisplayEnd() < oSettings.fnRecordsDisplay() )
|
3167 |
-
{
|
3168 |
-
_fnPageChange( oSettings, 'next' );
|
3169 |
-
_fnCalculateEnd( oSettings );
|
3170 |
-
_fnDraw( oSettings );
|
3171 |
-
}
|
3172 |
-
}
|
3173 |
-
}
|
3174 |
-
} );
|
3175 |
-
}
|
3176 |
-
|
3177 |
-
oSettings.nScrollHead = nScrollHead;
|
3178 |
-
oSettings.nScrollFoot = nScrollFoot;
|
3179 |
-
|
3180 |
-
return nScroller;
|
3181 |
}
|
3182 |
-
|
3183 |
-
|
3184 |
-
|
3185 |
-
|
3186 |
-
|
3187 |
-
|
3188 |
-
|
3189 |
-
|
3190 |
-
|
3191 |
-
|
3192 |
-
|
3193 |
-
|
3194 |
-
|
3195 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3196 |
{
|
3197 |
-
|
3198 |
-
|
3199 |
-
|
3200 |
-
|
3201 |
-
|
3202 |
-
|
3203 |
-
|
3204 |
-
|
3205 |
-
|
3206 |
-
|
3207 |
-
|
3208 |
-
|
3209 |
-
|
3210 |
-
|
3211 |
-
|
3212 |
-
|
3213 |
-
|
3214 |
-
|
3215 |
-
|
3216 |
-
|
3217 |
-
|
3218 |
-
|
3219 |
-
|
3220 |
-
|
3221 |
-
|
3222 |
-
|
3223 |
-
|
3224 |
-
|
3225 |
-
|
3226 |
-
|
3227 |
-
|
3228 |
-
|
3229 |
-
|
3230 |
-
{
|
3231 |
-
|
3232 |
-
o.nTable.insertBefore( nTfootSize, o.nTable.childNodes[1] );
|
3233 |
-
anFootToSize = o.nTFoot.getElementsByTagName('tr');
|
3234 |
-
anFootSizers = nTfootSize.getElementsByTagName('tr');
|
3235 |
-
}
|
3236 |
-
|
3237 |
-
/*
|
3238 |
-
* 2. Take live measurements from the DOM - do not alter the DOM itself!
|
3239 |
-
*/
|
3240 |
-
|
3241 |
-
/* Remove old sizing and apply the calculated column widths
|
3242 |
-
* Get the unique column headers in the newly created (cloned) header. We want to apply the
|
3243 |
-
* calculated sizes to this header
|
3244 |
-
*/
|
3245 |
-
if ( o.oScroll.sX === "" )
|
3246 |
-
{
|
3247 |
-
nScrollBody.style.width = '100%';
|
3248 |
-
nScrollHeadInner.parentNode.style.width = '100%';
|
3249 |
-
}
|
3250 |
-
|
3251 |
-
var nThs = _fnGetUniqueThs( o, nTheadSize );
|
3252 |
-
for ( i=0, iLen=nThs.length ; i<iLen ; i++ )
|
3253 |
-
{
|
3254 |
-
iVis = _fnVisibleToColumnIndex( o, i );
|
3255 |
-
nThs[i].style.width = o.aoColumns[iVis].sWidth;
|
3256 |
-
}
|
3257 |
-
|
3258 |
-
if ( o.nTFoot !== null )
|
3259 |
-
{
|
3260 |
-
_fnApplyToChildren( function(n) {
|
3261 |
-
n.style.width = "";
|
3262 |
-
}, anFootSizers );
|
3263 |
}
|
3264 |
-
|
3265 |
-
|
3266 |
-
|
3267 |
-
//
|
3268 |
-
if (
|
3269 |
-
|
3270 |
-
|
3271 |
}
|
3272 |
-
|
3273 |
-
|
3274 |
-
|
3275 |
-
|
3276 |
-
|
3277 |
-
|
3278 |
-
o.nTable.style.width = "100%";
|
3279 |
-
|
3280 |
-
/* I know this is rubbish - but IE7 will make the width of the table when 100% include
|
3281 |
-
* the scrollbar - which is shouldn't. When there is a scrollbar we need to take this
|
3282 |
-
* into account.
|
3283 |
-
*/
|
3284 |
-
if ( ie67 && ($('tbody', nScrollBody).height() > nScrollBody.offsetHeight ||
|
3285 |
-
$(nScrollBody).css('overflow-y') == "scroll") )
|
3286 |
-
{
|
3287 |
-
o.nTable.style.width = _fnStringToCss( $(o.nTable).outerWidth() - o.oScroll.iBarWidth);
|
3288 |
}
|
3289 |
}
|
3290 |
-
else
|
3291 |
-
|
3292 |
-
|
3293 |
-
{
|
3294 |
-
/* x scroll inner has been given - use it */
|
3295 |
-
o.nTable.style.width = _fnStringToCss(o.oScroll.sXInner);
|
3296 |
-
}
|
3297 |
-
else if ( iSanityWidth == $(nScrollBody).width() &&
|
3298 |
-
$(nScrollBody).height() < $(o.nTable).height() )
|
3299 |
-
{
|
3300 |
-
/* There is y-scrolling - try to take account of the y scroll bar */
|
3301 |
-
o.nTable.style.width = _fnStringToCss( iSanityWidth-o.oScroll.iBarWidth );
|
3302 |
-
if ( $(o.nTable).outerWidth() > iSanityWidth-o.oScroll.iBarWidth )
|
3303 |
-
{
|
3304 |
-
/* Not possible to take account of it */
|
3305 |
-
o.nTable.style.width = _fnStringToCss( iSanityWidth );
|
3306 |
-
}
|
3307 |
-
}
|
3308 |
-
else
|
3309 |
-
{
|
3310 |
-
/* All else fails */
|
3311 |
-
o.nTable.style.width = _fnStringToCss( iSanityWidth );
|
3312 |
-
}
|
3313 |
}
|
3314 |
-
|
3315 |
-
|
3316 |
-
|
3317 |
-
|
3318 |
-
|
3319 |
-
|
3320 |
-
|
3321 |
-
|
3322 |
-
|
3323 |
-
|
3324 |
-
|
3325 |
-
|
3326 |
-
|
3327 |
-
|
3328 |
-
|
3329 |
-
|
3330 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3331 |
_fnApplyToChildren( function(nSizer) {
|
3332 |
-
|
3333 |
-
},
|
3334 |
-
|
3335 |
-
// Apply all widths in final pass. Invalidates layout only once because we do not
|
3336 |
-
// read any DOM properties.
|
3337 |
_fnApplyToChildren( function(nToSize, i) {
|
3338 |
-
nToSize.style.width =
|
3339 |
-
},
|
3340 |
-
|
3341 |
-
$(
|
3342 |
-
|
3343 |
-
|
3344 |
-
|
3345 |
-
|
3346 |
-
|
3347 |
-
|
3348 |
-
|
3349 |
-
|
3350 |
-
|
3351 |
-
|
3352 |
-
|
3353 |
-
|
3354 |
-
|
3355 |
-
|
3356 |
-
|
3357 |
-
|
3358 |
-
|
3359 |
-
|
3360 |
-
* 3. Apply the measurements
|
3361 |
-
*/
|
3362 |
-
|
3363 |
-
/* "Hide" the header and footer that we used for the sizing. We want to also fix their width
|
3364 |
-
* to what they currently are
|
3365 |
-
*/
|
3366 |
_fnApplyToChildren( function(nSizer, i) {
|
3367 |
nSizer.innerHTML = "";
|
3368 |
-
nSizer.style.width =
|
3369 |
-
},
|
3370 |
-
|
3371 |
-
|
3372 |
-
|
3373 |
-
|
3374 |
-
|
3375 |
-
|
3376 |
-
|
3377 |
-
|
3378 |
-
|
3379 |
-
|
3380 |
-
|
3381 |
-
|
3382 |
-
|
3383 |
-
|
3384 |
-
|
3385 |
-
|
3386 |
-
|
3387 |
-
iSanityWidth+o.oScroll.iBarWidth : iSanityWidth;
|
3388 |
-
|
3389 |
-
/* IE6/7 are a law unto themselves... */
|
3390 |
-
if ( ie67 && (nScrollBody.scrollHeight >
|
3391 |
-
nScrollBody.offsetHeight || $(nScrollBody).css('overflow-y') == "scroll") )
|
3392 |
-
{
|
3393 |
-
o.nTable.style.width = _fnStringToCss( iCorrection-o.oScroll.iBarWidth );
|
3394 |
-
}
|
3395 |
-
|
3396 |
-
/* Apply the calculated minimum width to the table wrappers */
|
3397 |
-
nScrollBody.style.width = _fnStringToCss( iCorrection );
|
3398 |
-
o.nScrollHead.style.width = _fnStringToCss( iCorrection );
|
3399 |
-
|
3400 |
-
if ( o.nTFoot !== null )
|
3401 |
-
{
|
3402 |
-
o.nScrollFoot.style.width = _fnStringToCss( iCorrection );
|
3403 |
-
}
|
3404 |
-
|
3405 |
-
/* And give the user a warning that we've stopped the table getting too small */
|
3406 |
-
if ( o.oScroll.sX === "" )
|
3407 |
-
{
|
3408 |
-
_fnLog( o, 1, "The table cannot fit into the current element which will cause column"+
|
3409 |
-
" misalignment. The table has been drawn at its minimum possible width." );
|
3410 |
-
}
|
3411 |
-
else if ( o.oScroll.sXInner !== "" )
|
3412 |
-
{
|
3413 |
-
_fnLog( o, 1, "The table cannot fit into the current element which will cause column"+
|
3414 |
-
" misalignment. Increase the sScrollXInner value or remove it to allow automatic"+
|
3415 |
-
" calculation" );
|
3416 |
-
}
|
3417 |
-
}
|
3418 |
-
else
|
3419 |
-
{
|
3420 |
-
nScrollBody.style.width = _fnStringToCss( '100%' );
|
3421 |
-
o.nScrollHead.style.width = _fnStringToCss( '100%' );
|
3422 |
-
|
3423 |
-
if ( o.nTFoot !== null )
|
3424 |
-
{
|
3425 |
-
o.nScrollFoot.style.width = _fnStringToCss( '100%' );
|
3426 |
-
}
|
3427 |
-
}
|
3428 |
-
|
3429 |
-
|
3430 |
-
/*
|
3431 |
-
* 4. Clean up
|
3432 |
-
*/
|
3433 |
-
if ( o.oScroll.sY === "" )
|
3434 |
-
{
|
3435 |
-
/* IE7< puts a vertical scrollbar in place (when it shouldn't be) due to subtracting
|
3436 |
-
* the scrollbar height from the visible display, rather than adding it on. We need to
|
3437 |
-
* set the height in order to sort this. Don't want to do it in any other browsers.
|
3438 |
-
*/
|
3439 |
-
if ( ie67 )
|
3440 |
-
{
|
3441 |
-
nScrollBody.style.height = _fnStringToCss( o.nTable.offsetHeight+o.oScroll.iBarWidth );
|
3442 |
-
}
|
3443 |
-
}
|
3444 |
-
|
3445 |
-
if ( o.oScroll.sY !== "" && o.oScroll.bCollapse )
|
3446 |
-
{
|
3447 |
-
nScrollBody.style.height = _fnStringToCss( o.oScroll.sY );
|
3448 |
-
|
3449 |
-
var iExtra = (o.oScroll.sX !== "" && o.nTable.offsetWidth > nScrollBody.offsetWidth) ?
|
3450 |
-
o.oScroll.iBarWidth : 0;
|
3451 |
-
if ( o.nTable.offsetHeight < nScrollBody.offsetHeight )
|
3452 |
-
{
|
3453 |
-
nScrollBody.style.height = _fnStringToCss( o.nTable.offsetHeight+iExtra );
|
3454 |
-
}
|
3455 |
-
}
|
3456 |
-
|
3457 |
-
/* Finally set the width's of the header and footer tables */
|
3458 |
-
var iOuterWidth = $(o.nTable).outerWidth();
|
3459 |
-
nScrollHeadTable.style.width = _fnStringToCss( iOuterWidth );
|
3460 |
-
nScrollHeadInner.style.width = _fnStringToCss( iOuterWidth );
|
3461 |
-
|
3462 |
-
// Figure out if there are scrollbar present - if so then we need a the header and footer to
|
3463 |
-
// provide a bit more space to allow "overflow" scrolling (i.e. past the scrollbar)
|
3464 |
-
var bScrolling = $(o.nTable).height() > nScrollBody.clientHeight || $(nScrollBody).css('overflow-y') == "scroll";
|
3465 |
-
nScrollHeadInner.style.paddingRight = bScrolling ? o.oScroll.iBarWidth+"px" : "0px";
|
3466 |
-
|
3467 |
-
if ( o.nTFoot !== null )
|
3468 |
-
{
|
3469 |
-
nScrollFootTable.style.width = _fnStringToCss( iOuterWidth );
|
3470 |
-
nScrollFootInner.style.width = _fnStringToCss( iOuterWidth );
|
3471 |
-
nScrollFootInner.style.paddingRight = bScrolling ? o.oScroll.iBarWidth+"px" : "0px";
|
3472 |
}
|
3473 |
-
|
3474 |
-
|
3475 |
-
|
3476 |
-
|
3477 |
-
/* If sorting or filtering has occurred, jump the scrolling back to the top */
|
3478 |
-
if ( o.bSorted || o.bFiltered )
|
3479 |
-
{
|
3480 |
-
nScrollBody.scrollTop = 0;
|
3481 |
}
|
3482 |
}
|
3483 |
-
|
3484 |
-
|
3485 |
-
/**
|
3486 |
-
* Apply a given function to the display child nodes of an element array (typically
|
3487 |
-
* TD children of TR rows
|
3488 |
-
* @param {function} fn Method to apply to the objects
|
3489 |
-
* @param array {nodes} an1 List of elements to look through for display children
|
3490 |
-
* @param array {nodes} an2 Another list (identical structure to the first) - optional
|
3491 |
-
* @memberof DataTable#oApi
|
3492 |
-
*/
|
3493 |
-
function _fnApplyToChildren( fn, an1, an2 )
|
3494 |
{
|
3495 |
-
|
3496 |
-
var nNode1, nNode2;
|
3497 |
-
|
3498 |
-
while ( i < iLen )
|
3499 |
-
{
|
3500 |
-
nNode1 = an1[i].firstChild;
|
3501 |
-
nNode2 = an2 ? an2[i].firstChild : null;
|
3502 |
-
while ( nNode1 )
|
3503 |
-
{
|
3504 |
-
if ( nNode1.nodeType === 1 )
|
3505 |
-
{
|
3506 |
-
if ( an2 )
|
3507 |
-
{
|
3508 |
-
fn( nNode1, nNode2, index );
|
3509 |
-
}
|
3510 |
-
else
|
3511 |
-
{
|
3512 |
-
fn( nNode1, index );
|
3513 |
-
}
|
3514 |
-
index++;
|
3515 |
-
}
|
3516 |
-
nNode1 = nNode1.nextSibling;
|
3517 |
-
nNode2 = an2 ? nNode2.nextSibling : null;
|
3518 |
-
}
|
3519 |
-
i++;
|
3520 |
-
}
|
3521 |
}
|
3522 |
-
|
3523 |
-
|
3524 |
-
|
3525 |
-
|
3526 |
-
|
3527 |
-
|
3528 |
-
|
|
|
|
|
|
|
|
|
|
|
3529 |
*/
|
3530 |
-
|
3531 |
-
|
3532 |
-
|
3533 |
-
|
3534 |
-
|
|
|
|
|
3535 |
}
|
3536 |
-
|
3537 |
-
|
3538 |
-
|
3539 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3540 |
}
|
3541 |
-
|
3542 |
-
var iWidth;
|
3543 |
-
var nTmp = document.createElement( "div" );
|
3544 |
-
nTmp.style.width = _fnStringToCss( sWidth );
|
3545 |
-
|
3546 |
-
nParent.appendChild( nTmp );
|
3547 |
-
iWidth = nTmp.offsetWidth;
|
3548 |
-
nParent.removeChild( nTmp );
|
3549 |
-
|
3550 |
-
return ( iWidth );
|
3551 |
}
|
3552 |
-
|
3553 |
-
|
3554 |
-
|
3555 |
-
|
3556 |
-
|
3557 |
-
|
3558 |
-
|
3559 |
-
|
3560 |
-
|
3561 |
-
|
3562 |
-
|
3563 |
-
|
3564 |
-
|
3565 |
-
|
3566 |
-
|
3567 |
-
|
3568 |
-
|
3569 |
-
|
3570 |
-
|
3571 |
-
|
3572 |
-
|
3573 |
-
|
3574 |
-
|
3575 |
-
|
3576 |
-
|
3577 |
-
|
3578 |
-
|
3579 |
-
|
3580 |
-
|
3581 |
-
|
3582 |
-
|
3583 |
-
|
3584 |
-
|
3585 |
-
|
3586 |
-
|
3587 |
-
|
3588 |
-
|
3589 |
-
|
3590 |
-
|
3591 |
-
|
3592 |
-
|
3593 |
-
|
3594 |
-
|
3595 |
-
|
3596 |
-
|
3597 |
-
|
3598 |
-
|
3599 |
-
|
3600 |
-
{
|
3601 |
-
|
3602 |
-
|
3603 |
-
{
|
3604 |
-
oSettings.aoColumns[i].sWidth = _fnStringToCss( iTmpWidth );
|
3605 |
-
}
|
3606 |
-
}
|
3607 |
-
}
|
3608 |
-
else
|
3609 |
-
{
|
3610 |
-
/* Otherwise we are going to have to do some calculations to get the width of each column.
|
3611 |
-
* Construct a 1 row table with the widest node in the data, and any user defined widths,
|
3612 |
-
* then insert it into the DOM and allow the browser to do all the hard work of
|
3613 |
-
* calculating table widths.
|
3614 |
-
*/
|
3615 |
-
var
|
3616 |
-
nCalcTmp = oSettings.nTable.cloneNode( false ),
|
3617 |
-
nTheadClone = oSettings.nTHead.cloneNode(true),
|
3618 |
-
nBody = document.createElement( 'tbody' ),
|
3619 |
-
nTr = document.createElement( 'tr' ),
|
3620 |
-
nDivSizing;
|
3621 |
-
|
3622 |
-
nCalcTmp.removeAttribute( "id" );
|
3623 |
-
nCalcTmp.appendChild( nTheadClone );
|
3624 |
-
if ( oSettings.nTFoot !== null )
|
3625 |
-
{
|
3626 |
-
nCalcTmp.appendChild( oSettings.nTFoot.cloneNode(true) );
|
3627 |
-
_fnApplyToChildren( function(n) {
|
3628 |
-
n.style.width = "";
|
3629 |
-
}, nCalcTmp.getElementsByTagName('tr') );
|
3630 |
-
}
|
3631 |
-
|
3632 |
-
nCalcTmp.appendChild( nBody );
|
3633 |
-
nBody.appendChild( nTr );
|
3634 |
-
|
3635 |
-
/* Remove any sizing that was previously applied by the styles */
|
3636 |
-
var jqColSizing = $('thead th', nCalcTmp);
|
3637 |
-
if ( jqColSizing.length === 0 )
|
3638 |
-
{
|
3639 |
-
jqColSizing = $('tbody tr:eq(0)>td', nCalcTmp);
|
3640 |
-
}
|
3641 |
-
|
3642 |
-
/* Apply custom sizing to the cloned header */
|
3643 |
-
var nThs = _fnGetUniqueThs( oSettings, nTheadClone );
|
3644 |
-
iCorrector = 0;
|
3645 |
-
for ( i=0 ; i<iColums ; i++ )
|
3646 |
-
{
|
3647 |
-
var oColumn = oSettings.aoColumns[i];
|
3648 |
-
if ( oColumn.bVisible && oColumn.sWidthOrig !== null && oColumn.sWidthOrig !== "" )
|
3649 |
-
{
|
3650 |
-
nThs[i-iCorrector].style.width = _fnStringToCss( oColumn.sWidthOrig );
|
3651 |
-
}
|
3652 |
-
else if ( oColumn.bVisible )
|
3653 |
-
{
|
3654 |
-
nThs[i-iCorrector].style.width = "";
|
3655 |
-
}
|
3656 |
-
else
|
3657 |
-
{
|
3658 |
-
iCorrector++;
|
3659 |
-
}
|
3660 |
-
}
|
3661 |
-
|
3662 |
-
/* Find the biggest td for each column and put it into the table */
|
3663 |
-
for ( i=0 ; i<iColums ; i++ )
|
3664 |
-
{
|
3665 |
-
if ( oSettings.aoColumns[i].bVisible )
|
3666 |
-
{
|
3667 |
-
var nTd = _fnGetWidestNode( oSettings, i );
|
3668 |
-
if ( nTd !== null )
|
3669 |
-
{
|
3670 |
-
nTd = nTd.cloneNode(true);
|
3671 |
-
if ( oSettings.aoColumns[i].sContentPadding !== "" )
|
3672 |
-
{
|
3673 |
-
nTd.innerHTML += oSettings.aoColumns[i].sContentPadding;
|
3674 |
-
}
|
3675 |
-
nTr.appendChild( nTd );
|
3676 |
-
}
|
3677 |
-
}
|
3678 |
-
}
|
3679 |
-
|
3680 |
-
/* Build the table and 'display' it */
|
3681 |
-
nWrapper.appendChild( nCalcTmp );
|
3682 |
-
|
3683 |
-
/* When scrolling (X or Y) we want to set the width of the table as appropriate. However,
|
3684 |
-
* when not scrolling leave the table width as it is. This results in slightly different,
|
3685 |
-
* but I think correct behaviour
|
3686 |
-
*/
|
3687 |
-
if ( oSettings.oScroll.sX !== "" && oSettings.oScroll.sXInner !== "" )
|
3688 |
-
{
|
3689 |
-
nCalcTmp.style.width = _fnStringToCss(oSettings.oScroll.sXInner);
|
3690 |
-
}
|
3691 |
-
else if ( oSettings.oScroll.sX !== "" )
|
3692 |
-
{
|
3693 |
-
nCalcTmp.style.width = "";
|
3694 |
-
if ( $(nCalcTmp).width() < nWrapper.offsetWidth )
|
3695 |
-
{
|
3696 |
-
nCalcTmp.style.width = _fnStringToCss( nWrapper.offsetWidth );
|
3697 |
-
}
|
3698 |
-
}
|
3699 |
-
else if ( oSettings.oScroll.sY !== "" )
|
3700 |
-
{
|
3701 |
-
nCalcTmp.style.width = _fnStringToCss( nWrapper.offsetWidth );
|
3702 |
-
}
|
3703 |
-
else if ( widthAttr )
|
3704 |
-
{
|
3705 |
-
nCalcTmp.style.width = _fnStringToCss( widthAttr );
|
3706 |
-
}
|
3707 |
-
nCalcTmp.style.visibility = "hidden";
|
3708 |
-
|
3709 |
-
/* Scrolling considerations */
|
3710 |
-
_fnScrollingWidthAdjust( oSettings, nCalcTmp );
|
3711 |
-
|
3712 |
-
/* Read the width's calculated by the browser and store them for use by the caller. We
|
3713 |
-
* first of all try to use the elements in the body, but it is possible that there are
|
3714 |
-
* no elements there, under which circumstances we use the header elements
|
3715 |
-
*/
|
3716 |
-
var oNodes = $("tbody tr:eq(0)", nCalcTmp).children();
|
3717 |
-
if ( oNodes.length === 0 )
|
3718 |
-
{
|
3719 |
-
oNodes = _fnGetUniqueThs( oSettings, $('thead', nCalcTmp)[0] );
|
3720 |
-
}
|
3721 |
-
|
3722 |
-
/* Browsers need a bit of a hand when a width is assigned to any columns when
|
3723 |
-
* x-scrolling as they tend to collapse the table to the min-width, even if
|
3724 |
-
* we sent the column widths. So we need to keep track of what the table width
|
3725 |
-
* should be by summing the user given values, and the automatic values
|
3726 |
-
*/
|
3727 |
-
if ( oSettings.oScroll.sX !== "" )
|
3728 |
-
{
|
3729 |
-
var iTotal = 0;
|
3730 |
-
iCorrector = 0;
|
3731 |
-
for ( i=0 ; i<oSettings.aoColumns.length ; i++ )
|
3732 |
-
{
|
3733 |
-
if ( oSettings.aoColumns[i].bVisible )
|
3734 |
-
{
|
3735 |
-
if ( oSettings.aoColumns[i].sWidthOrig === null )
|
3736 |
-
{
|
3737 |
-
iTotal += $(oNodes[iCorrector]).outerWidth();
|
3738 |
-
}
|
3739 |
-
else
|
3740 |
-
{
|
3741 |
-
iTotal += parseInt(oSettings.aoColumns[i].sWidth.replace('px',''), 10) +
|
3742 |
-
($(oNodes[iCorrector]).outerWidth() - $(oNodes[iCorrector]).width());
|
3743 |
-
}
|
3744 |
-
iCorrector++;
|
3745 |
-
}
|
3746 |
}
|
3747 |
-
|
3748 |
-
|
3749 |
-
oSettings.nTable.style.width = _fnStringToCss( iTotal );
|
3750 |
-
}
|
3751 |
-
|
3752 |
-
iCorrector = 0;
|
3753 |
-
for ( i=0 ; i<oSettings.aoColumns.length ; i++ )
|
3754 |
-
{
|
3755 |
-
if ( oSettings.aoColumns[i].bVisible )
|
3756 |
-
{
|
3757 |
-
iWidth = $(oNodes[iCorrector]).width();
|
3758 |
-
if ( iWidth !== null && iWidth > 0 )
|
3759 |
-
{
|
3760 |
-
oSettings.aoColumns[i].sWidth = _fnStringToCss( iWidth );
|
3761 |
-
}
|
3762 |
-
iCorrector++;
|
3763 |
}
|
|
|
|
|
3764 |
}
|
3765 |
-
|
3766 |
-
|
3767 |
-
|
3768 |
-
cssWidth : _fnStringToCss( $(nCalcTmp).outerWidth() );
|
3769 |
-
nCalcTmp.parentNode.removeChild( nCalcTmp );
|
3770 |
-
}
|
3771 |
-
|
3772 |
-
if ( widthAttr )
|
3773 |
-
{
|
3774 |
-
oSettings.nTable.style.width = _fnStringToCss( widthAttr );
|
3775 |
}
|
|
|
|
|
3776 |
}
|
3777 |
-
|
3778 |
-
|
3779 |
-
|
3780 |
-
|
3781 |
-
|
3782 |
-
|
3783 |
-
|
3784 |
-
|
3785 |
-
|
3786 |
-
|
3787 |
-
|
3788 |
-
|
3789 |
-
|
3790 |
-
|
3791 |
-
|
3792 |
-
|
3793 |
-
|
3794 |
-
|
3795 |
-
|
3796 |
-
|
3797 |
-
|
3798 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3799 |
}
|
3800 |
}
|
3801 |
-
|
3802 |
-
|
3803 |
-
|
3804 |
-
*
|
3805 |
-
*
|
3806 |
-
* @param {int} iCol column of interest
|
3807 |
-
* @returns {node} widest table node
|
3808 |
-
* @memberof DataTable#oApi
|
3809 |
*/
|
3810 |
-
|
3811 |
-
|
3812 |
-
|
3813 |
-
|
3814 |
-
{
|
3815 |
-
|
3816 |
}
|
3817 |
-
|
3818 |
-
if ( oSettings.aoData[iMaxIndex].nTr === null )
|
3819 |
-
{
|
3820 |
-
var n = document.createElement('td');
|
3821 |
-
n.innerHTML = _fnGetCellData( oSettings, iMaxIndex, iCol, '' );
|
3822 |
-
return n;
|
3823 |
-
}
|
3824 |
-
return _fnGetTdNodes(oSettings, iMaxIndex)[iCol];
|
3825 |
}
|
3826 |
-
|
3827 |
-
|
3828 |
-
/**
|
3829 |
-
* Get the maximum strlen for each data column
|
3830 |
-
* @param {object} oSettings dataTables settings object
|
3831 |
-
* @param {int} iCol column of interest
|
3832 |
-
* @returns {string} max string length for each column
|
3833 |
-
* @memberof DataTable#oApi
|
3834 |
-
*/
|
3835 |
-
function _fnGetMaxLenString( oSettings, iCol )
|
3836 |
{
|
3837 |
-
|
3838 |
-
|
3839 |
-
|
3840 |
-
|
3841 |
-
|
3842 |
-
|
3843 |
-
|
3844 |
-
|
3845 |
-
|
3846 |
-
|
3847 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3848 |
}
|
3849 |
}
|
3850 |
-
|
3851 |
-
|
3852 |
-
|
3853 |
-
|
3854 |
-
|
3855 |
-
|
3856 |
-
|
3857 |
-
|
3858 |
-
|
3859 |
-
* @returns {int} 0 if match, 1 if length is different, 2 if no match
|
3860 |
-
* @memberof DataTable#oApi
|
3861 |
-
*/
|
3862 |
-
function _fnStringToCss( s )
|
3863 |
-
{
|
3864 |
-
if ( s === null )
|
3865 |
-
{
|
3866 |
-
return "0px";
|
3867 |
}
|
3868 |
-
|
3869 |
-
|
3870 |
-
|
3871 |
-
if (
|
3872 |
-
|
3873 |
-
return "0px";
|
3874 |
}
|
3875 |
-
return s+"px";
|
3876 |
}
|
3877 |
-
|
3878 |
-
|
3879 |
-
var c = s.charCodeAt( s.length-1 );
|
3880 |
-
if (c < 0x30 || c > 0x39)
|
3881 |
-
{
|
3882 |
-
return s;
|
3883 |
}
|
3884 |
-
|
3885 |
-
|
3886 |
-
|
3887 |
-
|
3888 |
-
/**
|
3889 |
-
* Get the width of a scroll bar in this browser being used
|
3890 |
-
* @returns {int} width in pixels
|
3891 |
-
* @memberof DataTable#oApi
|
3892 |
-
*/
|
3893 |
-
function _fnScrollBarWidth ()
|
3894 |
-
{
|
3895 |
-
var inner = document.createElement('p');
|
3896 |
-
var style = inner.style;
|
3897 |
-
style.width = "100%";
|
3898 |
-
style.height = "200px";
|
3899 |
-
style.padding = "0px";
|
3900 |
-
|
3901 |
-
var outer = document.createElement('div');
|
3902 |
-
style = outer.style;
|
3903 |
-
style.position = "absolute";
|
3904 |
-
style.top = "0px";
|
3905 |
-
style.left = "0px";
|
3906 |
-
style.visibility = "hidden";
|
3907 |
-
style.width = "200px";
|
3908 |
-
style.height = "150px";
|
3909 |
-
style.padding = "0px";
|
3910 |
-
style.overflow = "hidden";
|
3911 |
-
outer.appendChild(inner);
|
3912 |
-
|
3913 |
-
document.body.appendChild(outer);
|
3914 |
-
var w1 = inner.offsetWidth;
|
3915 |
-
outer.style.overflow = 'scroll';
|
3916 |
-
var w2 = inner.offsetWidth;
|
3917 |
-
if ( w1 == w2 )
|
3918 |
-
{
|
3919 |
-
w2 = outer.clientWidth;
|
3920 |
}
|
3921 |
-
|
3922 |
-
|
3923 |
-
|
3924 |
-
|
3925 |
-
|
3926 |
-
|
3927 |
-
|
3928 |
-
|
3929 |
-
|
3930 |
-
|
3931 |
-
*/
|
3932 |
-
function _fnSort ( oSettings, bApplyClasses )
|
3933 |
-
{
|
3934 |
-
var
|
3935 |
-
i, iLen, j, jLen, k, kLen,
|
3936 |
-
sDataType, nTh,
|
3937 |
-
aaSort = [],
|
3938 |
-
aiOrig = [],
|
3939 |
-
oSort = DataTable.ext.oSort,
|
3940 |
-
aoData = oSettings.aoData,
|
3941 |
-
aoColumns = oSettings.aoColumns,
|
3942 |
-
oAria = oSettings.oLanguage.oAria;
|
3943 |
-
|
3944 |
-
/* No sorting required if server-side or no sorting array */
|
3945 |
-
if ( !oSettings.oFeatures.bServerSide &&
|
3946 |
-
(oSettings.aaSorting.length !== 0 || oSettings.aaSortingFixed !== null) )
|
3947 |
{
|
3948 |
-
|
3949 |
-
|
3950 |
-
|
3951 |
-
|
3952 |
-
|
3953 |
-
|
3954 |
-
|
3955 |
-
|
3956 |
-
|
3957 |
-
var iColumn = aaSort[i][0];
|
3958 |
-
var iVisColumn = _fnColumnIndexToVisible( oSettings, iColumn );
|
3959 |
-
sDataType = oSettings.aoColumns[ iColumn ].sSortDataType;
|
3960 |
-
if ( DataTable.ext.afnSortData[sDataType] )
|
3961 |
-
{
|
3962 |
-
var aData = DataTable.ext.afnSortData[sDataType].call(
|
3963 |
-
oSettings.oInstance, oSettings, iColumn, iVisColumn
|
3964 |
-
);
|
3965 |
-
if ( aData.length === aoData.length )
|
3966 |
-
{
|
3967 |
-
for ( j=0, jLen=aoData.length ; j<jLen ; j++ )
|
3968 |
-
{
|
3969 |
-
_fnSetCellData( oSettings, j, iColumn, aData[j] );
|
3970 |
-
}
|
3971 |
-
}
|
3972 |
-
else
|
3973 |
-
{
|
3974 |
-
_fnLog( oSettings, 0, "Returned data sort array (col "+iColumn+") is the wrong length" );
|
3975 |
-
}
|
3976 |
-
}
|
3977 |
-
}
|
3978 |
-
|
3979 |
-
/* Create a value - key array of the current row positions such that we can use their
|
3980 |
-
* current position during the sort, if values match, in order to perform stable sorting
|
3981 |
-
*/
|
3982 |
-
for ( i=0, iLen=oSettings.aiDisplayMaster.length ; i<iLen ; i++ )
|
3983 |
-
{
|
3984 |
-
aiOrig[ oSettings.aiDisplayMaster[i] ] = i;
|
3985 |
-
}
|
3986 |
-
|
3987 |
-
/* Build an internal data array which is specific to the sort, so we can get and prep
|
3988 |
-
* the data to be sorted only once, rather than needing to do it every time the sorting
|
3989 |
-
* function runs. This make the sorting function a very simple comparison
|
3990 |
-
*/
|
3991 |
-
var iSortLen = aaSort.length;
|
3992 |
-
var fnSortFormat, aDataSort;
|
3993 |
-
for ( i=0, iLen=aoData.length ; i<iLen ; i++ )
|
3994 |
-
{
|
3995 |
-
for ( j=0 ; j<iSortLen ; j++ )
|
3996 |
-
{
|
3997 |
-
aDataSort = aoColumns[ aaSort[j][0] ].aDataSort;
|
3998 |
-
|
3999 |
-
for ( k=0, kLen=aDataSort.length ; k<kLen ; k++ )
|
4000 |
-
{
|
4001 |
-
sDataType = aoColumns[ aDataSort[k] ].sType;
|
4002 |
-
fnSortFormat = oSort[ (sDataType ? sDataType : 'string')+"-pre" ];
|
4003 |
-
|
4004 |
-
aoData[i]._aSortData[ aDataSort[k] ] = fnSortFormat ?
|
4005 |
-
fnSortFormat( _fnGetCellData( oSettings, i, aDataSort[k], 'sort' ) ) :
|
4006 |
-
_fnGetCellData( oSettings, i, aDataSort[k], 'sort' );
|
4007 |
-
}
|
4008 |
-
}
|
4009 |
}
|
4010 |
-
|
4011 |
-
|
4012 |
-
|
4013 |
-
* follow on it's own, but this is what we want (example two column sorting):
|
4014 |
-
* fnLocalSorting = function(a,b){
|
4015 |
-
* var iTest;
|
4016 |
-
* iTest = oSort['string-asc']('data11', 'data12');
|
4017 |
-
* if (iTest !== 0)
|
4018 |
-
* return iTest;
|
4019 |
-
* iTest = oSort['numeric-desc']('data21', 'data22');
|
4020 |
-
* if (iTest !== 0)
|
4021 |
-
* return iTest;
|
4022 |
-
* return oSort['numeric-asc']( aiOrig[a], aiOrig[b] );
|
4023 |
-
* }
|
4024 |
-
* Basically we have a test for each sorting column, if the data in that column is equal,
|
4025 |
-
* test the next column. If all columns match, then we use a numeric sort on the row
|
4026 |
-
* positions in the original data array to provide a stable sort.
|
4027 |
-
*/
|
4028 |
-
oSettings.aiDisplayMaster.sort( function ( a, b ) {
|
4029 |
-
var k, l, lLen, iTest, aDataSort, sDataType;
|
4030 |
-
for ( k=0 ; k<iSortLen ; k++ )
|
4031 |
-
{
|
4032 |
-
aDataSort = aoColumns[ aaSort[k][0] ].aDataSort;
|
4033 |
-
|
4034 |
-
for ( l=0, lLen=aDataSort.length ; l<lLen ; l++ )
|
4035 |
-
{
|
4036 |
-
sDataType = aoColumns[ aDataSort[l] ].sType;
|
4037 |
-
|
4038 |
-
iTest = oSort[ (sDataType ? sDataType : 'string')+"-"+aaSort[k][1] ](
|
4039 |
-
aoData[a]._aSortData[ aDataSort[l] ],
|
4040 |
-
aoData[b]._aSortData[ aDataSort[l] ]
|
4041 |
-
);
|
4042 |
-
|
4043 |
-
if ( iTest !== 0 )
|
4044 |
-
{
|
4045 |
-
return iTest;
|
4046 |
-
}
|
4047 |
-
}
|
4048 |
-
}
|
4049 |
-
|
4050 |
-
return oSort['numeric-asc']( aiOrig[a], aiOrig[b] );
|
4051 |
-
} );
|
4052 |
-
}
|
4053 |
-
|
4054 |
-
/* Alter the sorting classes to take account of the changes */
|
4055 |
-
if ( (bApplyClasses === undefined || bApplyClasses) && !oSettings.oFeatures.bDeferRender )
|
4056 |
-
{
|
4057 |
-
_fnSortingClasses( oSettings );
|
4058 |
}
|
4059 |
-
|
4060 |
-
|
4061 |
-
{
|
4062 |
-
|
4063 |
-
|
4064 |
-
|
4065 |
-
|
4066 |
-
|
4067 |
-
/* In ARIA only the first sorting column can be marked as sorting - no multi-sort option */
|
4068 |
-
if ( aoColumns[i].bSortable )
|
4069 |
-
{
|
4070 |
-
if ( aaSort.length > 0 && aaSort[0][0] == i )
|
4071 |
-
{
|
4072 |
-
nTh.setAttribute('aria-sort', aaSort[0][1]=="asc" ? "ascending" : "descending" );
|
4073 |
-
|
4074 |
-
var nextSort = (aoColumns[i].asSorting[ aaSort[0][2]+1 ]) ?
|
4075 |
-
aoColumns[i].asSorting[ aaSort[0][2]+1 ] : aoColumns[i].asSorting[0];
|
4076 |
-
nTh.setAttribute('aria-label', sTitle+
|
4077 |
-
(nextSort=="asc" ? oAria.sSortAscending : oAria.sSortDescending) );
|
4078 |
-
}
|
4079 |
-
else
|
4080 |
-
{
|
4081 |
-
nTh.setAttribute('aria-label', sTitle+
|
4082 |
-
(aoColumns[i].asSorting[0]=="asc" ? oAria.sSortAscending : oAria.sSortDescending) );
|
4083 |
-
}
|
4084 |
-
}
|
4085 |
-
else
|
4086 |
-
{
|
4087 |
-
nTh.setAttribute('aria-label', sTitle);
|
4088 |
}
|
4089 |
}
|
4090 |
-
|
4091 |
-
|
4092 |
-
|
4093 |
-
|
4094 |
-
|
4095 |
-
|
4096 |
-
|
4097 |
-
|
4098 |
-
|
4099 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4100 |
}
|
4101 |
-
else
|
4102 |
-
|
4103 |
-
|
4104 |
-
oSettings._iDisplayStart = 0; /* reset display back to page 0 */
|
4105 |
-
_fnCalculateEnd( oSettings );
|
4106 |
-
_fnDraw( oSettings );
|
4107 |
}
|
4108 |
-
}
|
4109 |
-
|
4110 |
-
|
4111 |
-
|
4112 |
-
|
4113 |
-
|
4114 |
-
|
4115 |
-
|
4116 |
-
|
4117 |
-
|
4118 |
-
|
4119 |
-
|
4120 |
-
|
4121 |
-
|
4122 |
-
|
4123 |
-
|
4124 |
-
|
4125 |
-
|
4126 |
-
|
4127 |
-
|
4128 |
-
|
4129 |
-
|
4130 |
-
|
4131 |
-
|
4132 |
-
|
4133 |
-
|
4134 |
-
|
4135 |
-
|
4136 |
-
|
4137 |
-
|
4138 |
-
|
4139 |
-
|
4140 |
-
|
4141 |
-
|
4142 |
-
|
4143 |
-
|
4144 |
-
|
4145 |
-
|
4146 |
-
|
4147 |
-
|
4148 |
-
|
4149 |
-
|
4150 |
-
|
4151 |
-
|
4152 |
-
|
4153 |
-
|
4154 |
-
|
4155 |
-
|
4156 |
-
|
4157 |
-
|
4158 |
-
|
4159 |
-
|
4160 |
-
|
4161 |
-
|
4162 |
-
|
4163 |
-
|
4164 |
-
|
4165 |
-
|
4166 |
-
|
4167 |
-
|
4168 |
-
|
4169 |
-
|
4170 |
-
|
4171 |
-
|
4172 |
-
|
4173 |
-
|
4174 |
-
|
4175 |
-
|
4176 |
-
|
4177 |
-
|
4178 |
-
|
4179 |
-
|
4180 |
-
|
4181 |
-
|
4182 |
-
|
4183 |
-
|
4184 |
-
|
4185 |
-
|
4186 |
-
|
4187 |
-
|
4188 |
-
|
4189 |
-
|
4190 |
-
|
4191 |
-
|
4192 |
-
|
4193 |
-
|
4194 |
-
|
4195 |
-
|
4196 |
-
|
4197 |
-
|
4198 |
-
|
4199 |
-
|
4200 |
-
|
4201 |
-
|
4202 |
-
|
4203 |
-
|
4204 |
-
|
4205 |
-
|
4206 |
-
|
4207 |
-
|
4208 |
-
|
4209 |
-
|
4210 |
-
|
4211 |
-
|
4212 |
-
|
4213 |
-
|
4214 |
-
|
4215 |
-
|
4216 |
-
|
4217 |
-
|
4218 |
-
|
4219 |
-
|
4220 |
-
|
4221 |
-
|
4222 |
-
|
4223 |
-
|
4224 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4225 |
}
|
4226 |
-
}
|
|
|
|
|
|
|
|
|
|
|
4227 |
}
|
4228 |
-
|
4229 |
-
|
4230 |
-
|
4231 |
-
|
4232 |
-
|
4233 |
-
|
4234 |
-
|
4235 |
-
|
4236 |
-
|
|
|
|
|
|
|
4237 |
{
|
4238 |
-
|
4239 |
-
|
4240 |
-
|
4241 |
-
|
4242 |
-
|
4243 |
-
for ( i=0 ; i<iColumns ; i++ )
|
4244 |
{
|
4245 |
-
|
4246 |
-
|
4247 |
-
|
4248 |
-
|
|
|
4249 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4250 |
}
|
4251 |
-
|
4252 |
-
|
4253 |
-
|
4254 |
-
|
4255 |
-
|
4256 |
-
|
4257 |
-
|
4258 |
-
|
4259 |
-
|
4260 |
-
|
4261 |
-
|
4262 |
-
|
4263 |
-
|
4264 |
-
|
4265 |
-
|
4266 |
-
|
4267 |
-
|
4268 |
-
|
4269 |
-
|
4270 |
-
|
4271 |
-
|
4272 |
-
|
4273 |
-
|
4274 |
-
|
4275 |
-
|
4276 |
-
|
4277 |
-
|
4278 |
-
|
4279 |
-
|
4280 |
-
|
4281 |
-
|
4282 |
-
|
4283 |
-
|
4284 |
-
|
4285 |
-
|
4286 |
-
|
4287 |
-
|
4288 |
-
|
4289 |
-
|
4290 |
-
|
4291 |
-
|
4292 |
-
|
4293 |
-
|
4294 |
-
|
4295 |
-
|
4296 |
-
|
4297 |
-
|
4298 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4299 |
}
|
4300 |
-
|
4301 |
-
jqSpan.addClass( sSpanClass );
|
4302 |
}
|
4303 |
-
|
4304 |
-
|
4305 |
-
|
4306 |
-
|
4307 |
-
|
4308 |
-
*/
|
4309 |
-
$(oSettings.aoColumns[i].nTh).addClass( oSettings.aoColumns[i].sSortingClass );
|
4310 |
-
}
|
4311 |
}
|
4312 |
-
|
4313 |
-
|
4314 |
-
|
4315 |
-
|
4316 |
-
|
4317 |
-
|
4318 |
-
|
4319 |
-
|
4320 |
-
|
4321 |
-
|
4322 |
-
|
4323 |
-
|
4324 |
-
|
4325 |
-
|
4326 |
-
|
4327 |
-
|
4328 |
-
|
4329 |
-
|
4330 |
-
|
4331 |
-
|
4332 |
-
|
4333 |
-
|
4334 |
-
{
|
4335 |
-
asClasses.push("");
|
4336 |
-
}
|
4337 |
-
for (i = 0, iClass = 1; i < aaSort.length; i++)
|
4338 |
-
{
|
4339 |
-
iTargetCol = parseInt( aaSort[i][0], 10 );
|
4340 |
-
asClasses[iTargetCol] = sClass + iClass;
|
4341 |
-
|
4342 |
-
if ( iClass < 3 )
|
4343 |
-
{
|
4344 |
-
iClass++;
|
4345 |
-
}
|
4346 |
-
}
|
4347 |
-
|
4348 |
-
/* Make changes to the classes for each cell as needed */
|
4349 |
-
var reClass = new RegExp(sClass + "[123]");
|
4350 |
-
var sTmpClass, sCurrentClass, sNewClass;
|
4351 |
-
for ( i=0, iLen=nTds.length; i<iLen; i++ )
|
4352 |
-
{
|
4353 |
-
/* Determine which column we're looking at */
|
4354 |
-
iTargetCol = i % iColumns;
|
4355 |
-
|
4356 |
-
/* What is the full list of classes now */
|
4357 |
-
sCurrentClass = nTds[i].className;
|
4358 |
-
/* What sorting class should be applied? */
|
4359 |
-
sNewClass = asClasses[iTargetCol];
|
4360 |
-
/* What would the new full list be if we did a replacement? */
|
4361 |
-
sTmpClass = sCurrentClass.replace(reClass, sNewClass);
|
4362 |
-
|
4363 |
-
if ( sTmpClass != sCurrentClass )
|
4364 |
-
{
|
4365 |
-
/* We changed something */
|
4366 |
-
nTds[i].className = $.trim( sTmpClass );
|
4367 |
-
}
|
4368 |
-
else if ( sNewClass.length > 0 && sCurrentClass.indexOf(sNewClass) == -1 )
|
4369 |
-
{
|
4370 |
-
/* We need to add a class */
|
4371 |
-
nTds[i].className = sCurrentClass + " " + sNewClass;
|
4372 |
}
|
4373 |
-
|
|
|
|
|
|
|
|
|
4374 |
}
|
4375 |
}
|
4376 |
-
|
4377 |
-
|
4378 |
-
|
4379 |
-
|
4380 |
-
|
4381 |
-
|
4382 |
-
|
4383 |
-
|
4384 |
-
|
4385 |
-
|
4386 |
-
|
4387 |
-
|
4388 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4389 |
}
|
4390 |
-
|
4391 |
-
|
4392 |
-
var i, iLen, bInfinite=oSettings.oScroll.bInfinite;
|
4393 |
-
var oState = {
|
4394 |
-
"iCreate": new Date().getTime(),
|
4395 |
-
"iStart": (bInfinite ? 0 : oSettings._iDisplayStart),
|
4396 |
-
"iEnd": (bInfinite ? oSettings._iDisplayLength : oSettings._iDisplayEnd),
|
4397 |
-
"iLength": oSettings._iDisplayLength,
|
4398 |
-
"aaSorting": $.extend( true, [], oSettings.aaSorting ),
|
4399 |
-
"oSearch": $.extend( true, {}, oSettings.oPreviousSearch ),
|
4400 |
-
"aoSearchCols": $.extend( true, [], oSettings.aoPreSearchCols ),
|
4401 |
-
"abVisCols": []
|
4402 |
-
};
|
4403 |
-
|
4404 |
-
for ( i=0, iLen=oSettings.aoColumns.length ; i<iLen ; i++ )
|
4405 |
-
{
|
4406 |
-
oState.abVisCols.push( oSettings.aoColumns[i].bVisible );
|
4407 |
}
|
4408 |
-
|
4409 |
-
|
4410 |
-
|
4411 |
-
oSettings.fnStateSave.call( oSettings.oInstance, oSettings, oState );
|
4412 |
}
|
4413 |
-
|
4414 |
-
|
4415 |
-
|
4416 |
-
|
4417 |
-
|
4418 |
-
|
4419 |
-
|
4420 |
-
|
4421 |
-
|
4422 |
-
|
4423 |
-
|
4424 |
-
|
4425 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4426 |
}
|
4427 |
-
|
4428 |
-
|
4429 |
-
|
4430 |
-
|
4431 |
-
return;
|
4432 |
}
|
4433 |
-
|
4434 |
-
|
4435 |
-
|
4436 |
-
|
4437 |
-
|
4438 |
-
|
4439 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4440 |
return;
|
4441 |
}
|
4442 |
-
|
4443 |
-
|
4444 |
-
|
4445 |
-
|
4446 |
-
|
4447 |
-
|
4448 |
-
|
4449 |
-
|
4450 |
-
|
4451 |
-
|
4452 |
-
|
4453 |
-
|
4454 |
-
|
4455 |
-
|
4456 |
-
|
4457 |
-
|
4458 |
-
/* Column visibility state
|
4459 |
-
* Pass back visibility settings to the init handler, but to do not here override
|
4460 |
-
* the init object that the user might have passed in
|
4461 |
-
*/
|
4462 |
-
oInit.saved_aoColumns = [];
|
4463 |
-
for ( var i=0 ; i<oData.abVisCols.length ; i++ )
|
4464 |
-
{
|
4465 |
-
oInit.saved_aoColumns[i] = {};
|
4466 |
-
oInit.saved_aoColumns[i].bVisible = oData.abVisCols[i];
|
4467 |
}
|
4468 |
-
|
4469 |
-
|
4470 |
-
}
|
4471 |
-
|
4472 |
-
|
4473 |
-
/**
|
4474 |
-
* Create a new cookie with a value to store the state of a table
|
4475 |
-
* @param {string} sName name of the cookie to create
|
4476 |
-
* @param {string} sValue the value the cookie should take
|
4477 |
-
* @param {int} iSecs duration of the cookie
|
4478 |
-
* @param {string} sBaseName sName is made up of the base + file name - this is the base
|
4479 |
-
* @param {function} fnCallback User definable function to modify the cookie
|
4480 |
-
* @memberof DataTable#oApi
|
4481 |
-
*/
|
4482 |
-
function _fnCreateCookie ( sName, sValue, iSecs, sBaseName, fnCallback )
|
4483 |
-
{
|
4484 |
-
var date = new Date();
|
4485 |
-
date.setTime( date.getTime()+(iSecs*1000) );
|
4486 |
-
|
4487 |
-
/*
|
4488 |
-
* Shocking but true - it would appear IE has major issues with having the path not having
|
4489 |
-
* a trailing slash on it. We need the cookie to be available based on the path, so we
|
4490 |
-
* have to append the file name to the cookie name. Appalling. Thanks to vex for adding the
|
4491 |
-
* patch to use at least some of the path
|
4492 |
-
*/
|
4493 |
-
var aParts = window.location.pathname.split('/');
|
4494 |
-
var sNameFile = sName + '_' + aParts.pop().replace(/[\/:]/g,"").toLowerCase();
|
4495 |
-
var sFullCookie, oData;
|
4496 |
-
|
4497 |
-
if ( fnCallback !== null )
|
4498 |
-
{
|
4499 |
-
oData = (typeof $.parseJSON === 'function') ?
|
4500 |
-
$.parseJSON( sValue ) : eval( '('+sValue+')' );
|
4501 |
-
sFullCookie = fnCallback( sNameFile, oData, date.toGMTString(),
|
4502 |
-
aParts.join('/')+"/" );
|
4503 |
}
|
4504 |
-
|
4505 |
-
|
4506 |
-
|
4507 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4508 |
}
|
4509 |
-
|
4510 |
-
|
4511 |
-
|
4512 |
-
|
4513 |
-
|
4514 |
-
|
4515 |
-
|
4516 |
-
aOldCookies = [];
|
4517 |
-
|
4518 |
-
if ( iNewCookieLen+document.cookie.length+10 > 4096 ) /* Magic 10 for padding */
|
4519 |
-
{
|
4520 |
-
for ( var i=0, iLen=aCookies.length ; i<iLen ; i++ )
|
4521 |
-
{
|
4522 |
-
if ( aCookies[i].indexOf( sBaseName ) != -1 )
|
4523 |
-
{
|
4524 |
-
/* It's a DataTables cookie, so eval it and check the time stamp */
|
4525 |
-
var aSplitCookie = aCookies[i].split('=');
|
4526 |
-
try {
|
4527 |
-
oData = eval( '('+decodeURIComponent(aSplitCookie[1])+')' );
|
4528 |
-
|
4529 |
-
if ( oData && oData.iCreate )
|
4530 |
-
{
|
4531 |
-
aOldCookies.push( {
|
4532 |
-
"name": aSplitCookie[0],
|
4533 |
-
"time": oData.iCreate
|
4534 |
-
} );
|
4535 |
-
}
|
4536 |
-
}
|
4537 |
-
catch( e ) {}
|
4538 |
-
}
|
4539 |
-
}
|
4540 |
-
|
4541 |
-
// Make sure we delete the oldest ones first
|
4542 |
-
aOldCookies.sort( function (a, b) {
|
4543 |
-
return b.time - a.time;
|
4544 |
-
} );
|
4545 |
-
|
4546 |
-
// Eliminate as many old DataTables cookies as we need to
|
4547 |
-
while ( iNewCookieLen + document.cookie.length + 10 > 4096 ) {
|
4548 |
-
if ( aOldCookies.length === 0 ) {
|
4549 |
-
// Deleted all DT cookies and still not enough space. Can't state save
|
4550 |
-
return;
|
4551 |
-
}
|
4552 |
-
|
4553 |
-
var old = aOldCookies.pop();
|
4554 |
-
document.cookie = old.name+"=; expires=Thu, 01-Jan-1970 00:00:01 GMT; path="+
|
4555 |
-
aParts.join('/') + "/";
|
4556 |
-
}
|
4557 |
}
|
4558 |
-
|
4559 |
-
document.cookie = sFullCookie;
|
4560 |
}
|
4561 |
-
|
4562 |
-
|
4563 |
-
|
4564 |
-
|
4565 |
-
|
4566 |
-
|
4567 |
-
|
4568 |
-
|
4569 |
-
|
4570 |
-
|
4571 |
-
|
4572 |
-
|
4573 |
-
|
4574 |
-
|
4575 |
-
|
4576 |
-
|
4577 |
-
|
4578 |
-
|
4579 |
-
|
4580 |
-
while (c.charAt(0)==' ')
|
4581 |
-
{
|
4582 |
-
c = c.substring(1,c.length);
|
4583 |
-
}
|
4584 |
-
|
4585 |
-
if (c.indexOf(sNameEQ) === 0)
|
4586 |
-
{
|
4587 |
-
return decodeURIComponent( c.substring(sNameEQ.length,c.length) );
|
4588 |
-
}
|
4589 |
-
}
|
4590 |
-
return null;
|
4591 |
}
|
4592 |
-
|
4593 |
-
|
4594 |
-
|
4595 |
-
|
4596 |
-
|
4597 |
-
|
4598 |
-
|
4599 |
-
|
4600 |
-
|
4601 |
-
|
4602 |
-
|
4603 |
-
|
4604 |
-
|
4605 |
-
|
4606 |
-
|
4607 |
-
|
|
|
|
|
|
|
|
|
4608 |
}
|
4609 |
-
|
4610 |
-
return null;
|
4611 |
}
|
4612 |
-
|
4613 |
-
|
4614 |
-
|
4615 |
-
|
4616 |
-
|
4617 |
-
|
4618 |
-
|
4619 |
-
|
4620 |
-
|
|
|
|
|
|
|
4621 |
{
|
4622 |
-
|
4623 |
-
var aoData = oSettings.aoData;
|
4624 |
-
for ( var i=0, iLen=aoData.length ; i<iLen ; i++ )
|
4625 |
-
{
|
4626 |
-
if ( aoData[i].nTr !== null )
|
4627 |
-
{
|
4628 |
-
aNodes.push( aoData[i].nTr );
|
4629 |
-
}
|
4630 |
-
}
|
4631 |
-
return aNodes;
|
4632 |
}
|
4633 |
-
|
4634 |
-
|
4635 |
-
|
4636 |
-
|
4637 |
-
|
4638 |
-
|
4639 |
-
|
4640 |
-
|
4641 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4642 |
*/
|
4643 |
-
|
4644 |
-
{
|
4645 |
-
|
4646 |
-
|
4647 |
-
|
4648 |
-
|
4649 |
-
|
4650 |
-
|
4651 |
-
|
4652 |
-
|
4653 |
-
|
4654 |
-
|
4655 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4656 |
}
|
4657 |
-
|
4658 |
-
|
4659 |
-
|
4660 |
-
|
4661 |
-
|
4662 |
-
{
|
4663 |
-
/* get the TD child nodes - taking into account text etc nodes */
|
4664 |
-
anTds = [];
|
4665 |
-
nTd = oData.nTr.firstChild;
|
4666 |
-
while ( nTd )
|
4667 |
-
{
|
4668 |
-
sNodeName = nTd.nodeName.toLowerCase();
|
4669 |
-
if ( sNodeName == 'td' || sNodeName == 'th' )
|
4670 |
-
{
|
4671 |
-
anTds.push( nTd );
|
4672 |
-
}
|
4673 |
-
nTd = nTd.nextSibling;
|
4674 |
-
}
|
4675 |
-
|
4676 |
-
iCorrector = 0;
|
4677 |
-
for ( iColumn=0, iColumns=oSettings.aoColumns.length ; iColumn<iColumns ; iColumn++ )
|
4678 |
-
{
|
4679 |
-
if ( oSettings.aoColumns[iColumn].bVisible )
|
4680 |
-
{
|
4681 |
-
anReturn.push( anTds[iColumn-iCorrector] );
|
4682 |
-
}
|
4683 |
-
else
|
4684 |
-
{
|
4685 |
-
anReturn.push( oData._anHidden[iColumn] );
|
4686 |
-
iCorrector++;
|
4687 |
-
}
|
4688 |
-
}
|
4689 |
-
}
|
4690 |
}
|
4691 |
-
|
4692 |
-
return anReturn;
|
4693 |
}
|
4694 |
-
|
4695 |
-
|
4696 |
-
|
4697 |
-
|
4698 |
-
|
4699 |
-
|
4700 |
-
|
4701 |
-
|
4702 |
-
|
4703 |
-
|
4704 |
-
|
4705 |
-
|
4706 |
-
|
4707 |
-
|
4708 |
-
|
4709 |
-
|
4710 |
-
|
4711 |
-
|
4712 |
-
{
|
4713 |
-
|
4714 |
}
|
4715 |
-
else
|
4716 |
-
|
4717 |
-
throw new Error(sAlert);
|
4718 |
}
|
4719 |
-
|
4720 |
-
|
4721 |
-
|
4722 |
-
{
|
4723 |
-
console.log( sAlert );
|
4724 |
-
}
|
4725 |
}
|
4726 |
-
|
4727 |
-
|
4728 |
-
|
4729 |
-
* See if a property is defined on one object, if so assign it to the other object
|
4730 |
-
* @param {object} oRet target object
|
4731 |
-
* @param {object} oSrc source object
|
4732 |
-
* @param {string} sName property
|
4733 |
-
* @param {string} [sMappedName] name to map too - optional, sName used if not given
|
4734 |
-
* @memberof DataTable#oApi
|
4735 |
-
*/
|
4736 |
-
function _fnMap( oRet, oSrc, sName, sMappedName )
|
4737 |
-
{
|
4738 |
-
if ( sMappedName === undefined )
|
4739 |
-
{
|
4740 |
-
sMappedName = sName;
|
4741 |
-
}
|
4742 |
-
if ( oSrc[sName] !== undefined )
|
4743 |
-
{
|
4744 |
-
oRet[sMappedName] = oSrc[sName];
|
4745 |
-
}
|
4746 |
}
|
4747 |
-
|
4748 |
-
|
4749 |
-
|
4750 |
-
|
4751 |
-
|
4752 |
-
|
4753 |
-
|
4754 |
-
|
4755 |
-
|
4756 |
-
|
4757 |
-
|
4758 |
-
|
4759 |
-
|
4760 |
-
|
4761 |
-
|
4762 |
-
|
4763 |
-
|
4764 |
-
|
4765 |
-
|
4766 |
-
|
4767 |
-
|
4768 |
-
|
4769 |
-
|
4770 |
-
|
4771 |
-
|
4772 |
-
|
4773 |
-
|
4774 |
-
|
4775 |
-
|
4776 |
-
|
|
|
|
|
|
|
|
|
|
|
4777 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4778 |
}
|
4779 |
}
|
4780 |
-
|
4781 |
-
return oOut;
|
4782 |
}
|
4783 |
-
|
4784 |
-
|
4785 |
-
|
4786 |
-
|
4787 |
-
|
4788 |
-
|
4789 |
-
|
4790 |
-
|
4791 |
-
|
4792 |
-
|
4793 |
-
|
4794 |
-
|
4795 |
-
|
4796 |
-
|
4797 |
-
|
4798 |
-
|
4799 |
-
|
4800 |
-
|
4801 |
-
|
|
|
|
|
|
|
4802 |
if ( e.which === 13 ) {
|
|
|
4803 |
fn(e);
|
4804 |
-
}
|
4805 |
-
|
|
|
4806 |
/* Take the brutal approach to cancelling text selection */
|
4807 |
return false;
|
4808 |
-
} );
|
4809 |
-
}
|
4810 |
-
|
4811 |
-
|
4812 |
-
/**
|
4813 |
-
* Register a callback function. Easily allows a callback function to be added to
|
4814 |
-
* an array store of callback functions that can then all be called together.
|
4815 |
-
* @param {object} oSettings dataTables settings object
|
4816 |
-
* @param {string} sStore Name of the array storage for the callbacks in oSettings
|
4817 |
-
* @param {function} fn Function to be called back
|
4818 |
-
* @param {string} sName Identifying name for the callback (i.e. a label)
|
4819 |
-
* @memberof DataTable#oApi
|
4820 |
-
*/
|
4821 |
-
function _fnCallbackReg( oSettings, sStore, fn, sName )
|
4822 |
-
{
|
4823 |
-
if ( fn )
|
4824 |
-
{
|
4825 |
-
oSettings[sStore].push( {
|
4826 |
-
"fn": fn,
|
4827 |
-
"sName": sName
|
4828 |
} );
|
4829 |
-
|
4830 |
-
|
4831 |
-
|
4832 |
-
|
4833 |
-
|
4834 |
-
|
4835 |
-
|
4836 |
-
|
4837 |
-
|
4838 |
-
|
4839 |
-
|
4840 |
-
|
4841 |
-
|
4842 |
-
|
4843 |
-
|
4844 |
-
function _fnCallbackFire( oSettings, sStore, sTrigger, aArgs )
|
4845 |
{
|
4846 |
-
|
4847 |
-
|
4848 |
-
|
4849 |
-
|
4850 |
-
{
|
4851 |
-
aRet.push( aoStore[i].fn.apply( oSettings.oInstance, aArgs ) );
|
4852 |
-
}
|
4853 |
-
|
4854 |
-
if ( sTrigger !== null )
|
4855 |
-
{
|
4856 |
-
$(oSettings.oInstance).trigger(sTrigger, aArgs);
|
4857 |
-
}
|
4858 |
-
|
4859 |
-
return aRet;
|
4860 |
}
|
4861 |
-
|
4862 |
-
|
4863 |
-
|
4864 |
-
|
4865 |
-
|
4866 |
-
|
4867 |
-
|
4868 |
-
|
4869 |
-
|
4870 |
-
|
4871 |
-
|
4872 |
-
|
4873 |
-
|
4874 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4875 |
{
|
4876 |
-
|
4877 |
-
|
4878 |
-
|
4879 |
-
|
4880 |
-
|
4881 |
-
|
4882 |
-
|
4883 |
-
o = '"'+o+'"';
|
4884 |
-
}
|
4885 |
-
return o+"";
|
4886 |
-
}
|
4887 |
-
|
4888 |
-
/* If object or array, need to recurse over it */
|
4889 |
-
var
|
4890 |
-
sProp, mValue,
|
4891 |
-
json = [],
|
4892 |
-
bArr = $.isArray(o);
|
4893 |
-
|
4894 |
-
for (sProp in o)
|
4895 |
-
{
|
4896 |
-
mValue = o[sProp];
|
4897 |
-
sType = typeof mValue;
|
4898 |
-
|
4899 |
-
if (sType === "string")
|
4900 |
-
{
|
4901 |
-
mValue = '"'+mValue+'"';
|
4902 |
-
}
|
4903 |
-
else if (sType === "object" && mValue !== null)
|
4904 |
-
{
|
4905 |
-
mValue = _fnJsonString(mValue);
|
4906 |
-
}
|
4907 |
-
|
4908 |
-
json.push((bArr ? "" : '"'+sProp+'":') + mValue);
|
4909 |
-
}
|
4910 |
-
|
4911 |
-
return (bArr ? "[" : "{") + json + (bArr ? "]" : "}");
|
4912 |
-
};
|
4913 |
-
|
4914 |
-
|
4915 |
-
/**
|
4916 |
-
* From some browsers (specifically IE6/7) we need special handling to work around browser
|
4917 |
-
* bugs - this function is used to detect when these workarounds are needed.
|
4918 |
-
* @param {object} oSettings dataTables settings object
|
4919 |
-
* @memberof DataTable#oApi
|
4920 |
-
*/
|
4921 |
-
function _fnBrowserDetect( oSettings )
|
4922 |
{
|
4923 |
-
|
4924 |
-
* width of the scrollbar, while other browsers ensure the inner element is contained
|
4925 |
-
* without forcing scrolling
|
4926 |
-
*/
|
4927 |
-
var n = $(
|
4928 |
-
'<div style="position:absolute; top:0; left:0; height:1px; width:1px; overflow:hidden">'+
|
4929 |
-
'<div style="position:absolute; top:1px; left:1px; width:100px; overflow:scroll;">'+
|
4930 |
-
'<div id="DT_BrowserTest" style="width:100%; height:10px;"></div>'+
|
4931 |
-
'</div>'+
|
4932 |
-
'</div>')[0];
|
4933 |
-
|
4934 |
-
document.body.appendChild( n );
|
4935 |
-
oSettings.oBrowser.bScrollOversize = $('#DT_BrowserTest', n)[0].offsetWidth === 100 ? true : false;
|
4936 |
-
document.body.removeChild( n );
|
4937 |
}
|
4938 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4939 |
|
|
|
|
|
4940 |
/**
|
4941 |
* Perform a jQuery selector action on the table's TR elements (from the tbody) and
|
4942 |
* return the resulting jQuery object.
|
@@ -4948,10 +5282,11 @@
|
|
4948 |
* Can be either 'current', whereby the current sorting of the table is used, or
|
4949 |
* 'original' whereby the original order the data was read into the table is used.
|
4950 |
* @param {string} [oOpts.page=all] Limit the selection to the currently displayed page
|
4951 |
-
* ("current") or not ("all"). If 'current' is given, then order is assumed to be
|
4952 |
* 'current' and filter is 'applied', regardless of what they might be given as.
|
4953 |
* @returns {object} jQuery object, filtered by the given selector.
|
4954 |
* @dtopt API
|
|
|
4955 |
*
|
4956 |
* @example
|
4957 |
* $(document).ready(function() {
|
@@ -4968,100 +5303,13 @@
|
|
4968 |
* // Filter to rows with 'Webkit' in them, add a background colour and then
|
4969 |
* // remove the filter, thus highlighting the 'Webkit' rows only.
|
4970 |
* oTable.fnFilter('Webkit');
|
4971 |
-
* oTable.$('tr', {"
|
4972 |
* oTable.fnFilter('');
|
4973 |
* } );
|
4974 |
*/
|
4975 |
this.$ = function ( sSelector, oOpts )
|
4976 |
{
|
4977 |
-
|
4978 |
-
var oSettings = _fnSettingsFromNode( this[DataTable.ext.iApiIndex] );
|
4979 |
-
var aoData = oSettings.aoData;
|
4980 |
-
var aiDisplay = oSettings.aiDisplay;
|
4981 |
-
var aiDisplayMaster = oSettings.aiDisplayMaster;
|
4982 |
-
|
4983 |
-
if ( !oOpts )
|
4984 |
-
{
|
4985 |
-
oOpts = {};
|
4986 |
-
}
|
4987 |
-
|
4988 |
-
oOpts = $.extend( {}, {
|
4989 |
-
"filter": "none", // applied
|
4990 |
-
"order": "current", // "original"
|
4991 |
-
"page": "all" // current
|
4992 |
-
}, oOpts );
|
4993 |
-
|
4994 |
-
// Current page implies that order=current and fitler=applied, since it is fairly
|
4995 |
-
// senseless otherwise
|
4996 |
-
if ( oOpts.page == 'current' )
|
4997 |
-
{
|
4998 |
-
for ( i=oSettings._iDisplayStart, iLen=oSettings.fnDisplayEnd() ; i<iLen ; i++ )
|
4999 |
-
{
|
5000 |
-
tr = aoData[ aiDisplay[i] ].nTr;
|
5001 |
-
if ( tr )
|
5002 |
-
{
|
5003 |
-
a.push( tr );
|
5004 |
-
}
|
5005 |
-
}
|
5006 |
-
}
|
5007 |
-
else if ( oOpts.order == "current" && oOpts.filter == "none" )
|
5008 |
-
{
|
5009 |
-
for ( i=0, iLen=aiDisplayMaster.length ; i<iLen ; i++ )
|
5010 |
-
{
|
5011 |
-
tr = aoData[ aiDisplayMaster[i] ].nTr;
|
5012 |
-
if ( tr )
|
5013 |
-
{
|
5014 |
-
a.push( tr );
|
5015 |
-
}
|
5016 |
-
}
|
5017 |
-
}
|
5018 |
-
else if ( oOpts.order == "current" && oOpts.filter == "applied" )
|
5019 |
-
{
|
5020 |
-
for ( i=0, iLen=aiDisplay.length ; i<iLen ; i++ )
|
5021 |
-
{
|
5022 |
-
tr = aoData[ aiDisplay[i] ].nTr;
|
5023 |
-
if ( tr )
|
5024 |
-
{
|
5025 |
-
a.push( tr );
|
5026 |
-
}
|
5027 |
-
}
|
5028 |
-
}
|
5029 |
-
else if ( oOpts.order == "original" && oOpts.filter == "none" )
|
5030 |
-
{
|
5031 |
-
for ( i=0, iLen=aoData.length ; i<iLen ; i++ )
|
5032 |
-
{
|
5033 |
-
tr = aoData[ i ].nTr ;
|
5034 |
-
if ( tr )
|
5035 |
-
{
|
5036 |
-
a.push( tr );
|
5037 |
-
}
|
5038 |
-
}
|
5039 |
-
}
|
5040 |
-
else if ( oOpts.order == "original" && oOpts.filter == "applied" )
|
5041 |
-
{
|
5042 |
-
for ( i=0, iLen=aoData.length ; i<iLen ; i++ )
|
5043 |
-
{
|
5044 |
-
tr = aoData[ i ].nTr;
|
5045 |
-
if ( $.inArray( i, aiDisplay ) !== -1 && tr )
|
5046 |
-
{
|
5047 |
-
a.push( tr );
|
5048 |
-
}
|
5049 |
-
}
|
5050 |
-
}
|
5051 |
-
else
|
5052 |
-
{
|
5053 |
-
_fnLog( oSettings, 1, "Unknown selection options" );
|
5054 |
-
}
|
5055 |
-
|
5056 |
-
/* We need to filter on the TR elements and also 'find' in their descendants
|
5057 |
-
* to make the selector act like it would in a full table - so we need
|
5058 |
-
* to build both results and then combine them together
|
5059 |
-
*/
|
5060 |
-
var jqA = $(a);
|
5061 |
-
var jqTRs = jqA.filter( sSelector );
|
5062 |
-
var jqDescendants = jqA.find( sSelector );
|
5063 |
-
|
5064 |
-
return $( [].concat($.makeArray(jqTRs), $.makeArray(jqDescendants)) );
|
5065 |
};
|
5066 |
|
5067 |
|
@@ -5069,7 +5317,7 @@
|
|
5069 |
* Almost identical to $ in operation, but in this case returns the data for the matched
|
5070 |
* rows - as such, the jQuery selector used should match TR row nodes or TD/TH cell nodes
|
5071 |
* rather than any descendants, so the data can be obtained for the row/cell. If matching
|
5072 |
-
* rows are found, the data returned is the original data array/object that was used to
|
5073 |
* create the row (or a generated array if from a DOM source).
|
5074 |
*
|
5075 |
* This method is often useful in-combination with $ where both functions are given the
|
@@ -5082,12 +5330,13 @@
|
|
5082 |
* Can be either 'current', whereby the current sorting of the table is used, or
|
5083 |
* 'original' whereby the original order the data was read into the table is used.
|
5084 |
* @param {string} [oOpts.page=all] Limit the selection to the currently displayed page
|
5085 |
-
* ("current") or not ("all"). If 'current' is given, then order is assumed to be
|
5086 |
* 'current' and filter is 'applied', regardless of what they might be given as.
|
5087 |
* @returns {array} Data for the matched elements. If any elements, as a result of the
|
5088 |
-
* selector, were not TR, TD or TH elements in the DataTable, they will have a null
|
5089 |
* entry in the array.
|
5090 |
* @dtopt API
|
|
|
5091 |
*
|
5092 |
* @example
|
5093 |
* $(document).ready(function() {
|
@@ -5104,55 +5353,66 @@
|
|
5104 |
* $(document).ready(function() {
|
5105 |
* var oTable = $('#example').dataTable();
|
5106 |
*
|
5107 |
-
* // Filter to 'Webkit' and get all data for
|
5108 |
* oTable.fnFilter('Webkit');
|
5109 |
-
* var data = oTable._('tr', {"
|
5110 |
-
*
|
5111 |
* // Do something with the data
|
5112 |
-
* alert( data.length+" rows matched the
|
5113 |
* } );
|
5114 |
*/
|
5115 |
this._ = function ( sSelector, oOpts )
|
5116 |
{
|
5117 |
-
|
5118 |
-
|
5119 |
-
var aTrs = this.$( sSelector, oOpts );
|
5120 |
|
5121 |
-
for ( i=0, iLen=aTrs.length ; i<iLen ; i++ )
|
5122 |
-
{
|
5123 |
-
aOut.push( this.fnGetData(aTrs[i]) );
|
5124 |
-
}
|
5125 |
|
5126 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5127 |
};
|
5128 |
|
5129 |
|
5130 |
/**
|
5131 |
* Add a single new row or multiple rows of data to the table. Please note
|
5132 |
-
* that this is suitable for client-side processing only - if you are using
|
5133 |
* server-side processing (i.e. "bServerSide": true), then to add data, you
|
5134 |
* must add it to the data source, i.e. the server-side, through an Ajax call.
|
5135 |
-
* @param {array|object}
|
5136 |
* <ul>
|
5137 |
* <li>1D array of data - add a single row with the data provided</li>
|
5138 |
* <li>2D array of arrays - add multiple rows in a single call</li>
|
5139 |
* <li>object - data object when using <i>mData</i></li>
|
5140 |
* <li>array of objects - multiple data objects when using <i>mData</i></li>
|
5141 |
* </ul>
|
5142 |
-
* @param {bool} [
|
5143 |
-
* @returns {array} An array of integers, representing the list of indexes in
|
5144 |
-
* <i>aoData</i> ({@link DataTable.models.oSettings}) that have been added to
|
5145 |
* the table.
|
5146 |
* @dtopt API
|
|
|
5147 |
*
|
5148 |
* @example
|
5149 |
* // Global var for counter
|
5150 |
* var giCount = 2;
|
5151 |
-
*
|
5152 |
* $(document).ready(function() {
|
5153 |
* $('#example').dataTable();
|
5154 |
* } );
|
5155 |
-
*
|
5156 |
* function fnClickAddRow() {
|
5157 |
* $('#example').dataTable().fnAddData( [
|
5158 |
* giCount+".1",
|
@@ -5160,63 +5420,35 @@
|
|
5160 |
* giCount+".3",
|
5161 |
* giCount+".4" ]
|
5162 |
* );
|
5163 |
-
*
|
5164 |
* giCount++;
|
5165 |
* }
|
5166 |
*/
|
5167 |
-
this.fnAddData = function(
|
5168 |
{
|
5169 |
-
|
5170 |
-
|
5171 |
-
return [];
|
5172 |
-
}
|
5173 |
-
|
5174 |
-
var aiReturn = [];
|
5175 |
-
var iTest;
|
5176 |
-
|
5177 |
-
/* Find settings from table node */
|
5178 |
-
var oSettings = _fnSettingsFromNode( this[DataTable.ext.iApiIndex] );
|
5179 |
-
|
5180 |
/* Check if we want to add multiple rows or not */
|
5181 |
-
|
5182 |
-
|
5183 |
-
|
5184 |
-
|
5185 |
-
|
5186 |
-
|
5187 |
-
{
|
5188 |
-
return aiReturn;
|
5189 |
-
}
|
5190 |
-
aiReturn.push( iTest );
|
5191 |
-
}
|
5192 |
-
}
|
5193 |
-
else
|
5194 |
-
{
|
5195 |
-
iTest = _fnAddData( oSettings, mData );
|
5196 |
-
if ( iTest == -1 )
|
5197 |
-
{
|
5198 |
-
return aiReturn;
|
5199 |
-
}
|
5200 |
-
aiReturn.push( iTest );
|
5201 |
-
}
|
5202 |
-
|
5203 |
-
oSettings.aiDisplay = oSettings.aiDisplayMaster.slice();
|
5204 |
-
|
5205 |
-
if ( bRedraw === undefined || bRedraw )
|
5206 |
-
{
|
5207 |
-
_fnReDraw( oSettings );
|
5208 |
}
|
5209 |
-
|
|
|
5210 |
};
|
5211 |
|
5212 |
|
5213 |
/**
|
5214 |
-
* This function will make DataTables recalculate the column sizes, based on the data
|
5215 |
-
* contained in the table and the sizes applied to the columns (in the DOM, CSS or
|
5216 |
-
* through the sWidth parameter). This can be useful when the width of the table's
|
5217 |
* parent element changes (for example a window resize).
|
5218 |
* @param {boolean} [bRedraw=true] Redraw the table or not, you will typically want to
|
5219 |
* @dtopt API
|
|
|
5220 |
*
|
5221 |
* @example
|
5222 |
* $(document).ready(function() {
|
@@ -5224,7 +5456,7 @@
|
|
5224 |
* "sScrollY": "200px",
|
5225 |
* "bPaginate": false
|
5226 |
* } );
|
5227 |
-
*
|
5228 |
* $(window).bind('resize', function () {
|
5229 |
* oTable.fnAdjustColumnSizing();
|
5230 |
* } );
|
@@ -5232,17 +5464,16 @@
|
|
5232 |
*/
|
5233 |
this.fnAdjustColumnSizing = function ( bRedraw )
|
5234 |
{
|
5235 |
-
var
|
5236 |
-
|
5237 |
-
|
5238 |
-
|
5239 |
-
{
|
5240 |
-
|
5241 |
}
|
5242 |
-
else if (
|
5243 |
-
{
|
5244 |
/* If not redrawing, but scrolling, we want to apply the new column sizes anyway */
|
5245 |
-
|
5246 |
}
|
5247 |
};
|
5248 |
|
@@ -5251,39 +5482,38 @@
|
|
5251 |
* Quickly and simply clear a table
|
5252 |
* @param {bool} [bRedraw=true] redraw the table or not
|
5253 |
* @dtopt API
|
|
|
5254 |
*
|
5255 |
* @example
|
5256 |
* $(document).ready(function() {
|
5257 |
* var oTable = $('#example').dataTable();
|
5258 |
-
*
|
5259 |
* // Immediately 'nuke' the current rows (perhaps waiting for an Ajax callback...)
|
5260 |
* oTable.fnClearTable();
|
5261 |
* } );
|
5262 |
*/
|
5263 |
this.fnClearTable = function( bRedraw )
|
5264 |
{
|
5265 |
-
|
5266 |
-
|
5267 |
-
|
5268 |
-
|
5269 |
-
if ( bRedraw === undefined || bRedraw )
|
5270 |
-
{
|
5271 |
-
_fnDraw( oSettings );
|
5272 |
}
|
5273 |
};
|
5274 |
|
5275 |
|
5276 |
/**
|
5277 |
-
* The exact opposite of 'opening' a row, this function will close any rows which
|
5278 |
* are currently 'open'.
|
5279 |
* @param {node} nTr the table row to 'close'
|
5280 |
* @returns {int} 0 on success, or 1 if failed (can't find the row)
|
5281 |
* @dtopt API
|
|
|
5282 |
*
|
5283 |
* @example
|
5284 |
* $(document).ready(function() {
|
5285 |
* var oTable;
|
5286 |
-
*
|
5287 |
* // 'open' an information row when a row is clicked on
|
5288 |
* $('#example tbody tr').click( function () {
|
5289 |
* if ( oTable.fnIsOpen(this) ) {
|
@@ -5292,110 +5522,61 @@
|
|
5292 |
* oTable.fnOpen( this, "Temporary row opened", "info_row" );
|
5293 |
* }
|
5294 |
* } );
|
5295 |
-
*
|
5296 |
* oTable = $('#example').dataTable();
|
5297 |
* } );
|
5298 |
*/
|
5299 |
this.fnClose = function( nTr )
|
5300 |
{
|
5301 |
-
|
5302 |
-
var oSettings = _fnSettingsFromNode( this[DataTable.ext.iApiIndex] );
|
5303 |
-
|
5304 |
-
for ( var i=0 ; i<oSettings.aoOpenRows.length ; i++ )
|
5305 |
-
{
|
5306 |
-
if ( oSettings.aoOpenRows[i].nParent == nTr )
|
5307 |
-
{
|
5308 |
-
var nTrParent = oSettings.aoOpenRows[i].nTr.parentNode;
|
5309 |
-
if ( nTrParent )
|
5310 |
-
{
|
5311 |
-
/* Remove it if it is currently on display */
|
5312 |
-
nTrParent.removeChild( oSettings.aoOpenRows[i].nTr );
|
5313 |
-
}
|
5314 |
-
oSettings.aoOpenRows.splice( i, 1 );
|
5315 |
-
return 0;
|
5316 |
-
}
|
5317 |
-
}
|
5318 |
-
return 1;
|
5319 |
};
|
5320 |
|
5321 |
|
5322 |
/**
|
5323 |
* Remove a row for the table
|
5324 |
-
* @param {mixed}
|
5325 |
* the TR element you want to delete
|
5326 |
-
* @param {function|null} [
|
5327 |
-
* @param {bool} [
|
5328 |
* @returns {array} The row that was deleted
|
5329 |
* @dtopt API
|
|
|
5330 |
*
|
5331 |
* @example
|
5332 |
* $(document).ready(function() {
|
5333 |
* var oTable = $('#example').dataTable();
|
5334 |
-
*
|
5335 |
* // Immediately remove the first row
|
5336 |
* oTable.fnDeleteRow( 0 );
|
5337 |
* } );
|
5338 |
*/
|
5339 |
-
this.fnDeleteRow = function(
|
5340 |
{
|
5341 |
-
|
5342 |
-
var
|
5343 |
-
var
|
5344 |
-
|
5345 |
-
iAODataIndex = (typeof mTarget === 'object') ?
|
5346 |
-
_fnNodeToDataIndex(oSettings, mTarget) : mTarget;
|
5347 |
-
|
5348 |
-
/* Return the data array from this row */
|
5349 |
-
var oData = oSettings.aoData.splice( iAODataIndex, 1 );
|
5350 |
|
5351 |
-
|
5352 |
-
|
5353 |
-
{
|
5354 |
-
|
5355 |
-
{
|
5356 |
-
oSettings.aoData[i].nTr._DT_RowIndex = i;
|
5357 |
-
}
|
5358 |
-
}
|
5359 |
-
|
5360 |
-
/* Remove the target row from the search array */
|
5361 |
-
var iDisplayIndex = $.inArray( iAODataIndex, oSettings.aiDisplay );
|
5362 |
-
oSettings.asDataSearch.splice( iDisplayIndex, 1 );
|
5363 |
-
|
5364 |
-
/* Delete from the display arrays */
|
5365 |
-
_fnDeleteIndex( oSettings.aiDisplayMaster, iAODataIndex );
|
5366 |
-
_fnDeleteIndex( oSettings.aiDisplay, iAODataIndex );
|
5367 |
-
|
5368 |
-
/* If there is a user callback function - call it */
|
5369 |
-
if ( typeof fnCallBack === "function" )
|
5370 |
-
{
|
5371 |
-
fnCallBack.call( this, oSettings, oData );
|
5372 |
-
}
|
5373 |
-
|
5374 |
-
/* Check for an 'overflow' they case for displaying the table */
|
5375 |
-
if ( oSettings._iDisplayStart >= oSettings.fnRecordsDisplay() )
|
5376 |
-
{
|
5377 |
-
oSettings._iDisplayStart -= oSettings._iDisplayLength;
|
5378 |
-
if ( oSettings._iDisplayStart < 0 )
|
5379 |
-
{
|
5380 |
-
oSettings._iDisplayStart = 0;
|
5381 |
-
}
|
5382 |
}
|
5383 |
-
|
5384 |
-
if (
|
5385 |
-
|
5386 |
-
_fnCalculateEnd( oSettings );
|
5387 |
-
_fnDraw( oSettings );
|
5388 |
}
|
5389 |
-
|
5390 |
-
return
|
5391 |
};
|
5392 |
|
5393 |
|
5394 |
/**
|
5395 |
-
* Restore the table to it's original state in the DOM by removing all of DataTables
|
5396 |
* enhancements, alterations to the DOM structure of the table and event listeners.
|
5397 |
-
* @param {boolean} [
|
5398 |
* @dtopt API
|
|
|
5399 |
*
|
5400 |
* @example
|
5401 |
* $(document).ready(function() {
|
@@ -5404,159 +5585,31 @@
|
|
5404 |
* oTable.fnDestroy();
|
5405 |
* } );
|
5406 |
*/
|
5407 |
-
this.fnDestroy = function (
|
5408 |
{
|
5409 |
-
|
5410 |
-
var nOrig = oSettings.nTableWrapper.parentNode;
|
5411 |
-
var nBody = oSettings.nTBody;
|
5412 |
-
var i, iLen;
|
5413 |
-
|
5414 |
-
bRemove = (bRemove===undefined) ? false : bRemove;
|
5415 |
-
|
5416 |
-
/* Flag to note that the table is currently being destroyed - no action should be taken */
|
5417 |
-
oSettings.bDestroying = true;
|
5418 |
-
|
5419 |
-
/* Fire off the destroy callbacks for plug-ins etc */
|
5420 |
-
_fnCallbackFire( oSettings, "aoDestroyCallback", "destroy", [oSettings] );
|
5421 |
-
|
5422 |
-
/* If the table is not being removed, restore the hidden columns */
|
5423 |
-
if ( !bRemove )
|
5424 |
-
{
|
5425 |
-
for ( i=0, iLen=oSettings.aoColumns.length ; i<iLen ; i++ )
|
5426 |
-
{
|
5427 |
-
if ( oSettings.aoColumns[i].bVisible === false )
|
5428 |
-
{
|
5429 |
-
this.fnSetColumnVis( i, true );
|
5430 |
-
}
|
5431 |
-
}
|
5432 |
-
}
|
5433 |
-
|
5434 |
-
/* Blitz all DT events */
|
5435 |
-
$(oSettings.nTableWrapper).find('*').andSelf().unbind('.DT');
|
5436 |
-
|
5437 |
-
/* If there is an 'empty' indicator row, remove it */
|
5438 |
-
$('tbody>tr>td.'+oSettings.oClasses.sRowEmpty, oSettings.nTable).parent().remove();
|
5439 |
-
|
5440 |
-
/* When scrolling we had to break the table up - restore it */
|
5441 |
-
if ( oSettings.nTable != oSettings.nTHead.parentNode )
|
5442 |
-
{
|
5443 |
-
$(oSettings.nTable).children('thead').remove();
|
5444 |
-
oSettings.nTable.appendChild( oSettings.nTHead );
|
5445 |
-
}
|
5446 |
-
|
5447 |
-
if ( oSettings.nTFoot && oSettings.nTable != oSettings.nTFoot.parentNode )
|
5448 |
-
{
|
5449 |
-
$(oSettings.nTable).children('tfoot').remove();
|
5450 |
-
oSettings.nTable.appendChild( oSettings.nTFoot );
|
5451 |
-
}
|
5452 |
-
|
5453 |
-
/* Remove the DataTables generated nodes, events and classes */
|
5454 |
-
oSettings.nTable.parentNode.removeChild( oSettings.nTable );
|
5455 |
-
$(oSettings.nTableWrapper).remove();
|
5456 |
-
|
5457 |
-
oSettings.aaSorting = [];
|
5458 |
-
oSettings.aaSortingFixed = [];
|
5459 |
-
_fnSortingClasses( oSettings );
|
5460 |
-
|
5461 |
-
$(_fnGetTrNodes( oSettings )).removeClass( oSettings.asStripeClasses.join(' ') );
|
5462 |
-
|
5463 |
-
$('th, td', oSettings.nTHead).removeClass( [
|
5464 |
-
oSettings.oClasses.sSortable,
|
5465 |
-
oSettings.oClasses.sSortableAsc,
|
5466 |
-
oSettings.oClasses.sSortableDesc,
|
5467 |
-
oSettings.oClasses.sSortableNone ].join(' ')
|
5468 |
-
);
|
5469 |
-
if ( oSettings.bJUI )
|
5470 |
-
{
|
5471 |
-
$('th span.'+oSettings.oClasses.sSortIcon
|
5472 |
-
+ ', td span.'+oSettings.oClasses.sSortIcon, oSettings.nTHead).remove();
|
5473 |
-
|
5474 |
-
$('th, td', oSettings.nTHead).each( function () {
|
5475 |
-
var jqWrapper = $('div.'+oSettings.oClasses.sSortJUIWrapper, this);
|
5476 |
-
var kids = jqWrapper.contents();
|
5477 |
-
$(this).append( kids );
|
5478 |
-
jqWrapper.remove();
|
5479 |
-
} );
|
5480 |
-
}
|
5481 |
-
|
5482 |
-
/* Add the TR elements back into the table in their original order */
|
5483 |
-
if ( !bRemove && oSettings.nTableReinsertBefore )
|
5484 |
-
{
|
5485 |
-
nOrig.insertBefore( oSettings.nTable, oSettings.nTableReinsertBefore );
|
5486 |
-
}
|
5487 |
-
else if ( !bRemove )
|
5488 |
-
{
|
5489 |
-
nOrig.appendChild( oSettings.nTable );
|
5490 |
-
}
|
5491 |
-
|
5492 |
-
for ( i=0, iLen=oSettings.aoData.length ; i<iLen ; i++ )
|
5493 |
-
{
|
5494 |
-
if ( oSettings.aoData[i].nTr !== null )
|
5495 |
-
{
|
5496 |
-
nBody.appendChild( oSettings.aoData[i].nTr );
|
5497 |
-
}
|
5498 |
-
}
|
5499 |
-
|
5500 |
-
/* Restore the width of the original table */
|
5501 |
-
if ( oSettings.oFeatures.bAutoWidth === true )
|
5502 |
-
{
|
5503 |
-
oSettings.nTable.style.width = _fnStringToCss(oSettings.sDestroyWidth);
|
5504 |
-
}
|
5505 |
-
|
5506 |
-
/* If the were originally stripe classes - then we add them back here. Note
|
5507 |
-
* this is not fool proof (for example if not all rows had stripe classes - but
|
5508 |
-
* it's a good effort without getting carried away
|
5509 |
-
*/
|
5510 |
-
iLen = oSettings.asDestroyStripes.length;
|
5511 |
-
if (iLen)
|
5512 |
-
{
|
5513 |
-
var anRows = $(nBody).children('tr');
|
5514 |
-
for ( i=0 ; i<iLen ; i++ )
|
5515 |
-
{
|
5516 |
-
anRows.filter(':nth-child(' + iLen + 'n + ' + i + ')').addClass( oSettings.asDestroyStripes[i] );
|
5517 |
-
}
|
5518 |
-
}
|
5519 |
-
|
5520 |
-
/* Remove the settings object from the settings array */
|
5521 |
-
for ( i=0, iLen=DataTable.settings.length ; i<iLen ; i++ )
|
5522 |
-
{
|
5523 |
-
if ( DataTable.settings[i] == oSettings )
|
5524 |
-
{
|
5525 |
-
DataTable.settings.splice( i, 1 );
|
5526 |
-
}
|
5527 |
-
}
|
5528 |
-
|
5529 |
-
/* End it all */
|
5530 |
-
oSettings = null;
|
5531 |
-
oInit = null;
|
5532 |
};
|
5533 |
|
5534 |
|
5535 |
/**
|
5536 |
* Redraw the table
|
5537 |
-
* @param {bool} [
|
5538 |
* @dtopt API
|
|
|
5539 |
*
|
5540 |
* @example
|
5541 |
* $(document).ready(function() {
|
5542 |
* var oTable = $('#example').dataTable();
|
5543 |
-
*
|
5544 |
* // Re-draw the table - you wouldn't want to do it here, but it's an example :-)
|
5545 |
* oTable.fnDraw();
|
5546 |
* } );
|
5547 |
*/
|
5548 |
-
this.fnDraw = function(
|
5549 |
{
|
5550 |
-
|
5551 |
-
|
5552 |
-
|
5553 |
-
_fnCalculateEnd( oSettings );
|
5554 |
-
_fnDraw( oSettings );
|
5555 |
-
}
|
5556 |
-
else
|
5557 |
-
{
|
5558 |
-
_fnReDraw( oSettings );
|
5559 |
-
}
|
5560 |
};
|
5561 |
|
5562 |
|
@@ -5569,100 +5622,45 @@
|
|
5569 |
* @param {bool} [bShowGlobal=true] Show the input global filter in it's input box(es)
|
5570 |
* @param {bool} [bCaseInsensitive=true] Do case-insensitive matching (true) or not (false)
|
5571 |
* @dtopt API
|
|
|
5572 |
*
|
5573 |
* @example
|
5574 |
* $(document).ready(function() {
|
5575 |
* var oTable = $('#example').dataTable();
|
5576 |
-
*
|
5577 |
* // Sometime later - filter...
|
5578 |
* oTable.fnFilter( 'test string' );
|
5579 |
* } );
|
5580 |
*/
|
5581 |
this.fnFilter = function( sInput, iColumn, bRegex, bSmart, bShowGlobal, bCaseInsensitive )
|
5582 |
{
|
5583 |
-
var
|
5584 |
-
|
5585 |
-
if (
|
5586 |
-
|
5587 |
-
return;
|
5588 |
-
}
|
5589 |
-
|
5590 |
-
if ( bRegex === undefined || bRegex === null )
|
5591 |
-
{
|
5592 |
-
bRegex = false;
|
5593 |
-
}
|
5594 |
-
|
5595 |
-
if ( bSmart === undefined || bSmart === null )
|
5596 |
-
{
|
5597 |
-
bSmart = true;
|
5598 |
-
}
|
5599 |
-
|
5600 |
-
if ( bShowGlobal === undefined || bShowGlobal === null )
|
5601 |
-
{
|
5602 |
-
bShowGlobal = true;
|
5603 |
-
}
|
5604 |
-
|
5605 |
-
if ( bCaseInsensitive === undefined || bCaseInsensitive === null )
|
5606 |
-
{
|
5607 |
-
bCaseInsensitive = true;
|
5608 |
-
}
|
5609 |
-
|
5610 |
-
if ( iColumn === undefined || iColumn === null )
|
5611 |
-
{
|
5612 |
-
/* Global filter */
|
5613 |
-
_fnFilterComplete( oSettings, {
|
5614 |
-
"sSearch":sInput+"",
|
5615 |
-
"bRegex": bRegex,
|
5616 |
-
"bSmart": bSmart,
|
5617 |
-
"bCaseInsensitive": bCaseInsensitive
|
5618 |
-
}, 1 );
|
5619 |
-
|
5620 |
-
if ( bShowGlobal && oSettings.aanFeatures.f )
|
5621 |
-
{
|
5622 |
-
var n = oSettings.aanFeatures.f;
|
5623 |
-
for ( var i=0, iLen=n.length ; i<iLen ; i++ )
|
5624 |
-
{
|
5625 |
-
// IE9 throws an 'unknown error' if document.activeElement is used
|
5626 |
-
// inside an iframe or frame...
|
5627 |
-
try {
|
5628 |
-
if ( n[i]._DT_Input != document.activeElement )
|
5629 |
-
{
|
5630 |
-
$(n[i]._DT_Input).val( sInput );
|
5631 |
-
}
|
5632 |
-
}
|
5633 |
-
catch ( e ) {
|
5634 |
-
$(n[i]._DT_Input).val( sInput );
|
5635 |
-
}
|
5636 |
-
}
|
5637 |
-
}
|
5638 |
}
|
5639 |
-
else
|
5640 |
-
|
5641 |
-
/* Single column filter */
|
5642 |
-
$.extend( oSettings.aoPreSearchCols[ iColumn ], {
|
5643 |
-
"sSearch": sInput+"",
|
5644 |
-
"bRegex": bRegex,
|
5645 |
-
"bSmart": bSmart,
|
5646 |
-
"bCaseInsensitive": bCaseInsensitive
|
5647 |
-
} );
|
5648 |
-
_fnFilterComplete( oSettings, oSettings.oPreviousSearch, 1 );
|
5649 |
}
|
|
|
|
|
5650 |
};
|
5651 |
|
5652 |
|
5653 |
/**
|
5654 |
-
* Get the data for the whole table, an individual row or an individual cell based on the
|
5655 |
* provided parameters.
|
5656 |
-
* @param {int|node} [
|
5657 |
* a TR node then the data source for the whole row will be returned. If given as a
|
5658 |
* TD/TH cell node then iCol will be automatically calculated and the data for the
|
5659 |
* cell returned. If given as an integer, then this is treated as the aoData internal
|
5660 |
* data index for the row (see fnGetPosition) and the data for that row used.
|
5661 |
-
* @param {int} [
|
5662 |
* @returns {array|object|string} If mRow is undefined, then the data for all rows is
|
5663 |
* returned. If mRow is defined, just data for that row, and is iCol is
|
5664 |
* defined, only data for the designated cell is returned.
|
5665 |
* @dtopt API
|
|
|
5666 |
*
|
5667 |
* @example
|
5668 |
* // Row data
|
@@ -5686,108 +5684,94 @@
|
|
5686 |
* } );
|
5687 |
* } );
|
5688 |
*/
|
5689 |
-
this.fnGetData = function(
|
5690 |
{
|
5691 |
-
var
|
5692 |
-
|
5693 |
-
if ( mRow !== undefined )
|
5694 |
-
{
|
5695 |
-
var iRow = mRow;
|
5696 |
-
if ( typeof mRow === 'object' )
|
5697 |
-
{
|
5698 |
-
var sNode = mRow.nodeName.toLowerCase();
|
5699 |
-
if (sNode === "tr" )
|
5700 |
-
{
|
5701 |
-
iRow = _fnNodeToDataIndex(oSettings, mRow);
|
5702 |
-
}
|
5703 |
-
else if ( sNode === "td" )
|
5704 |
-
{
|
5705 |
-
iRow = _fnNodeToDataIndex(oSettings, mRow.parentNode);
|
5706 |
-
iCol = _fnNodeToColumnIndex( oSettings, iRow, mRow );
|
5707 |
-
}
|
5708 |
-
}
|
5709 |
|
5710 |
-
|
5711 |
-
|
5712 |
-
|
5713 |
-
|
5714 |
-
|
5715 |
-
|
5716 |
}
|
5717 |
-
|
|
|
5718 |
};
|
5719 |
|
5720 |
|
5721 |
/**
|
5722 |
-
* Get an array of the TR nodes that are used in the table's body. Note that you will
|
5723 |
-
* typically want to use the '$' API method in preference to this as it is more
|
5724 |
* flexible.
|
5725 |
* @param {int} [iRow] Optional row index for the TR element you want
|
5726 |
* @returns {array|node} If iRow is undefined, returns an array of all TR elements
|
5727 |
* in the table's body, or iRow is defined, just the TR element requested.
|
5728 |
* @dtopt API
|
|
|
5729 |
*
|
5730 |
* @example
|
5731 |
* $(document).ready(function() {
|
5732 |
* var oTable = $('#example').dataTable();
|
5733 |
-
*
|
5734 |
* // Get the nodes from the table
|
5735 |
* var nNodes = oTable.fnGetNodes( );
|
5736 |
* } );
|
5737 |
*/
|
5738 |
this.fnGetNodes = function( iRow )
|
5739 |
{
|
5740 |
-
var
|
5741 |
-
|
5742 |
-
|
5743 |
-
|
5744 |
-
|
5745 |
-
}
|
5746 |
-
return _fnGetTrNodes( oSettings );
|
5747 |
};
|
5748 |
|
5749 |
|
5750 |
/**
|
5751 |
* Get the array indexes of a particular cell from it's DOM element
|
5752 |
* and column index including hidden columns
|
5753 |
-
* @param {node}
|
5754 |
* @returns {int} If nNode is given as a TR, then a single index is returned, or
|
5755 |
-
* if given as a cell, an array of [row index, column index (visible),
|
5756 |
* column index (all)] is given.
|
5757 |
* @dtopt API
|
|
|
5758 |
*
|
5759 |
* @example
|
5760 |
* $(document).ready(function() {
|
5761 |
* $('#example tbody td').click( function () {
|
5762 |
* // Get the position of the current data from the node
|
5763 |
* var aPos = oTable.fnGetPosition( this );
|
5764 |
-
*
|
5765 |
* // Get the data array for this row
|
5766 |
* var aData = oTable.fnGetData( aPos[0] );
|
5767 |
-
*
|
5768 |
* // Update the data array and return the value
|
5769 |
* aData[ aPos[1] ] = 'clicked';
|
5770 |
* this.innerHTML = 'clicked';
|
5771 |
* } );
|
5772 |
-
*
|
5773 |
* // Init DataTables
|
5774 |
* oTable = $('#example').dataTable();
|
5775 |
* } );
|
5776 |
*/
|
5777 |
-
this.fnGetPosition = function(
|
5778 |
{
|
5779 |
-
var
|
5780 |
-
var
|
5781 |
-
|
5782 |
-
if (
|
5783 |
-
|
5784 |
-
return _fnNodeToDataIndex(oSettings, nNode);
|
5785 |
}
|
5786 |
-
else if (
|
5787 |
-
|
5788 |
-
|
5789 |
-
|
5790 |
-
|
|
|
|
|
|
|
5791 |
}
|
5792 |
return null;
|
5793 |
};
|
@@ -5798,11 +5782,12 @@
|
|
5798 |
* @param {node} nTr the table row to check
|
5799 |
* @returns {boolean} true if the row is currently open, false otherwise
|
5800 |
* @dtopt API
|
|
|
5801 |
*
|
5802 |
* @example
|
5803 |
* $(document).ready(function() {
|
5804 |
* var oTable;
|
5805 |
-
*
|
5806 |
* // 'open' an information row when a row is clicked on
|
5807 |
* $('#example tbody tr').click( function () {
|
5808 |
* if ( oTable.fnIsOpen(this) ) {
|
@@ -5811,30 +5796,20 @@
|
|
5811 |
* oTable.fnOpen( this, "Temporary row opened", "info_row" );
|
5812 |
* }
|
5813 |
* } );
|
5814 |
-
*
|
5815 |
* oTable = $('#example').dataTable();
|
5816 |
* } );
|
5817 |
*/
|
5818 |
this.fnIsOpen = function( nTr )
|
5819 |
{
|
5820 |
-
|
5821 |
-
var aoOpenRows = oSettings.aoOpenRows;
|
5822 |
-
|
5823 |
-
for ( var i=0 ; i<oSettings.aoOpenRows.length ; i++ )
|
5824 |
-
{
|
5825 |
-
if ( oSettings.aoOpenRows[i].nParent == nTr )
|
5826 |
-
{
|
5827 |
-
return true;
|
5828 |
-
}
|
5829 |
-
}
|
5830 |
-
return false;
|
5831 |
};
|
5832 |
|
5833 |
|
5834 |
/**
|
5835 |
-
* This function will place a new row directly after a row which is currently
|
5836 |
-
* on display on the page, with the HTML contents that is passed into the
|
5837 |
-
* function. This can be used, for example, to ask for confirmation that a
|
5838 |
* particular record should be deleted.
|
5839 |
* @param {node} nTr The table row to 'open'
|
5840 |
* @param {string|node|jQuery} mHtml The HTML to put into the row
|
@@ -5843,11 +5818,12 @@
|
|
5843 |
* first parameter, is not found in the table, this method will silently
|
5844 |
* return.
|
5845 |
* @dtopt API
|
|
|
5846 |
*
|
5847 |
* @example
|
5848 |
* $(document).ready(function() {
|
5849 |
* var oTable;
|
5850 |
-
*
|
5851 |
* // 'open' an information row when a row is clicked on
|
5852 |
* $('#example tbody tr').click( function () {
|
5853 |
* if ( oTable.fnIsOpen(this) ) {
|
@@ -5856,64 +5832,29 @@
|
|
5856 |
* oTable.fnOpen( this, "Temporary row opened", "info_row" );
|
5857 |
* }
|
5858 |
* } );
|
5859 |
-
*
|
5860 |
* oTable = $('#example').dataTable();
|
5861 |
* } );
|
5862 |
*/
|
5863 |
this.fnOpen = function( nTr, mHtml, sClass )
|
5864 |
{
|
5865 |
-
|
5866 |
-
|
5867 |
-
|
5868 |
-
|
5869 |
-
|
5870 |
-
if ( $.inArray(nTr, nTableRows) === -1 )
|
5871 |
-
{
|
5872 |
-
return;
|
5873 |
-
}
|
5874 |
-
|
5875 |
-
/* the old open one if there is one */
|
5876 |
-
this.fnClose( nTr );
|
5877 |
-
|
5878 |
-
var nNewRow = document.createElement("tr");
|
5879 |
-
var nNewCell = document.createElement("td");
|
5880 |
-
nNewRow.appendChild( nNewCell );
|
5881 |
-
nNewCell.className = sClass;
|
5882 |
-
nNewCell.colSpan = _fnVisbleColumns( oSettings );
|
5883 |
-
|
5884 |
-
if (typeof mHtml === "string")
|
5885 |
-
{
|
5886 |
-
nNewCell.innerHTML = mHtml;
|
5887 |
-
}
|
5888 |
-
else
|
5889 |
-
{
|
5890 |
-
$(nNewCell).html( mHtml );
|
5891 |
-
}
|
5892 |
-
|
5893 |
-
/* If the nTr isn't on the page at the moment - then we don't insert at the moment */
|
5894 |
-
var nTrs = $('tr', oSettings.nTBody);
|
5895 |
-
if ( $.inArray(nTr, nTrs) != -1 )
|
5896 |
-
{
|
5897 |
-
$(nNewRow).insertAfter(nTr);
|
5898 |
-
}
|
5899 |
-
|
5900 |
-
oSettings.aoOpenRows.push( {
|
5901 |
-
"nTr": nNewRow,
|
5902 |
-
"nParent": nTr
|
5903 |
-
} );
|
5904 |
-
|
5905 |
-
return nNewRow;
|
5906 |
};
|
5907 |
|
5908 |
|
5909 |
/**
|
5910 |
-
* Change the pagination - provides the internal logic for pagination in a simple API
|
5911 |
-
* function. With this function you can have a DataTables table go to the next,
|
5912 |
* previous, first or last pages.
|
5913 |
* @param {string|int} mAction Paging action to take: "first", "previous", "next" or "last"
|
5914 |
* or page number to jump to (integer), note that page 0 is the first page.
|
5915 |
* @param {bool} [bRedraw=true] Redraw the table or not
|
5916 |
* @dtopt API
|
|
|
5917 |
*
|
5918 |
* @example
|
5919 |
* $(document).ready(function() {
|
@@ -5923,13 +5864,10 @@
|
|
5923 |
*/
|
5924 |
this.fnPageChange = function ( mAction, bRedraw )
|
5925 |
{
|
5926 |
-
var
|
5927 |
-
|
5928 |
-
|
5929 |
-
|
5930 |
-
if ( bRedraw === undefined || bRedraw )
|
5931 |
-
{
|
5932 |
-
_fnDraw( oSettings );
|
5933 |
}
|
5934 |
};
|
5935 |
|
@@ -5940,159 +5878,66 @@
|
|
5940 |
* @param {bool} bShow Show (true) or hide (false) the column
|
5941 |
* @param {bool} [bRedraw=true] Redraw the table or not
|
5942 |
* @dtopt API
|
|
|
5943 |
*
|
5944 |
* @example
|
5945 |
* $(document).ready(function() {
|
5946 |
* var oTable = $('#example').dataTable();
|
5947 |
-
*
|
5948 |
* // Hide the second column after initialisation
|
5949 |
* oTable.fnSetColumnVis( 1, false );
|
5950 |
* } );
|
5951 |
*/
|
5952 |
this.fnSetColumnVis = function ( iCol, bShow, bRedraw )
|
5953 |
{
|
5954 |
-
var
|
5955 |
-
var i, iLen;
|
5956 |
-
var aoColumns = oSettings.aoColumns;
|
5957 |
-
var aoData = oSettings.aoData;
|
5958 |
-
var nTd, bAppend, iBefore;
|
5959 |
-
|
5960 |
-
/* No point in doing anything if we are requesting what is already true */
|
5961 |
-
if ( aoColumns[iCol].bVisible == bShow )
|
5962 |
-
{
|
5963 |
-
return;
|
5964 |
-
}
|
5965 |
-
|
5966 |
-
/* Show the column */
|
5967 |
-
if ( bShow )
|
5968 |
-
{
|
5969 |
-
var iInsert = 0;
|
5970 |
-
for ( i=0 ; i<iCol ; i++ )
|
5971 |
-
{
|
5972 |
-
if ( aoColumns[i].bVisible )
|
5973 |
-
{
|
5974 |
-
iInsert++;
|
5975 |
-
}
|
5976 |
-
}
|
5977 |
-
|
5978 |
-
/* Need to decide if we should use appendChild or insertBefore */
|
5979 |
-
bAppend = (iInsert >= _fnVisbleColumns( oSettings ));
|
5980 |
|
5981 |
-
|
5982 |
-
|
5983 |
-
{
|
5984 |
-
for ( i=iCol ; i<aoColumns.length ; i++ )
|
5985 |
-
{
|
5986 |
-
if ( aoColumns[i].bVisible )
|
5987 |
-
{
|
5988 |
-
iBefore = i;
|
5989 |
-
break;
|
5990 |
-
}
|
5991 |
-
}
|
5992 |
-
}
|
5993 |
-
|
5994 |
-
for ( i=0, iLen=aoData.length ; i<iLen ; i++ )
|
5995 |
-
{
|
5996 |
-
if ( aoData[i].nTr !== null )
|
5997 |
-
{
|
5998 |
-
if ( bAppend )
|
5999 |
-
{
|
6000 |
-
aoData[i].nTr.appendChild(
|
6001 |
-
aoData[i]._anHidden[iCol]
|
6002 |
-
);
|
6003 |
-
}
|
6004 |
-
else
|
6005 |
-
{
|
6006 |
-
aoData[i].nTr.insertBefore(
|
6007 |
-
aoData[i]._anHidden[iCol],
|
6008 |
-
_fnGetTdNodes( oSettings, i )[iBefore] );
|
6009 |
-
}
|
6010 |
-
}
|
6011 |
-
}
|
6012 |
-
}
|
6013 |
-
else
|
6014 |
-
{
|
6015 |
-
/* Remove a column from display */
|
6016 |
-
for ( i=0, iLen=aoData.length ; i<iLen ; i++ )
|
6017 |
-
{
|
6018 |
-
if ( aoData[i].nTr !== null )
|
6019 |
-
{
|
6020 |
-
nTd = _fnGetTdNodes( oSettings, i )[iCol];
|
6021 |
-
aoData[i]._anHidden[iCol] = nTd;
|
6022 |
-
nTd.parentNode.removeChild( nTd );
|
6023 |
-
}
|
6024 |
-
}
|
6025 |
-
}
|
6026 |
-
|
6027 |
-
/* Clear to set the visible flag */
|
6028 |
-
aoColumns[iCol].bVisible = bShow;
|
6029 |
-
|
6030 |
-
/* Redraw the header and footer based on the new column visibility */
|
6031 |
-
_fnDrawHead( oSettings, oSettings.aoHeader );
|
6032 |
-
if ( oSettings.nTFoot )
|
6033 |
-
{
|
6034 |
-
_fnDrawHead( oSettings, oSettings.aoFooter );
|
6035 |
-
}
|
6036 |
-
|
6037 |
-
/* If there are any 'open' rows, then we need to alter the colspan for this col change */
|
6038 |
-
for ( i=0, iLen=oSettings.aoOpenRows.length ; i<iLen ; i++ )
|
6039 |
-
{
|
6040 |
-
oSettings.aoOpenRows[i].nTr.colSpan = _fnVisbleColumns( oSettings );
|
6041 |
-
}
|
6042 |
-
|
6043 |
-
/* Do a redraw incase anything depending on the table columns needs it
|
6044 |
-
* (built-in: scrolling)
|
6045 |
-
*/
|
6046 |
-
if ( bRedraw === undefined || bRedraw )
|
6047 |
-
{
|
6048 |
-
_fnAdjustColumnSizing( oSettings );
|
6049 |
-
_fnDraw( oSettings );
|
6050 |
}
|
6051 |
-
|
6052 |
-
_fnSaveState( oSettings );
|
6053 |
};
|
6054 |
|
6055 |
|
6056 |
/**
|
6057 |
* Get the settings for a particular table for external manipulation
|
6058 |
-
* @returns {object} DataTables settings object. See
|
6059 |
* {@link DataTable.models.oSettings}
|
6060 |
* @dtopt API
|
|
|
6061 |
*
|
6062 |
* @example
|
6063 |
* $(document).ready(function() {
|
6064 |
* var oTable = $('#example').dataTable();
|
6065 |
* var oSettings = oTable.fnSettings();
|
6066 |
-
*
|
6067 |
* // Show an example parameter from the settings
|
6068 |
* alert( oSettings._iDisplayStart );
|
6069 |
* } );
|
6070 |
*/
|
6071 |
this.fnSettings = function()
|
6072 |
{
|
6073 |
-
return _fnSettingsFromNode( this[
|
6074 |
};
|
6075 |
|
6076 |
|
6077 |
/**
|
6078 |
* Sort the table by a particular column
|
6079 |
-
* @param {int} iCol the data index to sort on. Note that this will not match the
|
6080 |
* 'display index' if you have hidden data entries
|
6081 |
* @dtopt API
|
|
|
6082 |
*
|
6083 |
* @example
|
6084 |
* $(document).ready(function() {
|
6085 |
* var oTable = $('#example').dataTable();
|
6086 |
-
*
|
6087 |
* // Sort immediately with columns 0 and 1
|
6088 |
* oTable.fnSort( [ [0,'asc'], [1,'asc'] ] );
|
6089 |
* } );
|
6090 |
*/
|
6091 |
this.fnSort = function( aaSort )
|
6092 |
{
|
6093 |
-
|
6094 |
-
oSettings.aaSorting = aaSort;
|
6095 |
-
_fnSort( oSettings );
|
6096 |
};
|
6097 |
|
6098 |
|
@@ -6102,19 +5947,19 @@
|
|
6102 |
* @param {int} iColumn the column that a click on this node will sort on
|
6103 |
* @param {function} [fnCallback] callback function when sort is run
|
6104 |
* @dtopt API
|
|
|
6105 |
*
|
6106 |
* @example
|
6107 |
* $(document).ready(function() {
|
6108 |
* var oTable = $('#example').dataTable();
|
6109 |
-
*
|
6110 |
* // Sort on column 1, when 'sorter' is clicked on
|
6111 |
* oTable.fnSortListener( document.getElementById('sorter'), 1 );
|
6112 |
* } );
|
6113 |
*/
|
6114 |
this.fnSortListener = function( nNode, iColumn, fnCallback )
|
6115 |
{
|
6116 |
-
|
6117 |
-
fnCallback );
|
6118 |
};
|
6119 |
|
6120 |
|
@@ -6125,89 +5970,38 @@
|
|
6125 |
* self-referencing in order to make the multi column updates easier.
|
6126 |
* @param {object|array|string} mData Data to update the cell/row with
|
6127 |
* @param {node|int} mRow TR element you want to update or the aoData index
|
6128 |
-
* @param {int} [iColumn] The column to update
|
|
|
6129 |
* @param {bool} [bRedraw=true] Redraw the table or not
|
6130 |
* @param {bool} [bAction=true] Perform pre-draw actions or not
|
6131 |
* @returns {int} 0 on success, 1 on error
|
6132 |
* @dtopt API
|
|
|
6133 |
*
|
6134 |
* @example
|
6135 |
* $(document).ready(function() {
|
6136 |
* var oTable = $('#example').dataTable();
|
6137 |
* oTable.fnUpdate( 'Example update', 0, 0 ); // Single cell
|
6138 |
-
* oTable.fnUpdate( ['a', 'b', 'c', 'd', 'e'],
|
6139 |
* } );
|
6140 |
*/
|
6141 |
this.fnUpdate = function( mData, mRow, iColumn, bRedraw, bAction )
|
6142 |
{
|
6143 |
-
var
|
6144 |
-
var i, iLen, sDisplay;
|
6145 |
-
var iRow = (typeof mRow === 'object') ?
|
6146 |
-
_fnNodeToDataIndex(oSettings, mRow) : mRow;
|
6147 |
-
|
6148 |
-
if ( $.isArray(mData) && iColumn === undefined )
|
6149 |
-
{
|
6150 |
-
/* Array update - update the whole row */
|
6151 |
-
oSettings.aoData[iRow]._aData = mData.slice();
|
6152 |
-
|
6153 |
-
/* Flag to the function that we are recursing */
|
6154 |
-
for ( i=0 ; i<oSettings.aoColumns.length ; i++ )
|
6155 |
-
{
|
6156 |
-
this.fnUpdate( _fnGetCellData( oSettings, iRow, i ), iRow, i, false, false );
|
6157 |
-
}
|
6158 |
-
}
|
6159 |
-
else if ( $.isPlainObject(mData) && iColumn === undefined )
|
6160 |
-
{
|
6161 |
-
/* Object update - update the whole row - assume the developer gets the object right */
|
6162 |
-
oSettings.aoData[iRow]._aData = $.extend( true, {}, mData );
|
6163 |
|
6164 |
-
|
6165 |
-
|
6166 |
-
this.fnUpdate( _fnGetCellData( oSettings, iRow, i ), iRow, i, false, false );
|
6167 |
-
}
|
6168 |
}
|
6169 |
-
else
|
6170 |
-
|
6171 |
-
/* Individual cell update */
|
6172 |
-
_fnSetCellData( oSettings, iRow, iColumn, mData );
|
6173 |
-
sDisplay = _fnGetCellData( oSettings, iRow, iColumn, 'display' );
|
6174 |
-
|
6175 |
-
var oCol = oSettings.aoColumns[iColumn];
|
6176 |
-
if ( oCol.fnRender !== null )
|
6177 |
-
{
|
6178 |
-
sDisplay = _fnRender( oSettings, iRow, iColumn );
|
6179 |
-
if ( oCol.bUseRendered )
|
6180 |
-
{
|
6181 |
-
_fnSetCellData( oSettings, iRow, iColumn, sDisplay );
|
6182 |
-
}
|
6183 |
-
}
|
6184 |
-
|
6185 |
-
if ( oSettings.aoData[iRow].nTr !== null )
|
6186 |
-
{
|
6187 |
-
/* Do the actual HTML update */
|
6188 |
-
_fnGetTdNodes( oSettings, iRow )[iColumn].innerHTML = sDisplay;
|
6189 |
-
}
|
6190 |
}
|
6191 |
-
|
6192 |
-
|
6193 |
-
|
6194 |
-
*/
|
6195 |
-
var iDisplayIndex = $.inArray( iRow, oSettings.aiDisplay );
|
6196 |
-
oSettings.asDataSearch[iDisplayIndex] = _fnBuildSearchRow(
|
6197 |
-
oSettings,
|
6198 |
-
_fnGetRowData( oSettings, iRow, 'filter', _fnGetColumns( oSettings, 'bSearchable' ) )
|
6199 |
-
);
|
6200 |
-
|
6201 |
-
/* Perform pre-draw actions */
|
6202 |
-
if ( bAction === undefined || bAction )
|
6203 |
-
{
|
6204 |
-
_fnAdjustColumnSizing( oSettings );
|
6205 |
}
|
6206 |
-
|
6207 |
-
|
6208 |
-
|
6209 |
-
{
|
6210 |
-
_fnReDraw( oSettings );
|
6211 |
}
|
6212 |
return 0;
|
6213 |
};
|
@@ -6222,6 +6016,7 @@
|
|
6222 |
* version, or false if this version of DataTales is not suitable
|
6223 |
* @method
|
6224 |
* @dtopt API
|
|
|
6225 |
*
|
6226 |
* @example
|
6227 |
* $(document).ready(function() {
|
@@ -6229,187 +6024,98 @@
|
|
6229 |
* alert( oTable.fnVersionCheck( '1.9.0' ) );
|
6230 |
* } );
|
6231 |
*/
|
6232 |
-
this.fnVersionCheck =
|
6233 |
-
|
6234 |
-
|
6235 |
-
/*
|
6236 |
-
* This is really a good bit rubbish this method of exposing the internal methods
|
6237 |
-
* publicly... - To be fixed in 2.0 using methods on the prototype
|
6238 |
-
*/
|
6239 |
-
|
6240 |
|
6241 |
-
|
6242 |
-
|
6243 |
-
|
6244 |
-
|
6245 |
-
|
6246 |
-
|
6247 |
-
|
6248 |
-
{
|
6249 |
-
return function() {
|
6250 |
-
var aArgs = [_fnSettingsFromNode(this[DataTable.ext.iApiIndex])].concat(
|
6251 |
-
Array.prototype.slice.call(arguments) );
|
6252 |
-
return DataTable.ext.oApi[sFunc].apply( this, aArgs );
|
6253 |
-
};
|
6254 |
}
|
6255 |
-
|
6256 |
-
|
6257 |
-
|
6258 |
-
|
6259 |
-
|
6260 |
-
|
6261 |
-
|
6262 |
-
* @namespace
|
6263 |
-
*/
|
6264 |
-
this.oApi = {
|
6265 |
-
"_fnExternApiFunc": _fnExternApiFunc,
|
6266 |
-
"_fnInitialise": _fnInitialise,
|
6267 |
-
"_fnInitComplete": _fnInitComplete,
|
6268 |
-
"_fnLanguageCompat": _fnLanguageCompat,
|
6269 |
-
"_fnAddColumn": _fnAddColumn,
|
6270 |
-
"_fnColumnOptions": _fnColumnOptions,
|
6271 |
-
"_fnAddData": _fnAddData,
|
6272 |
-
"_fnCreateTr": _fnCreateTr,
|
6273 |
-
"_fnGatherData": _fnGatherData,
|
6274 |
-
"_fnBuildHead": _fnBuildHead,
|
6275 |
-
"_fnDrawHead": _fnDrawHead,
|
6276 |
-
"_fnDraw": _fnDraw,
|
6277 |
-
"_fnReDraw": _fnReDraw,
|
6278 |
-
"_fnAjaxUpdate": _fnAjaxUpdate,
|
6279 |
-
"_fnAjaxParameters": _fnAjaxParameters,
|
6280 |
-
"_fnAjaxUpdateDraw": _fnAjaxUpdateDraw,
|
6281 |
-
"_fnServerParams": _fnServerParams,
|
6282 |
-
"_fnAddOptionsHtml": _fnAddOptionsHtml,
|
6283 |
-
"_fnFeatureHtmlTable": _fnFeatureHtmlTable,
|
6284 |
-
"_fnScrollDraw": _fnScrollDraw,
|
6285 |
-
"_fnAdjustColumnSizing": _fnAdjustColumnSizing,
|
6286 |
-
"_fnFeatureHtmlFilter": _fnFeatureHtmlFilter,
|
6287 |
-
"_fnFilterComplete": _fnFilterComplete,
|
6288 |
-
"_fnFilterCustom": _fnFilterCustom,
|
6289 |
-
"_fnFilterColumn": _fnFilterColumn,
|
6290 |
-
"_fnFilter": _fnFilter,
|
6291 |
-
"_fnBuildSearchArray": _fnBuildSearchArray,
|
6292 |
-
"_fnBuildSearchRow": _fnBuildSearchRow,
|
6293 |
-
"_fnFilterCreateSearch": _fnFilterCreateSearch,
|
6294 |
-
"_fnDataToSearch": _fnDataToSearch,
|
6295 |
-
"_fnSort": _fnSort,
|
6296 |
-
"_fnSortAttachListener": _fnSortAttachListener,
|
6297 |
-
"_fnSortingClasses": _fnSortingClasses,
|
6298 |
-
"_fnFeatureHtmlPaginate": _fnFeatureHtmlPaginate,
|
6299 |
-
"_fnPageChange": _fnPageChange,
|
6300 |
-
"_fnFeatureHtmlInfo": _fnFeatureHtmlInfo,
|
6301 |
-
"_fnUpdateInfo": _fnUpdateInfo,
|
6302 |
-
"_fnFeatureHtmlLength": _fnFeatureHtmlLength,
|
6303 |
-
"_fnFeatureHtmlProcessing": _fnFeatureHtmlProcessing,
|
6304 |
-
"_fnProcessingDisplay": _fnProcessingDisplay,
|
6305 |
-
"_fnVisibleToColumnIndex": _fnVisibleToColumnIndex,
|
6306 |
-
"_fnColumnIndexToVisible": _fnColumnIndexToVisible,
|
6307 |
-
"_fnNodeToDataIndex": _fnNodeToDataIndex,
|
6308 |
-
"_fnVisbleColumns": _fnVisbleColumns,
|
6309 |
-
"_fnCalculateEnd": _fnCalculateEnd,
|
6310 |
-
"_fnConvertToWidth": _fnConvertToWidth,
|
6311 |
-
"_fnCalculateColumnWidths": _fnCalculateColumnWidths,
|
6312 |
-
"_fnScrollingWidthAdjust": _fnScrollingWidthAdjust,
|
6313 |
-
"_fnGetWidestNode": _fnGetWidestNode,
|
6314 |
-
"_fnGetMaxLenString": _fnGetMaxLenString,
|
6315 |
-
"_fnStringToCss": _fnStringToCss,
|
6316 |
-
"_fnDetectType": _fnDetectType,
|
6317 |
-
"_fnSettingsFromNode": _fnSettingsFromNode,
|
6318 |
-
"_fnGetDataMaster": _fnGetDataMaster,
|
6319 |
-
"_fnGetTrNodes": _fnGetTrNodes,
|
6320 |
-
"_fnGetTdNodes": _fnGetTdNodes,
|
6321 |
-
"_fnEscapeRegex": _fnEscapeRegex,
|
6322 |
-
"_fnDeleteIndex": _fnDeleteIndex,
|
6323 |
-
"_fnReOrderIndex": _fnReOrderIndex,
|
6324 |
-
"_fnColumnOrdering": _fnColumnOrdering,
|
6325 |
-
"_fnLog": _fnLog,
|
6326 |
-
"_fnClearTable": _fnClearTable,
|
6327 |
-
"_fnSaveState": _fnSaveState,
|
6328 |
-
"_fnLoadState": _fnLoadState,
|
6329 |
-
"_fnCreateCookie": _fnCreateCookie,
|
6330 |
-
"_fnReadCookie": _fnReadCookie,
|
6331 |
-
"_fnDetectHeader": _fnDetectHeader,
|
6332 |
-
"_fnGetUniqueThs": _fnGetUniqueThs,
|
6333 |
-
"_fnScrollBarWidth": _fnScrollBarWidth,
|
6334 |
-
"_fnApplyToChildren": _fnApplyToChildren,
|
6335 |
-
"_fnMap": _fnMap,
|
6336 |
-
"_fnGetRowData": _fnGetRowData,
|
6337 |
-
"_fnGetCellData": _fnGetCellData,
|
6338 |
-
"_fnSetCellData": _fnSetCellData,
|
6339 |
-
"_fnGetObjectDataFn": _fnGetObjectDataFn,
|
6340 |
-
"_fnSetObjectDataFn": _fnSetObjectDataFn,
|
6341 |
-
"_fnApplyColumnDefs": _fnApplyColumnDefs,
|
6342 |
-
"_fnBindAction": _fnBindAction,
|
6343 |
-
"_fnExtend": _fnExtend,
|
6344 |
-
"_fnCallbackReg": _fnCallbackReg,
|
6345 |
-
"_fnCallbackFire": _fnCallbackFire,
|
6346 |
-
"_fnJsonString": _fnJsonString,
|
6347 |
-
"_fnRender": _fnRender,
|
6348 |
-
"_fnNodeToColumnIndex": _fnNodeToColumnIndex,
|
6349 |
-
"_fnInfoMacros": _fnInfoMacros,
|
6350 |
-
"_fnBrowserDetect": _fnBrowserDetect,
|
6351 |
-
"_fnGetColumns": _fnGetColumns
|
6352 |
-
};
|
6353 |
-
|
6354 |
-
$.extend( DataTable.ext.oApi, this.oApi );
|
6355 |
-
|
6356 |
-
for ( var sFunc in DataTable.ext.oApi )
|
6357 |
-
{
|
6358 |
-
if ( sFunc )
|
6359 |
-
{
|
6360 |
-
this[sFunc] = _fnExternApiFunc(sFunc);
|
6361 |
}
|
6362 |
}
|
6363 |
-
|
6364 |
-
|
6365 |
-
var _that = this;
|
6366 |
this.each(function() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6367 |
var i=0, iLen, j, jLen, k, kLen;
|
6368 |
var sId = this.getAttribute( 'id' );
|
6369 |
var bInitHandedOff = false;
|
6370 |
-
var
|
|
|
6371 |
|
6372 |
|
6373 |
/* Sanity check */
|
6374 |
if ( this.nodeName.toLowerCase() != 'table' )
|
6375 |
{
|
6376 |
-
_fnLog( null, 0,
|
6377 |
-
"table: "+this.nodeName );
|
6378 |
return;
|
6379 |
}
|
6380 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6381 |
/* Check to see if we are re-initialising a table */
|
6382 |
-
|
|
|
6383 |
{
|
|
|
|
|
6384 |
/* Base check on table node */
|
6385 |
-
if (
|
6386 |
{
|
6387 |
-
|
|
|
|
|
|
|
6388 |
{
|
6389 |
-
return
|
6390 |
}
|
6391 |
-
else if (
|
6392 |
{
|
6393 |
-
|
6394 |
break;
|
6395 |
}
|
6396 |
else
|
6397 |
{
|
6398 |
-
_fnLog(
|
6399 |
-
"To retrieve the DataTables object for this table, pass no arguments or see "+
|
6400 |
-
"the docs for bRetrieve and bDestroy" );
|
6401 |
return;
|
6402 |
}
|
6403 |
}
|
6404 |
-
|
6405 |
/* If the element we are initialising has the same ID as a table which was previously
|
6406 |
* initialised, but the table nodes don't match (from before) then we destroy the old
|
6407 |
* instance by simply deleting it. This is under the assumption that the table has been
|
6408 |
* destroyed by other methods. Anyone using non-id selectors will need to do this manually
|
6409 |
*/
|
6410 |
-
if (
|
6411 |
{
|
6412 |
-
|
6413 |
break;
|
6414 |
}
|
6415 |
}
|
@@ -6417,80 +6123,91 @@
|
|
6417 |
/* Ensure the table has an ID - required for accessibility */
|
6418 |
if ( sId === null || sId === "" )
|
6419 |
{
|
6420 |
-
sId = "DataTables_Table_"+(DataTable.ext.
|
6421 |
this.id = sId;
|
6422 |
}
|
6423 |
|
6424 |
/* Create the settings object for this table and set some of the default parameters */
|
6425 |
var oSettings = $.extend( true, {}, DataTable.models.oSettings, {
|
6426 |
"nTable": this,
|
6427 |
-
"oApi": _that.
|
6428 |
"oInit": oInit,
|
6429 |
-
"sDestroyWidth": $
|
6430 |
"sInstance": sId,
|
6431 |
"sTableId": sId
|
6432 |
} );
|
6433 |
-
|
6434 |
|
6435 |
// Need to add the instance after the instance after the settings object has been added
|
6436 |
// to the settings array, so we can self reference the table instance if more than one
|
6437 |
-
oSettings.oInstance = (_that.length===1) ? _that : $
|
6438 |
-
|
6439 |
-
/* Setting up the initialisation object */
|
6440 |
-
if ( !oInit )
|
6441 |
-
{
|
6442 |
-
oInit = {};
|
6443 |
-
}
|
6444 |
|
6445 |
// Backwards compatibility, before we apply all the defaults
|
|
|
|
|
6446 |
if ( oInit.oLanguage )
|
6447 |
{
|
6448 |
_fnLanguageCompat( oInit.oLanguage );
|
6449 |
}
|
6450 |
|
6451 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6452 |
|
6453 |
// Map the initialisation options onto the settings object
|
6454 |
-
_fnMap( oSettings.oFeatures, oInit,
|
6455 |
-
|
6456 |
-
|
6457 |
-
|
6458 |
-
|
6459 |
-
|
6460 |
-
|
6461 |
-
|
6462 |
-
|
6463 |
-
|
6464 |
-
|
6465 |
-
|
6466 |
-
|
6467 |
-
_fnMap( oSettings
|
6468 |
-
|
6469 |
-
|
6470 |
-
|
6471 |
-
|
6472 |
-
|
6473 |
-
|
6474 |
-
|
6475 |
-
|
6476 |
-
|
6477 |
-
|
6478 |
-
|
6479 |
-
|
6480 |
-
|
6481 |
-
|
6482 |
-
|
6483 |
-
|
6484 |
-
|
6485 |
-
|
6486 |
-
|
6487 |
-
|
6488 |
-
|
6489 |
-
|
6490 |
-
|
6491 |
-
|
6492 |
-
|
6493 |
-
_fnMap( oSettings, oInit,
|
|
|
|
|
|
|
|
|
|
|
6494 |
_fnMap( oSettings.oLanguage, oInit, "fnInfoCallback" );
|
6495 |
|
6496 |
/* Callback functions which are array driven */
|
@@ -6506,43 +6223,43 @@
|
|
6506 |
_fnCallbackReg( oSettings, 'aoInitComplete', oInit.fnInitComplete, 'user' );
|
6507 |
_fnCallbackReg( oSettings, 'aoPreDrawCallback', oInit.fnPreDrawCallback, 'user' );
|
6508 |
|
6509 |
-
|
6510 |
-
oSettings.oFeatures.bSortClasses )
|
6511 |
-
{
|
6512 |
-
/* Enable sort classes for server-side processing. Safe to do it here, since server-side
|
6513 |
-
* processing must be enabled by the developer
|
6514 |
-
*/
|
6515 |
-
_fnCallbackReg( oSettings, 'aoDrawCallback', _fnSortingClasses, 'server_side_sort_classes' );
|
6516 |
-
}
|
6517 |
-
else if ( oSettings.oFeatures.bDeferRender )
|
6518 |
-
{
|
6519 |
-
_fnCallbackReg( oSettings, 'aoDrawCallback', _fnSortingClasses, 'defer_sort_classes' );
|
6520 |
-
}
|
6521 |
|
|
|
6522 |
if ( oInit.bJQueryUI )
|
6523 |
{
|
6524 |
-
/* Use the JUI classes object for display. You could clone the oStdClasses object if
|
6525 |
-
* you want to have multiple tables with multiple independent classes
|
6526 |
*/
|
6527 |
-
$.extend(
|
6528 |
-
|
6529 |
-
if ( oInit.sDom ===
|
6530 |
{
|
6531 |
/* Set the DOM to use a layout suitable for jQuery UI's theming */
|
6532 |
oSettings.sDom = '<"H"lfr>t<"F"ip>';
|
6533 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6534 |
}
|
6535 |
else
|
6536 |
{
|
6537 |
-
$.extend(
|
6538 |
}
|
6539 |
-
$
|
6540 |
|
6541 |
/* Calculate the scroll bar width and cache it for use later on */
|
6542 |
if ( oSettings.oScroll.sX !== "" || oSettings.oScroll.sY !== "" )
|
6543 |
{
|
6544 |
oSettings.oScroll.iBarWidth = _fnScrollBarWidth();
|
6545 |
}
|
|
|
|
|
|
|
6546 |
|
6547 |
if ( oSettings.iInitDisplayStart === undefined )
|
6548 |
{
|
@@ -6551,14 +6268,6 @@
|
|
6551 |
oSettings._iDisplayStart = oInit.iDisplayStart;
|
6552 |
}
|
6553 |
|
6554 |
-
/* Must be done after everything which can be overridden by a cookie! */
|
6555 |
-
if ( oInit.bStateSave )
|
6556 |
-
{
|
6557 |
-
oSettings.oFeatures.bStateSave = true;
|
6558 |
-
_fnLoadState( oSettings, oInit );
|
6559 |
-
_fnCallbackReg( oSettings, 'aoDrawCallback', _fnSaveState, 'state_save' );
|
6560 |
-
}
|
6561 |
-
|
6562 |
if ( oInit.iDeferLoading !== null )
|
6563 |
{
|
6564 |
oSettings.bDeferLoading = true;
|
@@ -6567,31 +6276,32 @@
|
|
6567 |
oSettings._iRecordsTotal = tmp ? oInit.iDeferLoading[1] : oInit.iDeferLoading;
|
6568 |
}
|
6569 |
|
6570 |
-
if ( oInit.aaData !== null )
|
6571 |
-
{
|
6572 |
-
bUsePassedData = true;
|
6573 |
-
}
|
6574 |
-
|
6575 |
/* Language definitions */
|
6576 |
-
|
|
|
|
|
|
|
6577 |
{
|
6578 |
/* Get the language definitions from a file - because this Ajax call makes the language
|
6579 |
-
* get async to the remainder of this function we use bInitHandedOff to indicate that
|
6580 |
* _fnInitialise will be fired by the returned Ajax handler, rather than the constructor
|
6581 |
*/
|
6582 |
-
|
6583 |
-
|
6584 |
-
|
6585 |
-
|
6586 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6587 |
} );
|
6588 |
bInitHandedOff = true;
|
6589 |
}
|
6590 |
-
else
|
6591 |
-
{
|
6592 |
-
$.extend( true, oSettings.oLanguage, oInit.oLanguage );
|
6593 |
-
}
|
6594 |
-
|
6595 |
|
6596 |
/*
|
6597 |
* Stripes
|
@@ -6599,33 +6309,19 @@
|
|
6599 |
if ( oInit.asStripeClasses === null )
|
6600 |
{
|
6601 |
oSettings.asStripeClasses =[
|
6602 |
-
|
6603 |
-
|
6604 |
];
|
6605 |
}
|
6606 |
|
6607 |
/* Remove row stripe classes if they are already on the table row */
|
6608 |
-
|
6609 |
-
|
6610 |
-
if (
|
6611 |
-
|
6612 |
-
|
6613 |
-
|
6614 |
-
|
6615 |
-
{
|
6616 |
-
if ( anRows.hasClass( oSettings.asStripeClasses[i] ) )
|
6617 |
-
{
|
6618 |
-
bStripeRemove = true;
|
6619 |
-
|
6620 |
-
/* Store the classes which we are about to remove so they can be re-added on destroy */
|
6621 |
-
oSettings.asDestroyStripes.push( oSettings.asStripeClasses[i] );
|
6622 |
-
}
|
6623 |
-
}
|
6624 |
-
|
6625 |
-
if ( bStripeRemove )
|
6626 |
-
{
|
6627 |
-
anRows.removeClass( oSettings.asStripeClasses.join(' ') );
|
6628 |
-
}
|
6629 |
}
|
6630 |
|
6631 |
/*
|
@@ -6658,16 +6354,6 @@
|
|
6658 |
/* Add the columns */
|
6659 |
for ( i=0, iLen=aoColumnsInit.length ; i<iLen ; i++ )
|
6660 |
{
|
6661 |
-
/* Short cut - use the loop to check if we have column visibility state to restore */
|
6662 |
-
if ( oInit.saved_aoColumns !== undefined && oInit.saved_aoColumns.length == iLen )
|
6663 |
-
{
|
6664 |
-
if ( aoColumnsInit[i] === null )
|
6665 |
-
{
|
6666 |
-
aoColumnsInit[i] = {};
|
6667 |
-
}
|
6668 |
-
aoColumnsInit[i].bVisible = oInit.saved_aoColumns[i].bVisible;
|
6669 |
-
}
|
6670 |
-
|
6671 |
_fnAddColumn( oSettings, anThs ? anThs[i] : null );
|
6672 |
}
|
6673 |
|
@@ -6676,47 +6362,90 @@
|
|
6676 |
_fnColumnOptions( oSettings, iCol, oDef );
|
6677 |
} );
|
6678 |
|
6679 |
-
|
6680 |
-
|
6681 |
-
* Sorting
|
6682 |
-
* Check the aaSorting array
|
6683 |
*/
|
6684 |
-
|
6685 |
-
|
6686 |
-
|
6687 |
-
|
6688 |
-
|
6689 |
-
|
6690 |
-
|
6691 |
-
|
6692 |
-
|
6693 |
-
|
6694 |
-
|
6695 |
-
|
6696 |
-
|
6697 |
-
|
6698 |
-
|
6699 |
-
|
6700 |
-
|
6701 |
-
|
6702 |
-
|
6703 |
-
|
6704 |
-
|
6705 |
-
|
6706 |
-
{
|
6707 |
-
if ( oSettings.aaSorting[i][1] == oColumn.asSorting[j] )
|
6708 |
-
{
|
6709 |
-
oSettings.aaSorting[i][2] = j;
|
6710 |
-
break;
|
6711 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6712 |
}
|
6713 |
}
|
6714 |
-
|
6715 |
/* Do a first pass on the sorting classes (allows any size changes to be taken into
|
6716 |
* account, and also will apply sorting disabled classes if disabled
|
6717 |
*/
|
6718 |
_fnSortingClasses( oSettings );
|
6719 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6720 |
|
6721 |
/*
|
6722 |
* Final init
|
@@ -6727,733 +6456,2659 @@
|
|
6727 |
_fnBrowserDetect( oSettings );
|
6728 |
|
6729 |
// Work around for Webkit bug 83867 - store the caption-side before removing from doc
|
6730 |
-
var captions = $
|
6731 |
-
this._captionSide = $
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6732 |
} );
|
6733 |
-
|
6734 |
-
|
6735 |
-
|
6736 |
-
|
6737 |
-
|
6738 |
-
|
6739 |
-
|
6740 |
-
|
6741 |
-
|
6742 |
-
|
6743 |
-
|
6744 |
-
|
6745 |
-
|
6746 |
-
|
6747 |
-
|
6748 |
-
|
6749 |
-
|
6750 |
-
|
6751 |
-
|
6752 |
-
|
6753 |
-
|
6754 |
-
if ( tfoot.length === 0 && captions.length > 0 && (oSettings.oScroll.sX !== "" || oSettings.oScroll.sY !== "") )
|
6755 |
-
{
|
6756 |
-
// If we are a scrolling table, and no footer has been given, then we need to create
|
6757 |
-
// a tfoot element for the caption element to be appended to
|
6758 |
-
tfoot = [ document.createElement( 'tfoot' ) ];
|
6759 |
-
this.appendChild( tfoot[0] );
|
6760 |
-
}
|
6761 |
-
|
6762 |
-
if ( tfoot.length > 0 )
|
6763 |
-
{
|
6764 |
-
oSettings.nTFoot = tfoot[0];
|
6765 |
-
_fnDetectHeader( oSettings.aoFooter, oSettings.nTFoot );
|
6766 |
}
|
6767 |
-
|
6768 |
-
|
6769 |
-
|
6770 |
-
|
6771 |
-
|
6772 |
-
|
6773 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6774 |
}
|
6775 |
-
|
6776 |
-
|
6777 |
-
|
6778 |
-
|
6779 |
-
|
6780 |
-
|
6781 |
-
|
6782 |
-
|
6783 |
-
|
6784 |
-
|
6785 |
-
|
6786 |
-
|
6787 |
-
|
6788 |
-
|
6789 |
-
|
6790 |
-
|
6791 |
-
|
6792 |
-
|
6793 |
-
|
6794 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6795 |
} );
|
6796 |
-
|
6797 |
-
|
6798 |
-
|
6799 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6800 |
|
6801 |
|
6802 |
/**
|
6803 |
-
* Provide a common method for plug-ins to check the version of DataTables being
|
6804 |
-
* to ensure compatibility.
|
6805 |
-
*
|
6806 |
-
*
|
6807 |
-
*
|
6808 |
-
*
|
|
|
|
|
6809 |
* @static
|
6810 |
* @dtopt API-Static
|
6811 |
*
|
6812 |
* @example
|
6813 |
-
* alert( $.fn.dataTable.
|
6814 |
*/
|
6815 |
-
DataTable.fnVersionCheck = function(
|
6816 |
{
|
6817 |
-
|
6818 |
-
var
|
6819 |
-
|
6820 |
-
|
6821 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
6822 |
}
|
6823 |
-
|
6824 |
-
|
6825 |
-
|
6826 |
-
var aThat = sVersion.split('.');
|
6827 |
-
var sThis = '', sThat = '';
|
6828 |
-
|
6829 |
-
for ( var i=0, iLen=aThat.length ; i<iLen ; i++ )
|
6830 |
-
{
|
6831 |
-
sThis += fnZPad( aThis[i], 3 );
|
6832 |
-
sThat += fnZPad( aThat[i], 3 );
|
6833 |
}
|
6834 |
-
|
6835 |
-
return
|
6836 |
};
|
6837 |
|
6838 |
|
6839 |
/**
|
6840 |
-
* Check if a
|
6841 |
-
*
|
6842 |
-
*
|
|
|
|
|
6843 |
* @returns {boolean} true the table given is a DataTable, or false otherwise
|
6844 |
* @static
|
6845 |
* @dtopt API-Static
|
6846 |
*
|
6847 |
* @example
|
6848 |
-
*
|
6849 |
-
*
|
6850 |
-
* $(ex).dataTable();
|
6851 |
* }
|
6852 |
*/
|
6853 |
-
DataTable.fnIsDataTable = function (
|
6854 |
{
|
6855 |
-
var
|
|
|
6856 |
|
6857 |
-
|
6858 |
-
|
6859 |
-
|
6860 |
-
|
6861 |
-
|
|
|
6862 |
}
|
6863 |
-
}
|
6864 |
|
6865 |
-
return
|
6866 |
};
|
6867 |
|
6868 |
|
6869 |
/**
|
6870 |
-
* Get all DataTable tables that have been initialised - optionally you can
|
6871 |
-
* get only currently visible tables.
|
6872 |
-
*
|
6873 |
-
*
|
6874 |
-
*
|
|
|
|
|
6875 |
* @static
|
6876 |
* @dtopt API-Static
|
6877 |
*
|
6878 |
* @example
|
6879 |
-
*
|
6880 |
-
*
|
6881 |
-
*
|
6882 |
-
* }
|
6883 |
*/
|
6884 |
-
DataTable.fnTables = function (
|
6885 |
{
|
6886 |
-
|
6887 |
-
|
6888 |
-
|
6889 |
-
if ( !bVisible || (bVisible === true && $(o.nTable).is(':visible')) )
|
6890 |
-
{
|
6891 |
-
out.push( o.nTable );
|
6892 |
}
|
6893 |
} );
|
6894 |
-
|
6895 |
-
return out;
|
6896 |
};
|
6897 |
|
6898 |
-
|
6899 |
-
/**
|
6900 |
-
* Version string for plug-ins to check compatibility. Allowed format is
|
6901 |
-
* a.b.c.d.e where: a:int, b:int, c:int, d:string(dev|beta), e:int. d and
|
6902 |
-
* e are optional
|
6903 |
-
* @member
|
6904 |
-
* @type string
|
6905 |
-
* @default Version number
|
6906 |
-
*/
|
6907 |
-
DataTable.version = "1.9.4";
|
6908 |
-
|
6909 |
-
/**
|
6910 |
-
* Private data store, containing all of the settings objects that are created for the
|
6911 |
-
* tables on a given page.
|
6912 |
-
*
|
6913 |
-
* Note that the <i>DataTable.settings</i> object is aliased to <i>jQuery.fn.dataTableExt</i>
|
6914 |
-
* through which it may be accessed and manipulated, or <i>jQuery.fn.dataTable.settings</i>.
|
6915 |
-
* @member
|
6916 |
-
* @type array
|
6917 |
-
* @default []
|
6918 |
-
* @private
|
6919 |
-
*/
|
6920 |
-
DataTable.settings = [];
|
6921 |
-
|
6922 |
-
/**
|
6923 |
-
* Object models container, for the various models that DataTables has available
|
6924 |
-
* to it. These models define the objects that are used to hold the active state
|
6925 |
-
* and configuration of the table.
|
6926 |
-
* @namespace
|
6927 |
-
*/
|
6928 |
-
DataTable.models = {};
|
6929 |
-
|
6930 |
|
6931 |
/**
|
6932 |
-
* DataTables
|
6933 |
-
* for plug-ins that can be used to extend the default DataTables behaviour - indeed many
|
6934 |
-
* of the build in methods use this method to provide their own capabilities (sorting methods
|
6935 |
-
* for example).
|
6936 |
*
|
6937 |
-
*
|
6938 |
-
*
|
|
|
|
|
|
|
6939 |
* @namespace
|
6940 |
*/
|
6941 |
-
DataTable.
|
6942 |
/**
|
6943 |
-
*
|
6944 |
-
*
|
6945 |
-
* over the filtering logic. Each element in this array is a function (parameters
|
6946 |
-
* described below) that is called for every row in the table, and your logic decides if
|
6947 |
-
* it should be included in the filtered data set or not.
|
6948 |
-
* <ul>
|
6949 |
-
* <li>
|
6950 |
-
* Function input parameters:
|
6951 |
-
* <ul>
|
6952 |
-
* <li>{object} DataTables settings object: see {@link DataTable.models.oSettings}.</li>
|
6953 |
-
* <li>{array|object} Data for the row to be processed (same as the original format
|
6954 |
-
* that was passed in as the data source, or an array from a DOM data source</li>
|
6955 |
-
* <li>{int} Row index in aoData ({@link DataTable.models.oSettings.aoData}), which can
|
6956 |
-
* be useful to retrieve the TR element if you need DOM interaction.</li>
|
6957 |
-
* </ul>
|
6958 |
-
* </li>
|
6959 |
-
* <li>
|
6960 |
-
* Function return:
|
6961 |
-
* <ul>
|
6962 |
-
* <li>{boolean} Include the row in the filtered result set (true) or not (false)</li>
|
6963 |
-
* </ul>
|
6964 |
-
* </il>
|
6965 |
-
* </ul>
|
6966 |
-
* @type array
|
6967 |
-
* @default []
|
6968 |
*
|
6969 |
-
*
|
6970 |
-
*
|
6971 |
-
*
|
6972 |
-
* // a certain range.
|
6973 |
-
* $.fn.dataTableExt.afnFiltering.push(
|
6974 |
-
* function( oSettings, aData, iDataIndex ) {
|
6975 |
-
* var iMin = document.getElementById('min').value * 1;
|
6976 |
-
* var iMax = document.getElementById('max').value * 1;
|
6977 |
-
* var iVersion = aData[3] == "-" ? 0 : aData[3]*1;
|
6978 |
-
* if ( iMin == "" && iMax == "" ) {
|
6979 |
-
* return true;
|
6980 |
-
* }
|
6981 |
-
* else if ( iMin == "" && iVersion < iMax ) {
|
6982 |
-
* return true;
|
6983 |
-
* }
|
6984 |
-
* else if ( iMin < iVersion && "" == iMax ) {
|
6985 |
-
* return true;
|
6986 |
-
* }
|
6987 |
-
* else if ( iMin < iVersion && iVersion < iMax ) {
|
6988 |
-
* return true;
|
6989 |
-
* }
|
6990 |
-
* return false;
|
6991 |
-
* }
|
6992 |
-
* );
|
6993 |
*/
|
6994 |
-
|
6995 |
|
6996 |
|
6997 |
/**
|
6998 |
-
*
|
6999 |
-
* based sorting that DataTables does automatically, allowing much greater control over the
|
7000 |
-
* the data that is being used to sort a column. This is useful if you want to do sorting
|
7001 |
-
* based on live data (for example the contents of an 'input' element) rather than just the
|
7002 |
-
* static string that DataTables knows of. The way these plug-ins work is that you create
|
7003 |
-
* an array of the values you wish to be sorted for the column in question and then return
|
7004 |
-
* that array. Which pre-sorting function is run here depends on the sSortDataType parameter
|
7005 |
-
* that is used for the column (if any). This is the corollary of <i>ofnSearch</i> for sort
|
7006 |
-
* data.
|
7007 |
-
* <ul>
|
7008 |
-
* <li>
|
7009 |
-
* Function input parameters:
|
7010 |
-
* <ul>
|
7011 |
-
* <li>{object} DataTables settings object: see {@link DataTable.models.oSettings}.</li>
|
7012 |
-
* <li>{int} Target column index</li>
|
7013 |
-
* </ul>
|
7014 |
-
* </li>
|
7015 |
-
* <li>
|
7016 |
-
* Function return:
|
7017 |
-
* <ul>
|
7018 |
-
* <li>{array} Data for the column to be sorted upon</li>
|
7019 |
-
* </ul>
|
7020 |
-
* </il>
|
7021 |
-
* </ul>
|
7022 |
-
*
|
7023 |
-
* Note that as of v1.9, it is typically preferable to use <i>mData</i> to prepare data for
|
7024 |
-
* the different uses that DataTables can put the data to. Specifically <i>mData</i> when
|
7025 |
-
* used as a function will give you a 'type' (sorting, filtering etc) that you can use to
|
7026 |
-
* prepare the data as required for the different types. As such, this method is deprecated.
|
7027 |
-
* @type array
|
7028 |
-
* @default []
|
7029 |
-
* @deprecated
|
7030 |
*
|
7031 |
-
* @
|
7032 |
-
*
|
7033 |
-
* jQuery.fn.dataTableExt.afnSortData['dom-text'] = function ( oSettings, iColumn )
|
7034 |
-
* {
|
7035 |
-
* var aData = [];
|
7036 |
-
* $( 'td:eq('+iColumn+') input', oSettings.oApi._fnGetTrNodes(oSettings) ).each( function () {
|
7037 |
-
* aData.push( this.value );
|
7038 |
-
* } );
|
7039 |
-
* return aData;
|
7040 |
-
* }
|
7041 |
*/
|
7042 |
-
|
|
|
7043 |
|
7044 |
|
7045 |
-
|
7046 |
-
|
7047 |
-
|
7048 |
-
|
7049 |
-
|
7050 |
-
|
7051 |
-
|
7052 |
-
|
7053 |
-
|
7054 |
-
|
7055 |
-
|
7056 |
-
|
7057 |
-
|
7058 |
-
|
7059 |
-
* </li>
|
7060 |
-
* <li>
|
7061 |
-
* Function return:
|
7062 |
-
* <ul>
|
7063 |
-
* <li>{node|null} The element which contains your feature. Note that the return
|
7064 |
-
* may also be void if your plug-in does not require to inject any DOM elements
|
7065 |
-
* into DataTables control (sDom) - for example this might be useful when
|
7066 |
-
* developing a plug-in which allows table control via keyboard entry.</li>
|
7067 |
-
* </ul>
|
7068 |
-
* </il>
|
7069 |
-
* </ul>
|
7070 |
-
* </li>
|
7071 |
-
* <li>{character} cFeature Character that will be matched in sDom - case sensitive</li>
|
7072 |
-
* <li>{string} sFeature Feature name</li>
|
7073 |
-
* </ul>
|
7074 |
-
* @type array
|
7075 |
-
* @default []
|
7076 |
-
*
|
7077 |
-
* @example
|
7078 |
-
* // How TableTools initialises itself.
|
7079 |
-
* $.fn.dataTableExt.aoFeatures.push( {
|
7080 |
-
* "fnInit": function( oSettings ) {
|
7081 |
-
* return new TableTools( { "oDTSettings": oSettings } );
|
7082 |
-
* },
|
7083 |
-
* "cFeature": "T",
|
7084 |
-
* "sFeature": "TableTools"
|
7085 |
-
* } );
|
7086 |
-
*/
|
7087 |
-
"aoFeatures": [],
|
7088 |
|
7089 |
|
7090 |
-
/**
|
7091 |
-
* Type detection plug-in functions - DataTables utilises types to define how sorting and
|
7092 |
-
* filtering behave, and types can be either be defined by the developer (sType for the
|
7093 |
-
* column) or they can be automatically detected by the methods in this array. The functions
|
7094 |
-
* defined in the array are quite simple, taking a single parameter (the data to analyse)
|
7095 |
-
* and returning the type if it is a known type, or null otherwise.
|
7096 |
-
* <ul>
|
7097 |
-
* <li>
|
7098 |
-
* Function input parameters:
|
7099 |
-
* <ul>
|
7100 |
-
* <li>{*} Data from the column cell to be analysed</li>
|
7101 |
-
* </ul>
|
7102 |
-
* </li>
|
7103 |
-
* <li>
|
7104 |
-
* Function return:
|
7105 |
-
* <ul>
|
7106 |
-
* <li>{string|null} Data type detected, or null if unknown (and thus pass it
|
7107 |
-
* on to the other type detection functions.</li>
|
7108 |
-
* </ul>
|
7109 |
-
* </il>
|
7110 |
-
* </ul>
|
7111 |
-
* @type array
|
7112 |
-
* @default []
|
7113 |
-
*
|
7114 |
-
* @example
|
7115 |
-
* // Currency type detection plug-in:
|
7116 |
-
* jQuery.fn.dataTableExt.aTypes.push(
|
7117 |
-
* function ( sData ) {
|
7118 |
-
* var sValidChars = "0123456789.-";
|
7119 |
-
* var Char;
|
7120 |
-
*
|
7121 |
-
* // Check the numeric part
|
7122 |
-
* for ( i=1 ; i<sData.length ; i++ ) {
|
7123 |
-
* Char = sData.charAt(i);
|
7124 |
-
* if (sValidChars.indexOf(Char) == -1) {
|
7125 |
-
* return null;
|
7126 |
-
* }
|
7127 |
-
* }
|
7128 |
-
*
|
7129 |
-
* // Check prefixed by currency
|
7130 |
-
* if ( sData.charAt(0) == '$' || sData.charAt(0) == '£' ) {
|
7131 |
-
* return 'currency';
|
7132 |
-
* }
|
7133 |
-
* return null;
|
7134 |
-
* }
|
7135 |
-
* );
|
7136 |
-
*/
|
7137 |
-
"aTypes": [],
|
7138 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7139 |
|
7140 |
-
/**
|
7141 |
-
* Provide a common method for plug-ins to check the version of DataTables being used,
|
7142 |
-
* in order to ensure compatibility.
|
7143 |
-
* @type function
|
7144 |
-
* @param {string} sVersion Version string to check for, in the format "X.Y.Z". Note
|
7145 |
-
* that the formats "X" and "X.Y" are also acceptable.
|
7146 |
-
* @returns {boolean} true if this version of DataTables is greater or equal to the
|
7147 |
-
* required version, or false if this version of DataTales is not suitable
|
7148 |
-
*
|
7149 |
-
* @example
|
7150 |
-
* $(document).ready(function() {
|
7151 |
-
* var oTable = $('#example').dataTable();
|
7152 |
-
* alert( oTable.fnVersionCheck( '1.9.0' ) );
|
7153 |
-
* } );
|
7154 |
-
*/
|
7155 |
-
"fnVersionCheck": DataTable.fnVersionCheck,
|
7156 |
|
|
|
|
|
|
|
|
|
7157 |
|
7158 |
-
|
7159 |
-
|
7160 |
-
|
7161 |
-
|
7162 |
-
*/
|
7163 |
-
"iApiIndex": 0,
|
7164 |
|
|
|
|
|
|
|
|
|
|
|
7165 |
|
7166 |
-
/**
|
7167 |
-
* Pre-processing of filtering data plug-ins - When you assign the sType for a column
|
7168 |
-
* (or have it automatically detected for you by DataTables or a type detection plug-in),
|
7169 |
-
* you will typically be using this for custom sorting, but it can also be used to provide
|
7170 |
-
* custom filtering by allowing you to pre-processing the data and returning the data in
|
7171 |
-
* the format that should be filtered upon. This is done by adding functions this object
|
7172 |
-
* with a parameter name which matches the sType for that target column. This is the
|
7173 |
-
* corollary of <i>afnSortData</i> for filtering data.
|
7174 |
-
* <ul>
|
7175 |
-
* <li>
|
7176 |
-
* Function input parameters:
|
7177 |
-
* <ul>
|
7178 |
-
* <li>{*} Data from the column cell to be prepared for filtering</li>
|
7179 |
-
* </ul>
|
7180 |
-
* </li>
|
7181 |
-
* <li>
|
7182 |
-
* Function return:
|
7183 |
-
* <ul>
|
7184 |
-
* <li>{string|null} Formatted string that will be used for the filtering.</li>
|
7185 |
-
* </ul>
|
7186 |
-
* </il>
|
7187 |
-
* </ul>
|
7188 |
-
*
|
7189 |
-
* Note that as of v1.9, it is typically preferable to use <i>mData</i> to prepare data for
|
7190 |
-
* the different uses that DataTables can put the data to. Specifically <i>mData</i> when
|
7191 |
-
* used as a function will give you a 'type' (sorting, filtering etc) that you can use to
|
7192 |
-
* prepare the data as required for the different types. As such, this method is deprecated.
|
7193 |
-
* @type object
|
7194 |
-
* @default {}
|
7195 |
-
* @deprecated
|
7196 |
-
*
|
7197 |
-
* @example
|
7198 |
-
* $.fn.dataTableExt.ofnSearch['title-numeric'] = function ( sData ) {
|
7199 |
-
* return sData.replace(/\n/g," ").replace( /<.*?>/g, "" );
|
7200 |
-
* }
|
7201 |
-
*/
|
7202 |
-
"ofnSearch": {},
|
7203 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7204 |
|
7205 |
-
|
7206 |
-
|
7207 |
-
|
7208 |
-
* @default {}
|
7209 |
-
*/
|
7210 |
-
"oApi": {},
|
7211 |
|
|
|
|
|
7212 |
|
7213 |
-
|
7214 |
-
|
7215 |
-
|
7216 |
-
|
7217 |
-
*/
|
7218 |
-
"oStdClasses": {},
|
7219 |
-
|
7220 |
|
7221 |
-
|
7222 |
-
|
7223 |
-
|
7224 |
-
|
7225 |
-
|
7226 |
-
"oJUIClasses": {},
|
7227 |
|
|
|
|
|
|
|
|
|
|
|
7228 |
|
7229 |
-
|
7230 |
-
|
7231 |
-
|
7232 |
-
|
7233 |
-
* through the <i>sPaginationType</i> initialisation parameter. Each pagination type that
|
7234 |
-
* is added is an object (the property name of which is what <i>sPaginationType</i> refers
|
7235 |
-
* to) that has two properties, both methods that are used by DataTables to update the
|
7236 |
-
* control's state.
|
7237 |
-
* <ul>
|
7238 |
-
* <li>
|
7239 |
-
* fnInit - Initialisation of the paging controls. Called only during initialisation
|
7240 |
-
* of the table. It is expected that this function will add the required DOM elements
|
7241 |
-
* to the page for the paging controls to work. The element pointer
|
7242 |
-
* 'oSettings.aanFeatures.p' array is provided by DataTables to contain the paging
|
7243 |
-
* controls (note that this is a 2D array to allow for multiple instances of each
|
7244 |
-
* DataTables DOM element). It is suggested that you add the controls to this element
|
7245 |
-
* as children
|
7246 |
-
* <ul>
|
7247 |
-
* <li>
|
7248 |
-
* Function input parameters:
|
7249 |
-
* <ul>
|
7250 |
-
* <li>{object} DataTables settings object: see {@link DataTable.models.oSettings}.</li>
|
7251 |
-
* <li>{node} Container into which the pagination controls must be inserted</li>
|
7252 |
-
* <li>{function} Draw callback function - whenever the controls cause a page
|
7253 |
-
* change, this method must be called to redraw the table.</li>
|
7254 |
-
* </ul>
|
7255 |
-
* </li>
|
7256 |
-
* <li>
|
7257 |
-
* Function return:
|
7258 |
-
* <ul>
|
7259 |
-
* <li>No return required</li>
|
7260 |
-
* </ul>
|
7261 |
-
* </il>
|
7262 |
-
* </ul>
|
7263 |
-
* </il>
|
7264 |
-
* <li>
|
7265 |
-
* fnInit - This function is called whenever the paging status of the table changes and is
|
7266 |
-
* typically used to update classes and/or text of the paging controls to reflex the new
|
7267 |
-
* status.
|
7268 |
-
* <ul>
|
7269 |
-
* <li>
|
7270 |
-
* Function input parameters:
|
7271 |
-
* <ul>
|
7272 |
-
* <li>{object} DataTables settings object: see {@link DataTable.models.oSettings}.</li>
|
7273 |
-
* <li>{function} Draw callback function - in case you need to redraw the table again
|
7274 |
-
* or attach new event listeners</li>
|
7275 |
-
* </ul>
|
7276 |
-
* </li>
|
7277 |
-
* <li>
|
7278 |
-
* Function return:
|
7279 |
-
* <ul>
|
7280 |
-
* <li>No return required</li>
|
7281 |
-
* </ul>
|
7282 |
-
* </il>
|
7283 |
-
* </ul>
|
7284 |
-
* </il>
|
7285 |
-
* </ul>
|
7286 |
-
* @type object
|
7287 |
-
* @default {}
|
7288 |
-
*
|
7289 |
-
* @example
|
7290 |
-
* $.fn.dataTableExt.oPagination.four_button = {
|
7291 |
-
* "fnInit": function ( oSettings, nPaging, fnCallbackDraw ) {
|
7292 |
-
* nFirst = document.createElement( 'span' );
|
7293 |
-
* nPrevious = document.createElement( 'span' );
|
7294 |
-
* nNext = document.createElement( 'span' );
|
7295 |
-
* nLast = document.createElement( 'span' );
|
7296 |
-
*
|
7297 |
-
* nFirst.appendChild( document.createTextNode( oSettings.oLanguage.oPaginate.sFirst ) );
|
7298 |
-
* nPrevious.appendChild( document.createTextNode( oSettings.oLanguage.oPaginate.sPrevious ) );
|
7299 |
-
* nNext.appendChild( document.createTextNode( oSettings.oLanguage.oPaginate.sNext ) );
|
7300 |
-
* nLast.appendChild( document.createTextNode( oSettings.oLanguage.oPaginate.sLast ) );
|
7301 |
-
*
|
7302 |
-
* nFirst.className = "paginate_button first";
|
7303 |
-
* nPrevious.className = "paginate_button previous";
|
7304 |
-
* nNext.className="paginate_button next";
|
7305 |
-
* nLast.className = "paginate_button last";
|
7306 |
-
*
|
7307 |
-
* nPaging.appendChild( nFirst );
|
7308 |
-
* nPaging.appendChild( nPrevious );
|
7309 |
-
* nPaging.appendChild( nNext );
|
7310 |
-
* nPaging.appendChild( nLast );
|
7311 |
-
*
|
7312 |
-
* $(nFirst).click( function () {
|
7313 |
-
* oSettings.oApi._fnPageChange( oSettings, "first" );
|
7314 |
-
* fnCallbackDraw( oSettings );
|
7315 |
-
* } );
|
7316 |
-
*
|
7317 |
-
* $(nPrevious).click( function() {
|
7318 |
-
* oSettings.oApi._fnPageChange( oSettings, "previous" );
|
7319 |
-
* fnCallbackDraw( oSettings );
|
7320 |
-
* } );
|
7321 |
-
*
|
7322 |
-
* $(nNext).click( function() {
|
7323 |
-
* oSettings.oApi._fnPageChange( oSettings, "next" );
|
7324 |
-
* fnCallbackDraw( oSettings );
|
7325 |
-
* } );
|
7326 |
-
*
|
7327 |
-
* $(nLast).click( function() {
|
7328 |
-
* oSettings.oApi._fnPageChange( oSettings, "last" );
|
7329 |
-
* fnCallbackDraw( oSettings );
|
7330 |
-
* } );
|
7331 |
-
*
|
7332 |
-
* $(nFirst).bind( 'selectstart', function () { return false; } );
|
7333 |
-
* $(nPrevious).bind( 'selectstart', function () { return false; } );
|
7334 |
-
* $(nNext).bind( 'selectstart', function () { return false; } );
|
7335 |
-
* $(nLast).bind( 'selectstart', function () { return false; } );
|
7336 |
-
* },
|
7337 |
-
*
|
7338 |
-
* "fnUpdate": function ( oSettings, fnCallbackDraw ) {
|
7339 |
-
* if ( !oSettings.aanFeatures.p ) {
|
7340 |
-
* return;
|
7341 |
-
* }
|
7342 |
-
*
|
7343 |
-
* // Loop over each instance of the pager
|
7344 |
-
* var an = oSettings.aanFeatures.p;
|
7345 |
-
* for ( var i=0, iLen=an.length ; i<iLen ; i++ ) {
|
7346 |
-
* var buttons = an[i].getElementsByTagName('span');
|
7347 |
-
* if ( oSettings._iDisplayStart === 0 ) {
|
7348 |
-
* buttons[0].className = "paginate_disabled_previous";
|
7349 |
-
* buttons[1].className = "paginate_disabled_previous";
|
7350 |
-
* }
|
7351 |
-
* else {
|
7352 |
-
* buttons[0].className = "paginate_enabled_previous";
|
7353 |
-
* buttons[1].className = "paginate_enabled_previous";
|
7354 |
-
* }
|
7355 |
-
*
|
7356 |
-
* if ( oSettings.fnDisplayEnd() == oSettings.fnRecordsDisplay() ) {
|
7357 |
-
* buttons[2].className = "paginate_disabled_next";
|
7358 |
-
* buttons[3].className = "paginate_disabled_next";
|
7359 |
-
* }
|
7360 |
-
* else {
|
7361 |
-
* buttons[2].className = "paginate_enabled_next";
|
7362 |
-
* buttons[3].className = "paginate_enabled_next";
|
7363 |
-
* }
|
7364 |
-
* }
|
7365 |
-
* }
|
7366 |
-
* };
|
7367 |
-
*/
|
7368 |
-
"oPagination": {},
|
7369 |
|
|
|
|
|
|
|
7370 |
|
7371 |
-
|
7372 |
-
|
7373 |
-
|
7374 |
-
* detection using sType). With this specific type given to the column, DataTables will
|
7375 |
-
* apply the required sort from the functions in the object. Each sort type must provide
|
7376 |
-
* two mandatory methods, one each for ascending and descending sorting, and can optionally
|
7377 |
-
* provide a pre-formatting method that will help speed up sorting by allowing DataTables
|
7378 |
-
* to pre-format the sort data only once (rather than every time the actual sort functions
|
7379 |
-
* are run). The two sorting functions are typical Javascript sort methods:
|
7380 |
-
* <ul>
|
7381 |
-
* <li>
|
7382 |
-
* Function input parameters:
|
7383 |
-
* <ul>
|
7384 |
-
* <li>{*} Data to compare to the second parameter</li>
|
7385 |
-
* <li>{*} Data to compare to the first parameter</li>
|
7386 |
-
* </ul>
|
7387 |
-
* </li>
|
7388 |
-
* <li>
|
7389 |
-
* Function return:
|
7390 |
-
* <ul>
|
7391 |
-
* <li>{int} Sorting match: <0 if first parameter should be sorted lower than
|
7392 |
-
* the second parameter, ===0 if the two parameters are equal and >0 if
|
7393 |
-
* the first parameter should be sorted height than the second parameter.</li>
|
7394 |
-
* </ul>
|
7395 |
-
* </il>
|
7396 |
-
* </ul>
|
7397 |
-
* @type object
|
7398 |
-
* @default {}
|
7399 |
-
*
|
7400 |
-
* @example
|
7401 |
-
* // Case-sensitive string sorting, with no pre-formatting method
|
7402 |
-
* $.extend( $.fn.dataTableExt.oSort, {
|
7403 |
-
* "string-case-asc": function(x,y) {
|
7404 |
-
* return ((x < y) ? -1 : ((x > y) ? 1 : 0));
|
7405 |
-
* },
|
7406 |
-
* "string-case-desc": function(x,y) {
|
7407 |
-
* return ((x < y) ? 1 : ((x > y) ? -1 : 0));
|
7408 |
-
* }
|
7409 |
-
* } );
|
7410 |
-
*
|
7411 |
-
* @example
|
7412 |
-
* // Case-insensitive string sorting, with pre-formatting
|
7413 |
-
* $.extend( $.fn.dataTableExt.oSort, {
|
7414 |
-
* "string-pre": function(x) {
|
7415 |
-
* return x.toLowerCase();
|
7416 |
-
* },
|
7417 |
-
* "string-asc": function(x,y) {
|
7418 |
-
* return ((x < y) ? -1 : ((x > y) ? 1 : 0));
|
7419 |
-
* },
|
7420 |
-
* "string-desc": function(x,y) {
|
7421 |
-
* return ((x < y) ? 1 : ((x > y) ? -1 : 0));
|
7422 |
-
* }
|
7423 |
-
* } );
|
7424 |
-
*/
|
7425 |
-
"oSort": {},
|
7426 |
|
|
|
7427 |
|
7428 |
-
|
7429 |
-
|
7430 |
-
|
7431 |
-
* e are optional
|
7432 |
-
* @type string
|
7433 |
-
* @default Version number
|
7434 |
-
*/
|
7435 |
-
"sVersion": DataTable.version,
|
7436 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7437 |
|
7438 |
-
|
7439 |
-
|
7440 |
-
|
7441 |
-
|
7442 |
-
*/
|
7443 |
-
"sErrMode": "alert",
|
7444 |
|
|
|
|
|
|
|
7445 |
|
7446 |
-
|
7447 |
-
|
7448 |
-
|
7449 |
-
|
7450 |
-
|
7451 |
-
|
7452 |
-
|
7453 |
-
|
7454 |
-
|
7455 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7456 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7457 |
|
7458 |
|
7459 |
|
@@ -7499,7 +9154,7 @@
|
|
7499 |
|
7500 |
/**
|
7501 |
* Template object for the way in which DataTables holds information about
|
7502 |
-
* each individual row. This is the object format used for the settings
|
7503 |
* aoData array.
|
7504 |
* @namespace
|
7505 |
*/
|
@@ -7511,11 +9166,19 @@
|
|
7511 |
*/
|
7512 |
"nTr": null,
|
7513 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7514 |
/**
|
7515 |
* Data object from the original data source for the row. This is either
|
7516 |
* an array if using the traditional form of DataTables, or an object if
|
7517 |
* using mData options. The exact type will depend on the passed in
|
7518 |
-
* data from the data source, or will be an array if using DOM a data
|
7519 |
* source.
|
7520 |
* @type array|object
|
7521 |
* @default []
|
@@ -7524,29 +9187,37 @@
|
|
7524 |
|
7525 |
/**
|
7526 |
* Sorting data cache - this array is ostensibly the same length as the
|
7527 |
-
* number of columns (although each index is generated only as it is
|
7528 |
* needed), and holds the data that is used for sorting each column in the
|
7529 |
* row. We do this cache generation at the start of the sort in order that
|
7530 |
* the formatting of the sort data need be done only once for each cell
|
7531 |
* per sort. This array should not be read from or written to by anything
|
7532 |
* other than the master sorting methods.
|
7533 |
* @type array
|
7534 |
-
* @default
|
7535 |
* @private
|
7536 |
*/
|
7537 |
-
"_aSortData":
|
7538 |
|
7539 |
/**
|
7540 |
-
*
|
7541 |
-
*
|
7542 |
-
*
|
7543 |
-
*
|
7544 |
-
*
|
7545 |
-
|
7546 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7547 |
* @private
|
7548 |
*/
|
7549 |
-
"
|
7550 |
|
7551 |
/**
|
7552 |
* Cache of the class name that DataTables has applied to the row, so we
|
@@ -7556,23 +9227,41 @@
|
|
7556 |
* @default <i>Empty string</i>
|
7557 |
* @private
|
7558 |
*/
|
7559 |
-
"_sRowStripe": ""
|
7560 |
-
};
|
7561 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7562 |
|
7563 |
|
7564 |
/**
|
7565 |
* Template object for the column information object in DataTables. This object
|
7566 |
* is held in the settings aoColumns array and contains all the information that
|
7567 |
* DataTables needs about each individual column.
|
7568 |
-
*
|
7569 |
-
* Note that this object is related to {@link DataTable.defaults.
|
7570 |
* but this one is the internal data store for DataTables's cache of columns.
|
7571 |
* It should NOT be manipulated outside of DataTables. Any configuration should
|
7572 |
* be done through the initialisation options.
|
7573 |
* @namespace
|
7574 |
*/
|
7575 |
DataTable.models.oColumn = {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7576 |
/**
|
7577 |
* A list of the columns that sorting should occur on when this column
|
7578 |
* is sorted. That this property is an array allows multi-column sorting
|
@@ -7593,49 +9282,44 @@
|
|
7593 |
* @type array
|
7594 |
*/
|
7595 |
"asSorting": null,
|
7596 |
-
|
7597 |
/**
|
7598 |
* Flag to indicate if the column is searchable, and thus should be included
|
7599 |
* in the filtering or not.
|
7600 |
* @type boolean
|
7601 |
*/
|
7602 |
"bSearchable": null,
|
7603 |
-
|
7604 |
/**
|
7605 |
* Flag to indicate if the column is sortable or not.
|
7606 |
* @type boolean
|
7607 |
*/
|
7608 |
"bSortable": null,
|
7609 |
-
|
7610 |
-
/**
|
7611 |
-
* <code>Deprecated</code> When using fnRender, you have two options for what
|
7612 |
-
* to do with the data, and this property serves as the switch. Firstly, you
|
7613 |
-
* can have the sorting and filtering use the rendered value (true - default),
|
7614 |
-
* or you can have the sorting and filtering us the original value (false).
|
7615 |
-
*
|
7616 |
-
* Please note that this option has now been deprecated and will be removed
|
7617 |
-
* in the next version of DataTables. Please use mRender / mData rather than
|
7618 |
-
* fnRender.
|
7619 |
-
* @type boolean
|
7620 |
-
* @deprecated
|
7621 |
-
*/
|
7622 |
-
"bUseRendered": null,
|
7623 |
-
|
7624 |
/**
|
7625 |
* Flag to indicate if the column is currently visible in the table or not
|
7626 |
* @type boolean
|
7627 |
*/
|
7628 |
"bVisible": null,
|
7629 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7630 |
/**
|
7631 |
-
* Flag to indicate
|
7632 |
-
*
|
7633 |
* @type boolean
|
7634 |
-
* @default
|
7635 |
* @private
|
7636 |
*/
|
7637 |
-
"
|
7638 |
-
|
7639 |
/**
|
7640 |
* Developer definable function that is called whenever a cell is created (Ajax source,
|
7641 |
* etc) or processed for input (DOM source). This can be used as a compliment to mRender
|
@@ -7649,64 +9333,45 @@
|
|
7649 |
* @default null
|
7650 |
*/
|
7651 |
"fnCreatedCell": null,
|
7652 |
-
|
7653 |
/**
|
7654 |
* Function to get data from a cell in a column. You should <b>never</b>
|
7655 |
* access data directly through _aData internally in DataTables - always use
|
7656 |
* the method attached to this property. It allows mData to function as
|
7657 |
-
* required. This function is automatically assigned by the column
|
7658 |
* initialisation method
|
7659 |
* @type function
|
7660 |
-
* @param {array|object} oData The data array/object for the array
|
7661 |
* (i.e. aoData[]._aData)
|
7662 |
-
* @param {string} sSpecific The specific data type you want to get -
|
7663 |
* 'display', 'type' 'filter' 'sort'
|
7664 |
* @returns {*} The data for the cell from the given row's data
|
7665 |
* @default null
|
7666 |
*/
|
7667 |
"fnGetData": null,
|
7668 |
-
|
7669 |
-
/**
|
7670 |
-
* <code>Deprecated</code> Custom display function that will be called for the
|
7671 |
-
* display of each cell in this column.
|
7672 |
-
*
|
7673 |
-
* Please note that this option has now been deprecated and will be removed
|
7674 |
-
* in the next version of DataTables. Please use mRender / mData rather than
|
7675 |
-
* fnRender.
|
7676 |
-
* @type function
|
7677 |
-
* @param {object} o Object with the following parameters:
|
7678 |
-
* @param {int} o.iDataRow The row in aoData
|
7679 |
-
* @param {int} o.iDataColumn The column in question
|
7680 |
-
* @param {array} o.aData The data for the row in question
|
7681 |
-
* @param {object} o.oSettings The settings object for this DataTables instance
|
7682 |
-
* @returns {string} The string you which to use in the display
|
7683 |
-
* @default null
|
7684 |
-
* @deprecated
|
7685 |
-
*/
|
7686 |
-
"fnRender": null,
|
7687 |
-
|
7688 |
/**
|
7689 |
-
* Function to set data for a cell in the column. You should <b>never</b>
|
7690 |
* set the data directly to _aData internally in DataTables - always use
|
7691 |
* this method. It allows mData to function as required. This function
|
7692 |
* is automatically assigned by the column initialisation method
|
7693 |
* @type function
|
7694 |
-
* @param {array|object} oData The data array/object for the array
|
7695 |
* (i.e. aoData[]._aData)
|
7696 |
* @param {*} sValue Value to set
|
7697 |
* @default null
|
7698 |
*/
|
7699 |
"fnSetData": null,
|
7700 |
-
|
7701 |
/**
|
7702 |
-
* Property to read the value for the cells in the column from the data
|
7703 |
* source array / object. If null, then the default content is used, if a
|
7704 |
* function is given then the return from the function is used.
|
7705 |
* @type function|int|string|null
|
7706 |
* @default null
|
7707 |
*/
|
7708 |
"mData": null,
|
7709 |
-
|
7710 |
/**
|
7711 |
* Partner property to mData which is used (only when defined) to get
|
7712 |
* the data - i.e. it is basically the same as mData, but without the
|
@@ -7716,7 +9381,7 @@
|
|
7716 |
* @default null
|
7717 |
*/
|
7718 |
"mRender": null,
|
7719 |
-
|
7720 |
/**
|
7721 |
* Unique header TH/TD element for this column - this is what the sorting
|
7722 |
* listener is attached to (if sorting is enabled.)
|
@@ -7724,28 +9389,28 @@
|
|
7724 |
* @default null
|
7725 |
*/
|
7726 |
"nTh": null,
|
7727 |
-
|
7728 |
/**
|
7729 |
-
* Unique footer TH/TD element for this column (if there is one). Not used
|
7730 |
-
* in DataTables as such, but can be used for plug-ins to reference the
|
7731 |
* footer for each column.
|
7732 |
* @type node
|
7733 |
* @default null
|
7734 |
*/
|
7735 |
"nTf": null,
|
7736 |
-
|
7737 |
/**
|
7738 |
* The class to apply to all TD elements in the table's TBODY for the column
|
7739 |
* @type string
|
7740 |
* @default null
|
7741 |
*/
|
7742 |
"sClass": null,
|
7743 |
-
|
7744 |
/**
|
7745 |
* When DataTables calculates the column widths to assign to each column,
|
7746 |
* it finds the longest string in each column and then constructs a
|
7747 |
* temporary table and reads the widths from that. The problem with this
|
7748 |
-
* is that "mmm" is much wider then "iiii", but the latter is a longer
|
7749 |
* string - thus the calculation can go wrong (doing it properly and putting
|
7750 |
* it into an DOM object and measuring that is horribly(!) slow). Thus as
|
7751 |
* a "work around" we provide this option. It will append its value to the
|
@@ -7753,7 +9418,7 @@
|
|
7753 |
* @type string
|
7754 |
*/
|
7755 |
"sContentPadding": null,
|
7756 |
-
|
7757 |
/**
|
7758 |
* Allows a default value to be given for a column's data, and will be used
|
7759 |
* whenever a null data source is encountered (this can be because mData
|
@@ -7762,14 +9427,14 @@
|
|
7762 |
* @default null
|
7763 |
*/
|
7764 |
"sDefaultContent": null,
|
7765 |
-
|
7766 |
/**
|
7767 |
* Name for the column, allowing reference to the column by name as well as
|
7768 |
* by index (needs a lookup to work by name).
|
7769 |
* @type string
|
7770 |
*/
|
7771 |
"sName": null,
|
7772 |
-
|
7773 |
/**
|
7774 |
* Custom sorting data type - defines which of the available plug-ins in
|
7775 |
* afnSortData the custom sorting will use - if any is defined.
|
@@ -7777,14 +9442,14 @@
|
|
7777 |
* @default std
|
7778 |
*/
|
7779 |
"sSortDataType": 'std',
|
7780 |
-
|
7781 |
/**
|
7782 |
* Class to be applied to the header element when sorting on this column
|
7783 |
* @type string
|
7784 |
* @default null
|
7785 |
*/
|
7786 |
"sSortingClass": null,
|
7787 |
-
|
7788 |
/**
|
7789 |
* Class to be applied to the header element when sorting on this column -
|
7790 |
* when jQuery UI theming is used.
|
@@ -7792,27 +9457,27 @@
|
|
7792 |
* @default null
|
7793 |
*/
|
7794 |
"sSortingClassJUI": null,
|
7795 |
-
|
7796 |
/**
|
7797 |
* Title of the column - what is seen in the TH element (nTh).
|
7798 |
* @type string
|
7799 |
*/
|
7800 |
"sTitle": null,
|
7801 |
-
|
7802 |
/**
|
7803 |
* Column sorting and filtering type
|
7804 |
* @type string
|
7805 |
* @default null
|
7806 |
*/
|
7807 |
"sType": null,
|
7808 |
-
|
7809 |
/**
|
7810 |
* Width of the column
|
7811 |
* @type string
|
7812 |
* @default null
|
7813 |
*/
|
7814 |
"sWidth": null,
|
7815 |
-
|
7816 |
/**
|
7817 |
* Width of the column when it was first "encountered"
|
7818 |
* @type string
|
@@ -7822,45 +9487,62 @@
|
|
7822 |
};
|
7823 |
|
7824 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7825 |
|
7826 |
/**
|
7827 |
-
* Initialisation options that can be given to DataTables at initialisation
|
7828 |
* time.
|
7829 |
* @namespace
|
7830 |
*/
|
7831 |
DataTable.defaults = {
|
7832 |
/**
|
7833 |
-
* An array of data to use for the table, passed in at initialisation which
|
7834 |
* will be used in preference to any data which is already in the DOM. This is
|
7835 |
* particularly useful for constructing tables purely in Javascript, for
|
7836 |
* example with a custom Ajax call.
|
7837 |
* @type array
|
7838 |
* @default null
|
|
|
7839 |
* @dtopt Option
|
7840 |
-
*
|
|
|
7841 |
* @example
|
7842 |
* // Using a 2D array data source
|
7843 |
* $(document).ready( function () {
|
7844 |
* $('#example').dataTable( {
|
7845 |
-
* "
|
7846 |
* ['Trident', 'Internet Explorer 4.0', 'Win 95+', 4, 'X'],
|
7847 |
* ['Trident', 'Internet Explorer 5.0', 'Win 95+', 5, 'C'],
|
7848 |
* ],
|
7849 |
-
* "
|
7850 |
-
* { "
|
7851 |
-
* { "
|
7852 |
-
* { "
|
7853 |
-
* { "
|
7854 |
-
* { "
|
7855 |
* ]
|
7856 |
* } );
|
7857 |
* } );
|
7858 |
-
*
|
7859 |
* @example
|
7860 |
-
* // Using an array of objects as a data source (
|
7861 |
* $(document).ready( function () {
|
7862 |
* $('#example').dataTable( {
|
7863 |
-
* "
|
7864 |
* {
|
7865 |
* "engine": "Trident",
|
7866 |
* "browser": "Internet Explorer 4.0",
|
@@ -7876,12 +9558,12 @@
|
|
7876 |
* "grade": "C"
|
7877 |
* }
|
7878 |
* ],
|
7879 |
-
* "
|
7880 |
-
* { "
|
7881 |
-
* { "
|
7882 |
-
* { "
|
7883 |
-
* { "
|
7884 |
-
* { "
|
7885 |
* ]
|
7886 |
* } );
|
7887 |
* } );
|
@@ -7890,27 +9572,29 @@
|
|
7890 |
|
7891 |
|
7892 |
/**
|
7893 |
-
* If
|
7894 |
-
* initialisation. You can define which column(s) the sort is performed
|
7895 |
-
* and the sorting direction, with this variable. The
|
7896 |
-
* contain an array for each column to be sorted initially containing
|
7897 |
-
* column's index and a direction string ('asc' or 'desc').
|
7898 |
* @type array
|
7899 |
* @default [[0,'asc']]
|
|
|
7900 |
* @dtopt Option
|
7901 |
-
*
|
|
|
7902 |
* @example
|
7903 |
* // Sort by 3rd column first, and then 4th column
|
7904 |
* $(document).ready( function() {
|
7905 |
* $('#example').dataTable( {
|
7906 |
-
* "
|
7907 |
* } );
|
7908 |
* } );
|
7909 |
-
*
|
7910 |
* // No initial sorting
|
7911 |
* $(document).ready( function() {
|
7912 |
* $('#example').dataTable( {
|
7913 |
-
* "
|
7914 |
* } );
|
7915 |
* } );
|
7916 |
*/
|
@@ -7918,52 +9602,205 @@
|
|
7918 |
|
7919 |
|
7920 |
/**
|
7921 |
-
* This parameter is basically identical to the
|
7922 |
-
* cannot be overridden by user interaction with the table. What this means
|
7923 |
-
* is that you could have a column (visible or hidden) which the sorting
|
7924 |
-
* always be forced on first - any sorting after that (from the user)
|
7925 |
-
* then be performed as required. This can be useful for grouping rows
|
7926 |
* together.
|
7927 |
* @type array
|
7928 |
* @default null
|
|
|
7929 |
* @dtopt Option
|
7930 |
-
*
|
|
|
7931 |
* @example
|
7932 |
* $(document).ready( function() {
|
7933 |
* $('#example').dataTable( {
|
7934 |
-
* "
|
7935 |
* } );
|
7936 |
* } )
|
7937 |
*/
|
7938 |
-
"aaSortingFixed":
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7939 |
|
7940 |
|
7941 |
/**
|
7942 |
* This parameter allows you to readily specify the entries in the length drop
|
7943 |
-
* down menu that DataTables shows when pagination is enabled. It can be
|
7944 |
-
* either a 1D array of options which will be used for both the displayed
|
7945 |
-
* option and the value, or a 2D array which will use the array in the first
|
7946 |
-
* position as the value, and the array in the second position as the
|
7947 |
* displayed options (useful for language strings such as 'All').
|
|
|
|
|
|
|
7948 |
* @type array
|
7949 |
* @default [ 10, 25, 50, 100 ]
|
|
|
7950 |
* @dtopt Option
|
7951 |
-
*
|
7952 |
-
*
|
7953 |
-
* $(document).ready( function() {
|
7954 |
-
* $('#example').dataTable( {
|
7955 |
-
* "aLengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]]
|
7956 |
-
* } );
|
7957 |
-
* } );
|
7958 |
-
*
|
7959 |
* @example
|
7960 |
-
* // Setting the default display length as well as length menu
|
7961 |
-
* // This is likely to be wanted if you remove the '10' option which
|
7962 |
-
* // is the iDisplayLength default.
|
7963 |
* $(document).ready( function() {
|
7964 |
* $('#example').dataTable( {
|
7965 |
-
* "
|
7966 |
-
* "aLengthMenu": [[25, 50, 100, -1], [25, 50, 100, "All"]]
|
7967 |
* } );
|
7968 |
* } );
|
7969 |
*/
|
@@ -7971,25 +9808,27 @@
|
|
7971 |
|
7972 |
|
7973 |
/**
|
7974 |
-
* The
|
7975 |
* details about the way individual columns behave. For a full list of
|
7976 |
-
* column options that can be set, please see
|
7977 |
-
* {@link DataTable.defaults.
|
7978 |
* define your columns, you must have an entry in the array for every single
|
7979 |
* column that you have in your table (these can be null if you don't which
|
7980 |
* to specify any options).
|
7981 |
* @member
|
|
|
|
|
7982 |
*/
|
7983 |
"aoColumns": null,
|
7984 |
|
7985 |
/**
|
7986 |
-
* Very similar to
|
7987 |
-
* column, multiple columns, or all columns, using the
|
7988 |
-
* each object in the array. This allows great flexibility when creating
|
7989 |
-
* tables, as the
|
7990 |
-
* columns you specifically want.
|
7991 |
-
* options available: {@link DataTable.defaults.
|
7992 |
-
* have
|
7993 |
* array may be:
|
7994 |
* <ul>
|
7995 |
* <li>a string - class name will be matched on the TH for the column</li>
|
@@ -7998,28 +9837,32 @@
|
|
7998 |
* <li>the string "_all" - all columns (i.e. assign a default)</li>
|
7999 |
* </ul>
|
8000 |
* @member
|
|
|
|
|
8001 |
*/
|
8002 |
"aoColumnDefs": null,
|
8003 |
|
8004 |
|
8005 |
/**
|
8006 |
-
* Basically the same as
|
8007 |
-
* filtering state at initialisation time. The array must be of the same size
|
8008 |
* as the number of columns, and each element be an object with the parameters
|
8009 |
-
*
|
8010 |
* accepted and the default will be used.
|
8011 |
* @type array
|
8012 |
* @default []
|
|
|
8013 |
* @dtopt Option
|
8014 |
-
*
|
|
|
8015 |
* @example
|
8016 |
* $(document).ready( function() {
|
8017 |
* $('#example').dataTable( {
|
8018 |
-
* "
|
8019 |
* null,
|
8020 |
-
* { "
|
8021 |
* null,
|
8022 |
-
* { "
|
8023 |
* ]
|
8024 |
* } );
|
8025 |
* } )
|
@@ -8028,18 +9871,20 @@
|
|
8028 |
|
8029 |
|
8030 |
/**
|
8031 |
-
* An array of CSS classes that should be applied to displayed rows. This
|
8032 |
-
* array may be of any length, and DataTables will apply each class
|
8033 |
* sequentially, looping when required.
|
8034 |
* @type array
|
8035 |
-
* @default null <i>Will take the values determined by the oClasses.
|
8036 |
* options</i>
|
|
|
8037 |
* @dtopt Option
|
8038 |
-
*
|
|
|
8039 |
* @example
|
8040 |
* $(document).ready( function() {
|
8041 |
* $('#example').dataTable( {
|
8042 |
-
* "
|
8043 |
* } );
|
8044 |
* } )
|
8045 |
*/
|
@@ -8049,15 +9894,17 @@
|
|
8049 |
/**
|
8050 |
* Enable or disable automatic column width calculation. This can be disabled
|
8051 |
* as an optimisation (it takes some time to calculate the widths) if the
|
8052 |
-
* tables widths are passed in using
|
8053 |
* @type boolean
|
8054 |
* @default true
|
|
|
8055 |
* @dtopt Features
|
8056 |
-
*
|
|
|
8057 |
* @example
|
8058 |
* $(document).ready( function () {
|
8059 |
* $('#example').dataTable( {
|
8060 |
-
* "
|
8061 |
* } );
|
8062 |
* } );
|
8063 |
*/
|
@@ -8072,13 +9919,15 @@
|
|
8072 |
* time.
|
8073 |
* @type boolean
|
8074 |
* @default false
|
|
|
8075 |
* @dtopt Features
|
8076 |
-
*
|
|
|
8077 |
* @example
|
8078 |
* $(document).ready( function() {
|
8079 |
-
*
|
8080 |
-
* "
|
8081 |
-
* "
|
8082 |
* } );
|
8083 |
* } );
|
8084 |
*/
|
@@ -8086,25 +9935,27 @@
|
|
8086 |
|
8087 |
|
8088 |
/**
|
8089 |
-
* Replace a DataTable which matches the given selector and replace it with
|
8090 |
* one which has the properties of the new initialisation object passed. If no
|
8091 |
* table matches the selector, then the new DataTable will be constructed as
|
8092 |
* per normal.
|
8093 |
* @type boolean
|
8094 |
* @default false
|
|
|
8095 |
* @dtopt Options
|
8096 |
-
*
|
|
|
8097 |
* @example
|
8098 |
* $(document).ready( function() {
|
8099 |
* $('#example').dataTable( {
|
8100 |
-
* "
|
8101 |
-
* "
|
8102 |
* } );
|
8103 |
-
*
|
8104 |
* // Some time later....
|
8105 |
* $('#example').dataTable( {
|
8106 |
-
* "
|
8107 |
-
* "
|
8108 |
* } );
|
8109 |
* } );
|
8110 |
*/
|
@@ -8118,15 +9969,17 @@
|
|
8118 |
* specified (this allow matching across multiple columns). Note that if you
|
8119 |
* wish to use filtering in DataTables this must remain 'true' - to remove the
|
8120 |
* default filtering input box and retain filtering abilities, please use
|
8121 |
-
* {@link DataTable.defaults.
|
8122 |
* @type boolean
|
8123 |
* @default true
|
|
|
8124 |
* @dtopt Features
|
8125 |
-
*
|
|
|
8126 |
* @example
|
8127 |
* $(document).ready( function () {
|
8128 |
* $('#example').dataTable( {
|
8129 |
-
* "
|
8130 |
* } );
|
8131 |
* } );
|
8132 |
*/
|
@@ -8134,17 +9987,19 @@
|
|
8134 |
|
8135 |
|
8136 |
/**
|
8137 |
-
* Enable or disable the table information display. This shows information
|
8138 |
* about the data that is currently visible on the page, including information
|
8139 |
* about filtered data if that action is being performed.
|
8140 |
* @type boolean
|
8141 |
* @default true
|
|
|
8142 |
* @dtopt Features
|
8143 |
-
*
|
|
|
8144 |
* @example
|
8145 |
* $(document).ready( function () {
|
8146 |
* $('#example').dataTable( {
|
8147 |
-
* "
|
8148 |
* } );
|
8149 |
* } );
|
8150 |
*/
|
@@ -8157,12 +10012,14 @@
|
|
8157 |
* traditionally used).
|
8158 |
* @type boolean
|
8159 |
* @default false
|
|
|
8160 |
* @dtopt Features
|
8161 |
-
*
|
|
|
8162 |
* @example
|
8163 |
* $(document).ready( function() {
|
8164 |
* $('#example').dataTable( {
|
8165 |
-
* "
|
8166 |
* } );
|
8167 |
* } );
|
8168 |
*/
|
@@ -8171,15 +10028,17 @@
|
|
8171 |
|
8172 |
/**
|
8173 |
* Allows the end user to select the size of a formatted page from a select
|
8174 |
-
* menu (sizes are 10, 25, 50 and 100). Requires pagination (
|
8175 |
* @type boolean
|
8176 |
* @default true
|
|
|
8177 |
* @dtopt Features
|
8178 |
-
*
|
|
|
8179 |
* @example
|
8180 |
* $(document).ready( function () {
|
8181 |
* $('#example').dataTable( {
|
8182 |
-
* "
|
8183 |
* } );
|
8184 |
* } );
|
8185 |
*/
|
@@ -8190,12 +10049,14 @@
|
|
8190 |
* Enable or disable pagination.
|
8191 |
* @type boolean
|
8192 |
* @default true
|
|
|
8193 |
* @dtopt Features
|
8194 |
-
*
|
|
|
8195 |
* @example
|
8196 |
* $(document).ready( function () {
|
8197 |
* $('#example').dataTable( {
|
8198 |
-
* "
|
8199 |
* } );
|
8200 |
* } );
|
8201 |
*/
|
@@ -8209,12 +10070,14 @@
|
|
8209 |
* the entries.
|
8210 |
* @type boolean
|
8211 |
* @default false
|
|
|
8212 |
* @dtopt Features
|
8213 |
-
*
|
|
|
8214 |
* @example
|
8215 |
* $(document).ready( function () {
|
8216 |
* $('#example').dataTable( {
|
8217 |
-
* "
|
8218 |
* } );
|
8219 |
* } );
|
8220 |
*/
|
@@ -8227,55 +10090,38 @@
|
|
8227 |
* to simply return the object that has already been set up - it will not take
|
8228 |
* account of any changes you might have made to the initialisation object
|
8229 |
* passed to DataTables (setting this parameter to true is an acknowledgement
|
8230 |
-
* that you understand this).
|
8231 |
* you need.
|
8232 |
* @type boolean
|
8233 |
* @default false
|
|
|
8234 |
* @dtopt Options
|
8235 |
-
*
|
|
|
8236 |
* @example
|
8237 |
* $(document).ready( function() {
|
8238 |
* initTable();
|
8239 |
* tableActions();
|
8240 |
* } );
|
8241 |
-
*
|
8242 |
* function initTable ()
|
8243 |
* {
|
8244 |
* return $('#example').dataTable( {
|
8245 |
-
* "
|
8246 |
-
* "
|
8247 |
-
* "
|
8248 |
* } );
|
8249 |
* }
|
8250 |
-
*
|
8251 |
* function tableActions ()
|
8252 |
* {
|
8253 |
-
* var
|
8254 |
-
* // perform API operations with oTable
|
8255 |
* }
|
8256 |
*/
|
8257 |
"bRetrieve": false,
|
8258 |
|
8259 |
|
8260 |
-
/**
|
8261 |
-
* Indicate if DataTables should be allowed to set the padding / margin
|
8262 |
-
* etc for the scrolling header elements or not. Typically you will want
|
8263 |
-
* this.
|
8264 |
-
* @type boolean
|
8265 |
-
* @default true
|
8266 |
-
* @dtopt Options
|
8267 |
-
*
|
8268 |
-
* @example
|
8269 |
-
* $(document).ready( function() {
|
8270 |
-
* $('#example').dataTable( {
|
8271 |
-
* "bScrollAutoCss": false,
|
8272 |
-
* "sScrollY": "200px"
|
8273 |
-
* } );
|
8274 |
-
* } );
|
8275 |
-
*/
|
8276 |
-
"bScrollAutoCss": true,
|
8277 |
-
|
8278 |
-
|
8279 |
/**
|
8280 |
* When vertical (y) scrolling is enabled, DataTables will force the height of
|
8281 |
* the table's viewport to the given height at all times (useful for layout).
|
@@ -8285,13 +10131,15 @@
|
|
8285 |
* the result set will fit within the given Y height.
|
8286 |
* @type boolean
|
8287 |
* @default false
|
|
|
8288 |
* @dtopt Options
|
8289 |
-
*
|
|
|
8290 |
* @example
|
8291 |
* $(document).ready( function() {
|
8292 |
* $('#example').dataTable( {
|
8293 |
-
* "
|
8294 |
-
* "
|
8295 |
* } );
|
8296 |
* } );
|
8297 |
*/
|
@@ -8299,63 +10147,64 @@
|
|
8299 |
|
8300 |
|
8301 |
/**
|
8302 |
-
*
|
8303 |
-
*
|
8304 |
-
*
|
8305 |
-
* dataset. This cannot be used with pagination, which is automatically
|
8306 |
-
* disabled. Note - the Scroller extra for DataTables is recommended in
|
8307 |
-
* in preference to this option.
|
8308 |
* @type boolean
|
8309 |
* @default false
|
|
|
8310 |
* @dtopt Features
|
8311 |
-
*
|
|
|
|
|
8312 |
* @example
|
8313 |
-
* $(document).ready( function() {
|
8314 |
* $('#example').dataTable( {
|
8315 |
-
* "
|
8316 |
-
* "
|
8317 |
-
* "sScrollY": "200px"
|
8318 |
* } );
|
8319 |
* } );
|
8320 |
*/
|
8321 |
-
"
|
8322 |
|
8323 |
|
8324 |
/**
|
8325 |
-
*
|
8326 |
-
*
|
8327 |
-
* source to obtain the required data for each draw.
|
8328 |
* @type boolean
|
8329 |
-
* @default
|
|
|
8330 |
* @dtopt Features
|
8331 |
-
* @
|
8332 |
-
*
|
8333 |
* @example
|
8334 |
* $(document).ready( function () {
|
8335 |
* $('#example').dataTable( {
|
8336 |
-
* "
|
8337 |
-
* "sAjaxSource": "xhr.php"
|
8338 |
* } );
|
8339 |
* } );
|
8340 |
*/
|
8341 |
-
"
|
8342 |
|
8343 |
|
8344 |
/**
|
8345 |
-
* Enable or
|
8346 |
-
*
|
8347 |
* @type boolean
|
8348 |
* @default true
|
8349 |
-
*
|
8350 |
-
*
|
|
|
|
|
8351 |
* @example
|
|
|
8352 |
* $(document).ready( function () {
|
8353 |
* $('#example').dataTable( {
|
8354 |
-
* "
|
8355 |
* } );
|
8356 |
* } );
|
8357 |
*/
|
8358 |
-
"
|
8359 |
|
8360 |
|
8361 |
/**
|
@@ -8364,12 +10213,14 @@
|
|
8364 |
* This is useful when using complex headers.
|
8365 |
* @type boolean
|
8366 |
* @default false
|
|
|
8367 |
* @dtopt Options
|
8368 |
-
*
|
|
|
8369 |
* @example
|
8370 |
* $(document).ready( function() {
|
8371 |
* $('#example').dataTable( {
|
8372 |
-
* "
|
8373 |
* } );
|
8374 |
* } );
|
8375 |
*/
|
@@ -8377,19 +10228,21 @@
|
|
8377 |
|
8378 |
|
8379 |
/**
|
8380 |
-
* Enable or disable the addition of the classes
|
8381 |
-
*
|
8382 |
* presented as a feature switch as it can increase processing time (while
|
8383 |
* classes are removed and added) so for large data sets you might want to
|
8384 |
* turn this off.
|
8385 |
* @type boolean
|
8386 |
* @default true
|
|
|
8387 |
* @dtopt Features
|
8388 |
-
*
|
|
|
8389 |
* @example
|
8390 |
* $(document).ready( function () {
|
8391 |
* $('#example').dataTable( {
|
8392 |
-
* "
|
8393 |
* } );
|
8394 |
* } );
|
8395 |
*/
|
@@ -8397,70 +10250,50 @@
|
|
8397 |
|
8398 |
|
8399 |
/**
|
8400 |
-
* Enable or disable state saving. When enabled
|
8401 |
-
* table display information such as pagination information,
|
8402 |
-
* filtering and sorting. As such when the end user reloads
|
8403 |
-
* display display will match what thy had previously set up.
|
|
|
|
|
|
|
|
|
8404 |
* @type boolean
|
8405 |
* @default false
|
|
|
8406 |
* @dtopt Features
|
8407 |
-
*
|
|
|
8408 |
* @example
|
8409 |
* $(document).ready( function () {
|
8410 |
* $('#example').dataTable( {
|
8411 |
-
* "
|
8412 |
* } );
|
8413 |
* } );
|
8414 |
*/
|
8415 |
"bStateSave": false,
|
8416 |
|
8417 |
|
8418 |
-
/**
|
8419 |
-
* Customise the cookie and / or the parameters being stored when using
|
8420 |
-
* DataTables with state saving enabled. This function is called whenever
|
8421 |
-
* the cookie is modified, and it expects a fully formed cookie string to be
|
8422 |
-
* returned. Note that the data object passed in is a Javascript object which
|
8423 |
-
* must be converted to a string (JSON.stringify for example).
|
8424 |
-
* @type function
|
8425 |
-
* @param {string} sName Name of the cookie defined by DataTables
|
8426 |
-
* @param {object} oData Data to be stored in the cookie
|
8427 |
-
* @param {string} sExpires Cookie expires string
|
8428 |
-
* @param {string} sPath Path of the cookie to set
|
8429 |
-
* @returns {string} Cookie formatted string (which should be encoded by
|
8430 |
-
* using encodeURIComponent())
|
8431 |
-
* @dtopt Callbacks
|
8432 |
-
*
|
8433 |
-
* @example
|
8434 |
-
* $(document).ready( function () {
|
8435 |
-
* $('#example').dataTable( {
|
8436 |
-
* "fnCookieCallback": function (sName, oData, sExpires, sPath) {
|
8437 |
-
* // Customise oData or sName or whatever else here
|
8438 |
-
* return sName + "="+JSON.stringify(oData)+"; expires=" + sExpires +"; path=" + sPath;
|
8439 |
-
* }
|
8440 |
-
* } );
|
8441 |
-
* } );
|
8442 |
-
*/
|
8443 |
-
"fnCookieCallback": null,
|
8444 |
-
|
8445 |
-
|
8446 |
/**
|
8447 |
* This function is called when a TR element is created (and all TD child
|
8448 |
* elements have been inserted), or registered if using a DOM source, allowing
|
8449 |
* manipulation of the TR element (adding classes etc).
|
8450 |
* @type function
|
8451 |
-
* @param {node}
|
8452 |
-
* @param {array}
|
8453 |
-
* @param {int}
|
|
|
8454 |
* @dtopt Callbacks
|
8455 |
-
*
|
|
|
8456 |
* @example
|
8457 |
* $(document).ready( function() {
|
8458 |
* $('#example').dataTable( {
|
8459 |
-
* "
|
8460 |
* // Bold the grade for all 'A' grade browsers
|
8461 |
-
* if (
|
8462 |
* {
|
8463 |
-
* $('td:eq(4)',
|
8464 |
* }
|
8465 |
* }
|
8466 |
* } );
|
@@ -8473,13 +10306,15 @@
|
|
8473 |
* This function is called on every 'draw' event, and allows you to
|
8474 |
* dynamically modify any aspect you want about the created DOM.
|
8475 |
* @type function
|
8476 |
-
* @param {object}
|
|
|
8477 |
* @dtopt Callbacks
|
8478 |
-
*
|
|
|
8479 |
* @example
|
8480 |
* $(document).ready( function() {
|
8481 |
* $('#example').dataTable( {
|
8482 |
-
* "
|
8483 |
* alert( 'DataTables has redrawn the table' );
|
8484 |
* }
|
8485 |
* } );
|
@@ -8490,23 +10325,25 @@
|
|
8490 |
|
8491 |
/**
|
8492 |
* Identical to fnHeaderCallback() but for the table footer this function
|
8493 |
-
* allows you to modify the table footer on every 'draw'
|
8494 |
* @type function
|
8495 |
-
* @param {node}
|
8496 |
-
* @param {array}
|
8497 |
-
* @param {int}
|
8498 |
* display array
|
8499 |
-
* @param {int}
|
8500 |
* display array
|
8501 |
-
* @param {array int}
|
8502 |
* to the full data array
|
|
|
8503 |
* @dtopt Callbacks
|
8504 |
-
*
|
|
|
8505 |
* @example
|
8506 |
* $(document).ready( function() {
|
8507 |
* $('#example').dataTable( {
|
8508 |
-
* "
|
8509 |
-
*
|
8510 |
* }
|
8511 |
* } );
|
8512 |
* } )
|
@@ -8522,52 +10359,30 @@
|
|
8522 |
* function will override the default method DataTables uses.
|
8523 |
* @type function
|
8524 |
* @member
|
8525 |
-
* @param {int}
|
8526 |
* @returns {string} formatted string for DataTables to show the number
|
|
|
8527 |
* @dtopt Callbacks
|
8528 |
-
*
|
|
|
8529 |
* @example
|
|
|
|
|
8530 |
* $(document).ready( function() {
|
8531 |
* $('#example').dataTable( {
|
8532 |
-
* "
|
8533 |
-
*
|
8534 |
-
*
|
8535 |
-
*
|
8536 |
-
* var
|
8537 |
-
* s=(iIn+""),
|
8538 |
-
* a=s.split(""), out="",
|
8539 |
-
* iLen=s.length;
|
8540 |
-
*
|
8541 |
-
* for ( var i=0 ; i<iLen ; i++ ) {
|
8542 |
-
* if ( i%3 === 0 && i !== 0 ) {
|
8543 |
-
* out = "'"+out;
|
8544 |
-
* }
|
8545 |
-
* out = a[iLen-i-1]+out;
|
8546 |
-
* }
|
8547 |
-
* }
|
8548 |
-
* return out;
|
8549 |
* };
|
8550 |
* } );
|
8551 |
* } );
|
8552 |
*/
|
8553 |
-
"fnFormatNumber": function (
|
8554 |
-
|
8555 |
-
|
8556 |
-
|
8557 |
-
|
8558 |
-
}
|
8559 |
-
|
8560 |
-
var s=(iIn+""), a=s.split(""), out="", iLen=s.length;
|
8561 |
-
|
8562 |
-
for ( var i=0 ; i<iLen ; i++ )
|
8563 |
-
{
|
8564 |
-
if ( i%3 === 0 && i !== 0 )
|
8565 |
-
{
|
8566 |
-
out = this.oLanguage.sInfoThousands+out;
|
8567 |
-
}
|
8568 |
-
out = a[iLen-i-1]+out;
|
8569 |
-
}
|
8570 |
-
return out;
|
8571 |
},
|
8572 |
|
8573 |
|
@@ -8576,21 +10391,23 @@
|
|
8576 |
* dynamically modify the header row. This can be used to calculate and
|
8577 |
* display useful information about the table.
|
8578 |
* @type function
|
8579 |
-
* @param {node}
|
8580 |
-
* @param {array}
|
8581 |
-
* @param {int}
|
8582 |
* display array
|
8583 |
-
* @param {int}
|
8584 |
* display array
|
8585 |
-
* @param {array int}
|
8586 |
* to the full data array
|
|
|
8587 |
* @dtopt Callbacks
|
8588 |
-
*
|
|
|
8589 |
* @example
|
8590 |
* $(document).ready( function() {
|
8591 |
* $('#example').dataTable( {
|
8592 |
-
* "
|
8593 |
-
*
|
8594 |
* }
|
8595 |
* } );
|
8596 |
* } )
|
@@ -8606,20 +10423,22 @@
|
|
8606 |
* allows you to do exactly that.
|
8607 |
* @type function
|
8608 |
* @param {object} oSettings DataTables settings object
|
8609 |
-
* @param {int}
|
8610 |
-
* @param {int}
|
8611 |
-
* @param {int}
|
8612 |
* filtering)
|
8613 |
-
* @param {int}
|
8614 |
-
* @param {string}
|
8615 |
* own rules
|
8616 |
* @returns {string} The string to be displayed in the information element.
|
|
|
8617 |
* @dtopt Callbacks
|
8618 |
-
*
|
|
|
8619 |
* @example
|
8620 |
* $('#example').dataTable( {
|
8621 |
-
* "
|
8622 |
-
* return
|
8623 |
* }
|
8624 |
* } );
|
8625 |
*/
|
@@ -8632,15 +10451,17 @@
|
|
8632 |
* however, this does not hold true when using external language information
|
8633 |
* since that is obtained using an async XHR call.
|
8634 |
* @type function
|
8635 |
-
* @param {object}
|
8636 |
* @param {object} json The JSON object request from the server - only
|
8637 |
* present if client-side Ajax sourced data is used
|
|
|
8638 |
* @dtopt Callbacks
|
8639 |
-
*
|
|
|
8640 |
* @example
|
8641 |
* $(document).ready( function() {
|
8642 |
* $('#example').dataTable( {
|
8643 |
-
* "
|
8644 |
* alert( 'DataTables has finished its initialisation.' );
|
8645 |
* }
|
8646 |
* } );
|
@@ -8654,15 +10475,17 @@
|
|
8654 |
* draw by returning false, any other return (including undefined) results in
|
8655 |
* the full draw occurring).
|
8656 |
* @type function
|
8657 |
-
* @param {object}
|
8658 |
* @returns {boolean} False will cancel the draw, anything else (including no
|
8659 |
* return) will allow it to complete.
|
|
|
8660 |
* @dtopt Callbacks
|
8661 |
-
*
|
|
|
8662 |
* @example
|
8663 |
* $(document).ready( function() {
|
8664 |
* $('#example').dataTable( {
|
8665 |
-
* "
|
8666 |
* if ( $('#test').val() == 1 ) {
|
8667 |
* return false;
|
8668 |
* }
|
@@ -8678,21 +10501,22 @@
|
|
8678 |
* generated for each table draw, but before it is rendered on screen. This
|
8679 |
* function might be used for setting the row class name etc.
|
8680 |
* @type function
|
8681 |
-
* @param {node}
|
8682 |
-
* @param {array}
|
8683 |
-
* @param {int}
|
8684 |
-
* @param {int}
|
8685 |
* rows (after filtering)
|
|
|
8686 |
* @dtopt Callbacks
|
8687 |
-
*
|
|
|
8688 |
* @example
|
8689 |
* $(document).ready( function() {
|
8690 |
* $('#example').dataTable( {
|
8691 |
-
* "
|
8692 |
* // Bold the grade for all 'A' grade browsers
|
8693 |
-
* if (
|
8694 |
-
*
|
8695 |
-
* $('td:eq(4)', nRow).html( '<b>A</b>' );
|
8696 |
* }
|
8697 |
* }
|
8698 |
* } );
|
@@ -8702,114 +10526,77 @@
|
|
8702 |
|
8703 |
|
8704 |
/**
|
|
|
|
|
|
|
8705 |
* This parameter allows you to override the default function which obtains
|
8706 |
-
* the data from the server
|
8707 |
-
*
|
8708 |
-
*
|
8709 |
* @type function
|
8710 |
* @member
|
8711 |
-
* @param {string}
|
8712 |
-
* @param {array}
|
8713 |
* to the server
|
8714 |
-
* @param {function}
|
8715 |
* process that will draw the data on the page.
|
8716 |
-
* @param {object}
|
|
|
8717 |
* @dtopt Callbacks
|
8718 |
* @dtopt Server-side
|
8719 |
-
*
|
8720 |
-
*
|
8721 |
-
*
|
8722 |
-
* $(document).ready( function() {
|
8723 |
-
* $('#example').dataTable( {
|
8724 |
-
* "bProcessing": true,
|
8725 |
-
* "bServerSide": true,
|
8726 |
-
* "sAjaxSource": "xhr.php",
|
8727 |
-
* "fnServerData": function ( sSource, aoData, fnCallback, oSettings ) {
|
8728 |
-
* oSettings.jqXHR = $.ajax( {
|
8729 |
-
* "dataType": 'json',
|
8730 |
-
* "type": "POST",
|
8731 |
-
* "url": sSource,
|
8732 |
-
* "data": aoData,
|
8733 |
-
* "success": fnCallback
|
8734 |
-
* } );
|
8735 |
-
* }
|
8736 |
-
* } );
|
8737 |
-
* } );
|
8738 |
*/
|
8739 |
-
"fnServerData":
|
8740 |
-
oSettings.jqXHR = $.ajax( {
|
8741 |
-
"url": sUrl,
|
8742 |
-
"data": aoData,
|
8743 |
-
"success": function (json) {
|
8744 |
-
if ( json.sError ) {
|
8745 |
-
oSettings.oApi._fnLog( oSettings, 0, json.sError );
|
8746 |
-
}
|
8747 |
-
|
8748 |
-
$(oSettings.oInstance).trigger('xhr', [oSettings, json]);
|
8749 |
-
fnCallback( json );
|
8750 |
-
},
|
8751 |
-
"dataType": "json",
|
8752 |
-
"cache": false,
|
8753 |
-
"type": oSettings.sServerMethod,
|
8754 |
-
"error": function (xhr, error, thrown) {
|
8755 |
-
if ( error == "parsererror" ) {
|
8756 |
-
oSettings.oApi._fnLog( oSettings, 0, "DataTables warning: JSON data from "+
|
8757 |
-
"server could not be parsed. This is caused by a JSON formatting error." );
|
8758 |
-
}
|
8759 |
-
}
|
8760 |
-
} );
|
8761 |
-
},
|
8762 |
|
8763 |
|
8764 |
/**
|
8765 |
-
*
|
|
|
|
|
|
|
8766 |
* request - for example custom filtering information, and this callback
|
8767 |
* function makes it trivial to send extra information to the server. The
|
8768 |
* passed in parameter is the data set that has been constructed by
|
8769 |
* DataTables, and you can add to this or modify it as you require.
|
8770 |
* @type function
|
8771 |
-
* @param {array}
|
8772 |
* pairs) that has been constructed by DataTables and will be sent to the
|
8773 |
* server. In the case of Ajax sourced data with server-side processing
|
8774 |
* this will be an empty array, for server-side processing there will be a
|
8775 |
* significant number of parameters!
|
8776 |
-
* @returns {undefined} Ensure that you modify the
|
8777 |
* as this is passed by reference.
|
|
|
8778 |
* @dtopt Callbacks
|
8779 |
* @dtopt Server-side
|
8780 |
-
*
|
8781 |
-
*
|
8782 |
-
*
|
8783 |
-
* $('#example').dataTable( {
|
8784 |
-
* "bProcessing": true,
|
8785 |
-
* "bServerSide": true,
|
8786 |
-
* "sAjaxSource": "scripts/server_processing.php",
|
8787 |
-
* "fnServerParams": function ( aoData ) {
|
8788 |
-
* aoData.push( { "name": "more_data", "value": "my_value" } );
|
8789 |
-
* }
|
8790 |
-
* } );
|
8791 |
-
* } );
|
8792 |
*/
|
8793 |
"fnServerParams": null,
|
8794 |
|
8795 |
|
8796 |
/**
|
8797 |
* Load the table state. With this function you can define from where, and how, the
|
8798 |
-
* state of a table is loaded. By default DataTables will load from
|
8799 |
-
*
|
8800 |
* @type function
|
8801 |
* @member
|
8802 |
-
* @param {object}
|
8803 |
* @return {object} The DataTables state object to be loaded
|
|
|
8804 |
* @dtopt Callbacks
|
8805 |
-
*
|
|
|
8806 |
* @example
|
8807 |
* $(document).ready( function() {
|
8808 |
* $('#example').dataTable( {
|
8809 |
-
* "
|
8810 |
-
* "
|
8811 |
* var o;
|
8812 |
-
*
|
8813 |
* // Send an Ajax request to the server to get the data. Note that
|
8814 |
* // this is a synchronous request.
|
8815 |
* $.ajax( {
|
@@ -8820,55 +10607,53 @@
|
|
8820 |
* o = json;
|
8821 |
* }
|
8822 |
* } );
|
8823 |
-
*
|
8824 |
* return o;
|
8825 |
* }
|
8826 |
* } );
|
8827 |
* } );
|
8828 |
*/
|
8829 |
-
"
|
8830 |
-
var sData = this.oApi._fnReadCookie( oSettings.sCookiePrefix+oSettings.sInstance );
|
8831 |
-
var oData;
|
8832 |
-
|
8833 |
try {
|
8834 |
-
|
8835 |
-
|
8836 |
-
|
8837 |
-
|
8838 |
-
|
8839 |
-
|
8840 |
-
return oData;
|
8841 |
},
|
8842 |
|
8843 |
|
8844 |
/**
|
8845 |
* Callback which allows modification of the saved state prior to loading that state.
|
8846 |
* This callback is called when the table is loading state from the stored data, but
|
8847 |
-
* prior to the settings object being modified by the saved state. Note that for
|
8848 |
-
* plug-in authors, you should use the
|
8849 |
* a plug-in.
|
8850 |
* @type function
|
8851 |
-
* @param {object}
|
8852 |
-
* @param {object}
|
|
|
8853 |
* @dtopt Callbacks
|
8854 |
-
*
|
|
|
8855 |
* @example
|
8856 |
* // Remove a saved filter, so filtering is never loaded
|
8857 |
* $(document).ready( function() {
|
8858 |
* $('#example').dataTable( {
|
8859 |
-
* "
|
8860 |
-
* "
|
8861 |
-
*
|
8862 |
* }
|
8863 |
* } );
|
8864 |
* } );
|
8865 |
-
*
|
8866 |
* @example
|
8867 |
* // Disallow state loading by returning false
|
8868 |
* $(document).ready( function() {
|
8869 |
* $('#example').dataTable( {
|
8870 |
-
* "
|
8871 |
-
* "
|
8872 |
* return false;
|
8873 |
* }
|
8874 |
* } );
|
@@ -8881,17 +10666,19 @@
|
|
8881 |
* Callback that is called when the state has been loaded from the state saving method
|
8882 |
* and the DataTables settings object has been modified as a result of the loaded state.
|
8883 |
* @type function
|
8884 |
-
* @param {object}
|
8885 |
-
* @param {object}
|
|
|
8886 |
* @dtopt Callbacks
|
8887 |
-
*
|
|
|
8888 |
* @example
|
8889 |
* // Show an alert with the filtering value that was saved
|
8890 |
* $(document).ready( function() {
|
8891 |
* $('#example').dataTable( {
|
8892 |
-
* "
|
8893 |
-
* "
|
8894 |
-
* alert( 'Saved filter was: '+
|
8895 |
* }
|
8896 |
* } );
|
8897 |
* } );
|
@@ -8901,23 +10688,25 @@
|
|
8901 |
|
8902 |
/**
|
8903 |
* Save the table state. This function allows you to define where and how the state
|
8904 |
-
* information for the table is stored
|
8905 |
-
* might
|
8906 |
* @type function
|
8907 |
* @member
|
8908 |
-
* @param {object}
|
8909 |
-
* @param {object}
|
|
|
8910 |
* @dtopt Callbacks
|
8911 |
-
*
|
|
|
8912 |
* @example
|
8913 |
* $(document).ready( function() {
|
8914 |
* $('#example').dataTable( {
|
8915 |
-
* "
|
8916 |
-
* "
|
8917 |
* // Send an Ajax request to the server with the state object
|
8918 |
* $.ajax( {
|
8919 |
* "url": "/state_save",
|
8920 |
-
* "data":
|
8921 |
* "dataType": "json",
|
8922 |
* "method": "POST"
|
8923 |
* "success": function () {}
|
@@ -8926,35 +10715,36 @@
|
|
8926 |
* } );
|
8927 |
* } );
|
8928 |
*/
|
8929 |
-
"
|
8930 |
-
|
8931 |
-
|
8932 |
-
|
8933 |
-
|
8934 |
-
|
8935 |
-
|
8936 |
-
);
|
8937 |
},
|
8938 |
|
8939 |
|
8940 |
/**
|
8941 |
-
* Callback which allows modification of the state to be saved. Called when the table
|
8942 |
* has changed state a new state save is required. This method allows modification of
|
8943 |
-
* the state saving object prior to actually doing the save, including addition or
|
8944 |
-
* other state properties or modification. Note that for plug-in authors, you should
|
8945 |
-
* use the
|
8946 |
* @type function
|
8947 |
-
* @param {object}
|
8948 |
-
* @param {object}
|
|
|
8949 |
* @dtopt Callbacks
|
8950 |
-
*
|
|
|
8951 |
* @example
|
8952 |
* // Remove a saved filter, so filtering is never saved
|
8953 |
* $(document).ready( function() {
|
8954 |
* $('#example').dataTable( {
|
8955 |
-
* "
|
8956 |
-
* "
|
8957 |
-
*
|
8958 |
* }
|
8959 |
* } );
|
8960 |
* } );
|
@@ -8963,26 +10753,29 @@
|
|
8963 |
|
8964 |
|
8965 |
/**
|
8966 |
-
* Duration
|
8967 |
-
*
|
|
|
8968 |
* @type int
|
8969 |
* @default 7200 <i>(2 hours)</i>
|
|
|
8970 |
* @dtopt Options
|
8971 |
-
*
|
|
|
8972 |
* @example
|
8973 |
* $(document).ready( function() {
|
8974 |
* $('#example').dataTable( {
|
8975 |
-
* "
|
8976 |
* } );
|
8977 |
* } )
|
8978 |
*/
|
8979 |
-
"
|
8980 |
|
8981 |
|
8982 |
/**
|
8983 |
* When enabled DataTables will not make a request to the server for the first
|
8984 |
* page draw - rather it will use the data already on the page (no sorting etc
|
8985 |
-
* will be applied to it), thus saving on an XHR at load time.
|
8986 |
* is used to indicate that deferred loading is required, but it is also used
|
8987 |
* to tell DataTables how many records there are in the full table (allowing
|
8988 |
* the information element and pagination to be displayed correctly). In the case
|
@@ -8993,27 +10786,29 @@
|
|
8993 |
* to be shown correctly).
|
8994 |
* @type int | array
|
8995 |
* @default null
|
|
|
8996 |
* @dtopt Options
|
8997 |
-
*
|
|
|
8998 |
* @example
|
8999 |
* // 57 records available in the table, no filtering applied
|
9000 |
* $(document).ready( function() {
|
9001 |
* $('#example').dataTable( {
|
9002 |
-
* "
|
9003 |
-
* "
|
9004 |
-
* "
|
9005 |
* } );
|
9006 |
* } );
|
9007 |
-
*
|
9008 |
* @example
|
9009 |
* // 57 records after filtering, 100 without filtering (an initial filter applied)
|
9010 |
* $(document).ready( function() {
|
9011 |
* $('#example').dataTable( {
|
9012 |
-
* "
|
9013 |
-
* "
|
9014 |
-
* "
|
9015 |
-
* "
|
9016 |
-
* "
|
9017 |
* }
|
9018 |
* } );
|
9019 |
* } );
|
@@ -9023,16 +10818,18 @@
|
|
9023 |
|
9024 |
/**
|
9025 |
* Number of rows to display on a single page when using pagination. If
|
9026 |
-
* feature enabled (
|
9027 |
* this to a custom setting using a pop-up menu.
|
9028 |
* @type int
|
9029 |
* @default 10
|
|
|
9030 |
* @dtopt Options
|
9031 |
-
*
|
|
|
9032 |
* @example
|
9033 |
* $(document).ready( function() {
|
9034 |
* $('#example').dataTable( {
|
9035 |
-
* "
|
9036 |
* } );
|
9037 |
* } )
|
9038 |
*/
|
@@ -9046,66 +10843,60 @@
|
|
9046 |
* the third page, it should be "20".
|
9047 |
* @type int
|
9048 |
* @default 0
|
|
|
9049 |
* @dtopt Options
|
9050 |
-
*
|
|
|
9051 |
* @example
|
9052 |
* $(document).ready( function() {
|
9053 |
* $('#example').dataTable( {
|
9054 |
-
* "
|
9055 |
* } );
|
9056 |
* } )
|
9057 |
*/
|
9058 |
"iDisplayStart": 0,
|
9059 |
|
9060 |
|
9061 |
-
/**
|
9062 |
-
* The scroll gap is the amount of scrolling that is left to go before
|
9063 |
-
* DataTables will load the next 'page' of data automatically. You typically
|
9064 |
-
* want a gap which is big enough that the scrolling will be smooth for the
|
9065 |
-
* user, while not so large that it will load more data than need.
|
9066 |
-
* @type int
|
9067 |
-
* @default 100
|
9068 |
-
* @dtopt Options
|
9069 |
-
*
|
9070 |
-
* @example
|
9071 |
-
* $(document).ready( function() {
|
9072 |
-
* $('#example').dataTable( {
|
9073 |
-
* "bScrollInfinite": true,
|
9074 |
-
* "bScrollCollapse": true,
|
9075 |
-
* "sScrollY": "200px",
|
9076 |
-
* "iScrollLoadGap": 50
|
9077 |
-
* } );
|
9078 |
-
* } );
|
9079 |
-
*/
|
9080 |
-
"iScrollLoadGap": 100,
|
9081 |
-
|
9082 |
-
|
9083 |
/**
|
9084 |
* By default DataTables allows keyboard navigation of the table (sorting, paging,
|
9085 |
-
* and filtering) by adding a tabindex attribute to the required elements. This
|
9086 |
* allows you to tab through the controls and press the enter key to activate them.
|
9087 |
* The tabindex is default 0, meaning that the tab follows the flow of the document.
|
9088 |
* You can overrule this using this parameter if you wish. Use a value of -1 to
|
9089 |
* disable built-in keyboard navigation.
|
9090 |
* @type int
|
9091 |
* @default 0
|
|
|
9092 |
* @dtopt Options
|
9093 |
-
*
|
|
|
9094 |
* @example
|
9095 |
* $(document).ready( function() {
|
9096 |
* $('#example').dataTable( {
|
9097 |
-
* "
|
9098 |
* } );
|
9099 |
* } );
|
9100 |
*/
|
9101 |
"iTabIndex": 0,
|
9102 |
|
9103 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9104 |
/**
|
9105 |
* All strings that DataTables uses in the user interface that it creates
|
9106 |
* are defined in this object, allowing you to modified them individually or
|
9107 |
* completely replace them all as required.
|
9108 |
* @namespace
|
|
|
9109 |
*/
|
9110 |
"oLanguage": {
|
9111 |
/**
|
@@ -9113,6 +10904,7 @@
|
|
9113 |
* actually visible on the page, but will be read by screenreaders, and thus
|
9114 |
* must be internationalised as well).
|
9115 |
* @namespace
|
|
|
9116 |
*/
|
9117 |
"oAria": {
|
9118 |
/**
|
@@ -9121,14 +10913,16 @@
|
|
9121 |
* Note that the column header is prefixed to this string.
|
9122 |
* @type string
|
9123 |
* @default : activate to sort column ascending
|
|
|
9124 |
* @dtopt Language
|
9125 |
-
*
|
|
|
9126 |
* @example
|
9127 |
* $(document).ready( function() {
|
9128 |
* $('#example').dataTable( {
|
9129 |
-
* "
|
9130 |
-
* "
|
9131 |
-
* "
|
9132 |
* }
|
9133 |
* }
|
9134 |
* } );
|
@@ -9142,14 +10936,16 @@
|
|
9142 |
* Note that the column header is prefixed to this string.
|
9143 |
* @type string
|
9144 |
* @default : activate to sort column ascending
|
|
|
9145 |
* @dtopt Language
|
9146 |
-
*
|
|
|
9147 |
* @example
|
9148 |
* $(document).ready( function() {
|
9149 |
* $('#example').dataTable( {
|
9150 |
-
* "
|
9151 |
-
* "
|
9152 |
-
* "
|
9153 |
* }
|
9154 |
* }
|
9155 |
* } );
|
@@ -9159,9 +10955,10 @@
|
|
9159 |
},
|
9160 |
|
9161 |
/**
|
9162 |
-
* Pagination string used by DataTables for the
|
9163 |
-
* control types
|
9164 |
* @namespace
|
|
|
9165 |
*/
|
9166 |
"oPaginate": {
|
9167 |
/**
|
@@ -9169,77 +10966,85 @@
|
|
9169 |
* button to take the user to the first page.
|
9170 |
* @type string
|
9171 |
* @default First
|
|
|
9172 |
* @dtopt Language
|
9173 |
-
*
|
|
|
9174 |
* @example
|
9175 |
* $(document).ready( function() {
|
9176 |
* $('#example').dataTable( {
|
9177 |
-
* "
|
9178 |
-
* "
|
9179 |
-
* "
|
9180 |
* }
|
9181 |
* }
|
9182 |
* } );
|
9183 |
* } );
|
9184 |
*/
|
9185 |
"sFirst": "First",
|
9186 |
-
|
9187 |
-
|
9188 |
/**
|
9189 |
* Text to use when using the 'full_numbers' type of pagination for the
|
9190 |
* button to take the user to the last page.
|
9191 |
* @type string
|
9192 |
* @default Last
|
|
|
9193 |
* @dtopt Language
|
9194 |
-
*
|
|
|
9195 |
* @example
|
9196 |
* $(document).ready( function() {
|
9197 |
* $('#example').dataTable( {
|
9198 |
-
* "
|
9199 |
-
* "
|
9200 |
-
* "
|
9201 |
* }
|
9202 |
* }
|
9203 |
* } );
|
9204 |
* } );
|
9205 |
*/
|
9206 |
"sLast": "Last",
|
9207 |
-
|
9208 |
-
|
9209 |
/**
|
9210 |
-
* Text to use for the 'next' pagination button (to take the user to the
|
9211 |
* next page).
|
9212 |
* @type string
|
9213 |
* @default Next
|
|
|
9214 |
* @dtopt Language
|
9215 |
-
*
|
|
|
9216 |
* @example
|
9217 |
* $(document).ready( function() {
|
9218 |
* $('#example').dataTable( {
|
9219 |
-
* "
|
9220 |
-
* "
|
9221 |
-
* "
|
9222 |
* }
|
9223 |
* }
|
9224 |
* } );
|
9225 |
* } );
|
9226 |
*/
|
9227 |
"sNext": "Next",
|
9228 |
-
|
9229 |
-
|
9230 |
/**
|
9231 |
-
* Text to use for the 'previous' pagination button (to take the user to
|
9232 |
* the previous page).
|
9233 |
* @type string
|
9234 |
* @default Previous
|
|
|
9235 |
* @dtopt Language
|
9236 |
-
*
|
|
|
9237 |
* @example
|
9238 |
* $(document).ready( function() {
|
9239 |
* $('#example').dataTable( {
|
9240 |
-
* "
|
9241 |
-
* "
|
9242 |
-
* "
|
9243 |
* }
|
9244 |
* }
|
9245 |
* } );
|
@@ -9247,130 +11052,182 @@
|
|
9247 |
*/
|
9248 |
"sPrevious": "Previous"
|
9249 |
},
|
9250 |
-
|
9251 |
/**
|
9252 |
-
* This string is shown in preference to
|
9253 |
* empty of data (regardless of filtering). Note that this is an optional
|
9254 |
-
* parameter - if it is not given, the value of
|
9255 |
* instead (either the default or given value).
|
9256 |
* @type string
|
9257 |
* @default No data available in table
|
|
|
9258 |
* @dtopt Language
|
9259 |
-
*
|
|
|
9260 |
* @example
|
9261 |
* $(document).ready( function() {
|
9262 |
* $('#example').dataTable( {
|
9263 |
-
* "
|
9264 |
-
* "
|
9265 |
* }
|
9266 |
* } );
|
9267 |
* } );
|
9268 |
*/
|
9269 |
"sEmptyTable": "No data available in table",
|
9270 |
-
|
9271 |
-
|
9272 |
/**
|
9273 |
-
* This string gives information to the end user about the information
|
9274 |
-
* is current on display on the page. The
|
9275 |
-
*
|
9276 |
-
* can be
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9277 |
* @type string
|
9278 |
* @default Showing _START_ to _END_ of _TOTAL_ entries
|
|
|
9279 |
* @dtopt Language
|
9280 |
-
*
|
|
|
9281 |
* @example
|
9282 |
* $(document).ready( function() {
|
9283 |
* $('#example').dataTable( {
|
9284 |
-
* "
|
9285 |
-
* "
|
9286 |
* }
|
9287 |
* } );
|
9288 |
* } );
|
9289 |
*/
|
9290 |
"sInfo": "Showing _START_ to _END_ of _TOTAL_ entries",
|
9291 |
-
|
9292 |
-
|
9293 |
/**
|
9294 |
-
* Display information string for when the table is empty. Typically the
|
9295 |
-
* format of this string should match
|
9296 |
* @type string
|
9297 |
* @default Showing 0 to 0 of 0 entries
|
|
|
9298 |
* @dtopt Language
|
9299 |
-
*
|
|
|
9300 |
* @example
|
9301 |
* $(document).ready( function() {
|
9302 |
* $('#example').dataTable( {
|
9303 |
-
* "
|
9304 |
-
* "
|
9305 |
* }
|
9306 |
* } );
|
9307 |
* } );
|
9308 |
*/
|
9309 |
"sInfoEmpty": "Showing 0 to 0 of 0 entries",
|
9310 |
-
|
9311 |
-
|
9312 |
/**
|
9313 |
-
* When a user filters the information in a table, this string is appended
|
9314 |
-
* to the information (
|
9315 |
* is. The variable _MAX_ is dynamically updated.
|
9316 |
* @type string
|
9317 |
* @default (filtered from _MAX_ total entries)
|
|
|
9318 |
* @dtopt Language
|
9319 |
-
*
|
|
|
9320 |
* @example
|
9321 |
* $(document).ready( function() {
|
9322 |
* $('#example').dataTable( {
|
9323 |
-
* "
|
9324 |
-
* "
|
9325 |
* }
|
9326 |
* } );
|
9327 |
* } );
|
9328 |
*/
|
9329 |
"sInfoFiltered": "(filtered from _MAX_ total entries)",
|
9330 |
-
|
9331 |
-
|
9332 |
/**
|
9333 |
* If can be useful to append extra information to the info string at times,
|
9334 |
* and this variable does exactly that. This information will be appended to
|
9335 |
-
* the
|
9336 |
* being used) at all times.
|
9337 |
* @type string
|
9338 |
* @default <i>Empty string</i>
|
|
|
9339 |
* @dtopt Language
|
9340 |
-
*
|
|
|
9341 |
* @example
|
9342 |
* $(document).ready( function() {
|
9343 |
* $('#example').dataTable( {
|
9344 |
-
* "
|
9345 |
-
* "
|
9346 |
* }
|
9347 |
* } );
|
9348 |
* } );
|
9349 |
*/
|
9350 |
"sInfoPostFix": "",
|
9351 |
-
|
9352 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9353 |
/**
|
9354 |
-
* DataTables has a build in number formatter (
|
9355 |
-
* to format large numbers that are used in the table information.
|
9356 |
-
* default a comma is used, but this can be trivially changed to any
|
9357 |
* character you wish with this parameter.
|
9358 |
* @type string
|
9359 |
* @default ,
|
|
|
9360 |
* @dtopt Language
|
9361 |
-
*
|
|
|
9362 |
* @example
|
9363 |
* $(document).ready( function() {
|
9364 |
* $('#example').dataTable( {
|
9365 |
-
* "
|
9366 |
-
* "
|
9367 |
* }
|
9368 |
* } );
|
9369 |
* } );
|
9370 |
*/
|
9371 |
-
"
|
9372 |
-
|
9373 |
-
|
9374 |
/**
|
9375 |
* Detail the action that will be taken when the drop down menu for the
|
9376 |
* pagination length option is changed. The '_MENU_' variable is replaced
|
@@ -9378,24 +11235,26 @@
|
|
9378 |
* with a custom select box if required.
|
9379 |
* @type string
|
9380 |
* @default Show _MENU_ entries
|
|
|
9381 |
* @dtopt Language
|
9382 |
-
*
|
|
|
9383 |
* @example
|
9384 |
* // Language change only
|
9385 |
* $(document).ready( function() {
|
9386 |
* $('#example').dataTable( {
|
9387 |
-
* "
|
9388 |
-
* "
|
9389 |
* }
|
9390 |
* } );
|
9391 |
* } );
|
9392 |
-
*
|
9393 |
* @example
|
9394 |
* // Language and options change
|
9395 |
* $(document).ready( function() {
|
9396 |
* $('#example').dataTable( {
|
9397 |
-
* "
|
9398 |
-
* "
|
9399 |
* '<option value="10">10</option>'+
|
9400 |
* '<option value="20">20</option>'+
|
9401 |
* '<option value="30">30</option>'+
|
@@ -9408,8 +11267,8 @@
|
|
9408 |
* } );
|
9409 |
*/
|
9410 |
"sLengthMenu": "Show _MENU_ entries",
|
9411 |
-
|
9412 |
-
|
9413 |
/**
|
9414 |
* When using Ajax sourced data and during the first draw when DataTables is
|
9415 |
* gathering the data, this message is shown in an empty row in the table to
|
@@ -9418,39 +11277,43 @@
|
|
9418 |
* Ajax sourced data with client-side processing.
|
9419 |
* @type string
|
9420 |
* @default Loading...
|
|
|
9421 |
* @dtopt Language
|
9422 |
-
*
|
|
|
9423 |
* @example
|
9424 |
* $(document).ready( function() {
|
9425 |
* $('#example').dataTable( {
|
9426 |
-
* "
|
9427 |
-
* "
|
9428 |
* }
|
9429 |
* } );
|
9430 |
* } );
|
9431 |
*/
|
9432 |
"sLoadingRecords": "Loading...",
|
9433 |
-
|
9434 |
-
|
9435 |
/**
|
9436 |
* Text which is displayed when the table is processing a user action
|
9437 |
* (usually a sort command or similar).
|
9438 |
* @type string
|
9439 |
* @default Processing...
|
|
|
9440 |
* @dtopt Language
|
9441 |
-
*
|
|
|
9442 |
* @example
|
9443 |
* $(document).ready( function() {
|
9444 |
* $('#example').dataTable( {
|
9445 |
-
* "
|
9446 |
-
* "
|
9447 |
* }
|
9448 |
* } );
|
9449 |
* } );
|
9450 |
*/
|
9451 |
"sProcessing": "Processing...",
|
9452 |
-
|
9453 |
-
|
9454 |
/**
|
9455 |
* Details the actions that will be taken when the user types into the
|
9456 |
* filtering input text box. The variable "_INPUT_", if used in the string,
|
@@ -9459,31 +11322,44 @@
|
|
9459 |
* then the input box is appended to the string automatically.
|
9460 |
* @type string
|
9461 |
* @default Search:
|
|
|
9462 |
* @dtopt Language
|
9463 |
-
*
|
|
|
9464 |
* @example
|
9465 |
* // Input text box will be appended at the end automatically
|
9466 |
* $(document).ready( function() {
|
9467 |
* $('#example').dataTable( {
|
9468 |
-
* "
|
9469 |
-
* "
|
9470 |
* }
|
9471 |
* } );
|
9472 |
* } );
|
9473 |
-
*
|
9474 |
* @example
|
9475 |
* // Specify where the filter should appear
|
9476 |
* $(document).ready( function() {
|
9477 |
* $('#example').dataTable( {
|
9478 |
-
* "
|
9479 |
-
* "
|
9480 |
* }
|
9481 |
* } );
|
9482 |
* } );
|
9483 |
*/
|
9484 |
"sSearch": "Search:",
|
9485 |
-
|
9486 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9487 |
/**
|
9488 |
* All of the language information can be stored in a file on the
|
9489 |
* server-side, which DataTables will look up if this parameter is passed.
|
@@ -9493,33 +11369,37 @@
|
|
9493 |
* the example language files to see how this works in action.
|
9494 |
* @type string
|
9495 |
* @default <i>Empty string - i.e. disabled</i>
|
|
|
9496 |
* @dtopt Language
|
9497 |
-
*
|
|
|
9498 |
* @example
|
9499 |
* $(document).ready( function() {
|
9500 |
* $('#example').dataTable( {
|
9501 |
-
* "
|
9502 |
-
* "
|
9503 |
* }
|
9504 |
* } );
|
9505 |
* } );
|
9506 |
*/
|
9507 |
"sUrl": "",
|
9508 |
-
|
9509 |
-
|
9510 |
/**
|
9511 |
* Text shown inside the table records when the is no information to be
|
9512 |
-
* displayed after filtering.
|
9513 |
* information in the table at all (regardless of filtering).
|
9514 |
* @type string
|
9515 |
* @default No matching records found
|
|
|
9516 |
* @dtopt Language
|
9517 |
-
*
|
|
|
9518 |
* @example
|
9519 |
* $(document).ready( function() {
|
9520 |
* $('#example').dataTable( {
|
9521 |
-
* "
|
9522 |
-
* "
|
9523 |
* }
|
9524 |
* } );
|
9525 |
* } );
|
@@ -9530,20 +11410,22 @@
|
|
9530 |
|
9531 |
/**
|
9532 |
* This parameter allows you to have define the global filtering state at
|
9533 |
-
* initialisation time. As an object the
|
9534 |
-
* defined, but all other parameters are optional. When
|
9535 |
* the search string will be treated as a regular expression, when false
|
9536 |
-
* (default) it will be treated as a straight string. When
|
9537 |
* DataTables will use it's smart filtering methods (to word match at
|
9538 |
* any point in the data), when false this will not be done.
|
9539 |
* @namespace
|
9540 |
* @extends DataTable.models.oSearch
|
|
|
9541 |
* @dtopt Options
|
9542 |
-
*
|
|
|
9543 |
* @example
|
9544 |
* $(document).ready( function() {
|
9545 |
* $('#example').dataTable( {
|
9546 |
-
* "
|
9547 |
* } );
|
9548 |
* } )
|
9549 |
*/
|
@@ -9551,73 +11433,45 @@
|
|
9551 |
|
9552 |
|
9553 |
/**
|
9554 |
-
*
|
9555 |
-
*
|
9556 |
-
*
|
9557 |
-
*
|
|
|
|
|
|
|
|
|
9558 |
* @type string
|
9559 |
-
* @default
|
|
|
9560 |
* @dtopt Options
|
9561 |
* @dtopt Server-side
|
9562 |
-
*
|
9563 |
-
*
|
9564 |
-
*
|
9565 |
-
* $(document).ready( function() {
|
9566 |
-
* var oTable = $('#example').dataTable( {
|
9567 |
-
* "sAjaxSource": "sources/data.txt",
|
9568 |
-
* "sAjaxDataProp": "data"
|
9569 |
-
* } );
|
9570 |
-
* } );
|
9571 |
-
*
|
9572 |
-
* @example
|
9573 |
-
* // Get data from { "data": { "inner": [...] } }
|
9574 |
-
* $(document).ready( function() {
|
9575 |
-
* var oTable = $('#example').dataTable( {
|
9576 |
-
* "sAjaxSource": "sources/data.txt",
|
9577 |
-
* "sAjaxDataProp": "data.inner"
|
9578 |
-
* } );
|
9579 |
-
* } );
|
9580 |
*/
|
9581 |
-
"sAjaxDataProp": "
|
9582 |
|
9583 |
|
9584 |
/**
|
9585 |
-
*
|
9586 |
-
*
|
9587 |
-
*
|
9588 |
-
*
|
|
|
|
|
9589 |
* @type string
|
9590 |
* @default null
|
|
|
9591 |
* @dtopt Options
|
9592 |
* @dtopt Server-side
|
9593 |
-
*
|
9594 |
-
*
|
9595 |
-
*
|
9596 |
-
* $('#example').dataTable( {
|
9597 |
-
* "sAjaxSource": "http://www.sprymedia.co.uk/dataTables/json.php"
|
9598 |
-
* } );
|
9599 |
-
* } )
|
9600 |
*/
|
9601 |
"sAjaxSource": null,
|
9602 |
|
9603 |
|
9604 |
-
/**
|
9605 |
-
* This parameter can be used to override the default prefix that DataTables
|
9606 |
-
* assigns to a cookie when state saving is enabled.
|
9607 |
-
* @type string
|
9608 |
-
* @default SpryMedia_DataTables_
|
9609 |
-
* @dtopt Options
|
9610 |
-
*
|
9611 |
-
* @example
|
9612 |
-
* $(document).ready( function() {
|
9613 |
-
* $('#example').dataTable( {
|
9614 |
-
* "sCookiePrefix": "my_datatable_",
|
9615 |
-
* } );
|
9616 |
-
* } );
|
9617 |
-
*/
|
9618 |
-
"sCookiePrefix": "SpryMedia_DataTables_",
|
9619 |
-
|
9620 |
-
|
9621 |
/**
|
9622 |
* This initialisation variable allows you to specify exactly where in the
|
9623 |
* DOM you want DataTables to inject the various controls it adds to the page
|
@@ -9625,9 +11479,9 @@
|
|
9625 |
* table). DIV elements (with or without a custom class) can also be added to
|
9626 |
* aid styling. The follow syntax is used:
|
9627 |
* <ul>
|
9628 |
-
* <li>The following options are allowed:
|
9629 |
* <ul>
|
9630 |
-
* <li>'l' - Length changing</li
|
9631 |
* <li>'f' - Filtering input</li>
|
9632 |
* <li>'t' - The table!</li>
|
9633 |
* <li>'i' - Information</li>
|
@@ -9656,14 +11510,16 @@
|
|
9656 |
* </li>
|
9657 |
* </ul>
|
9658 |
* @type string
|
9659 |
-
* @default lfrtip <i>(when
|
9660 |
-
* <"H"lfr>t<"F"ip> <i>(when
|
|
|
9661 |
* @dtopt Options
|
9662 |
-
*
|
|
|
9663 |
* @example
|
9664 |
* $(document).ready( function() {
|
9665 |
* $('#example').dataTable( {
|
9666 |
-
* "
|
9667 |
* } );
|
9668 |
* } );
|
9669 |
*/
|
@@ -9671,38 +11527,71 @@
|
|
9671 |
|
9672 |
|
9673 |
/**
|
9674 |
-
*
|
9675 |
-
*
|
9676 |
-
*
|
9677 |
-
* @type
|
9678 |
-
* @default
|
|
|
9679 |
* @dtopt Options
|
9680 |
-
*
|
|
|
9681 |
* @example
|
9682 |
* $(document).ready( function() {
|
9683 |
* $('#example').dataTable( {
|
9684 |
-
* "
|
9685 |
* } );
|
9686 |
* } )
|
9687 |
*/
|
9688 |
-
"
|
9689 |
|
9690 |
|
9691 |
/**
|
9692 |
-
*
|
9693 |
-
*
|
9694 |
-
*
|
9695 |
-
*
|
9696 |
-
*
|
|
|
|
|
|
|
|
|
|
|
9697 |
* @type string
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9698 |
* @default <i>blank string - i.e. disabled</i>
|
|
|
9699 |
* @dtopt Features
|
9700 |
-
*
|
|
|
9701 |
* @example
|
9702 |
* $(document).ready( function() {
|
9703 |
* $('#example').dataTable( {
|
9704 |
-
* "
|
9705 |
-
* "
|
9706 |
* } );
|
9707 |
* } );
|
9708 |
*/
|
@@ -9718,13 +11607,15 @@
|
|
9718 |
* measurement).
|
9719 |
* @type string
|
9720 |
* @default <i>blank string - i.e. disabled</i>
|
|
|
9721 |
* @dtopt Options
|
9722 |
-
*
|
|
|
9723 |
* @example
|
9724 |
* $(document).ready( function() {
|
9725 |
* $('#example').dataTable( {
|
9726 |
-
* "
|
9727 |
-
* "
|
9728 |
* } );
|
9729 |
* } );
|
9730 |
*/
|
@@ -9740,13 +11631,15 @@
|
|
9740 |
* (in which case it will be treated as a pixel measurement).
|
9741 |
* @type string
|
9742 |
* @default <i>blank string - i.e. disabled</i>
|
|
|
9743 |
* @dtopt Features
|
9744 |
-
*
|
|
|
9745 |
* @example
|
9746 |
* $(document).ready( function() {
|
9747 |
* $('#example').dataTable( {
|
9748 |
-
* "
|
9749 |
-
* "
|
9750 |
* } );
|
9751 |
* } );
|
9752 |
*/
|
@@ -9754,60 +11647,87 @@
|
|
9754 |
|
9755 |
|
9756 |
/**
|
|
|
|
|
|
|
9757 |
* Set the HTTP method that is used to make the Ajax call for server-side
|
9758 |
* processing or Ajax sourced data.
|
9759 |
* @type string
|
9760 |
* @default GET
|
|
|
9761 |
* @dtopt Options
|
9762 |
* @dtopt Server-side
|
9763 |
-
*
|
9764 |
-
*
|
9765 |
-
*
|
9766 |
-
* $('#example').dataTable( {
|
9767 |
-
* "bServerSide": true,
|
9768 |
-
* "sAjaxSource": "scripts/post.php",
|
9769 |
-
* "sServerMethod": "POST"
|
9770 |
-
* } );
|
9771 |
-
* } );
|
9772 |
*/
|
9773 |
-
"sServerMethod": "GET"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9774 |
};
|
9775 |
|
|
|
9776 |
|
9777 |
|
|
|
|
|
|
|
|
|
|
|
|
|
9778 |
/**
|
9779 |
* Column options that can be given to DataTables at initialisation time.
|
9780 |
* @namespace
|
9781 |
*/
|
9782 |
-
DataTable.defaults.
|
9783 |
-
/**
|
9784 |
-
*
|
9785 |
-
*
|
9786 |
-
*
|
9787 |
-
*
|
|
|
|
|
9788 |
* @default null <i>Takes the value of the column index automatically</i>
|
|
|
|
|
9789 |
* @dtopt Columns
|
9790 |
-
*
|
9791 |
* @example
|
9792 |
-
* // Using
|
9793 |
* $(document).ready( function() {
|
9794 |
* $('#example').dataTable( {
|
9795 |
-
* "
|
9796 |
-
* { "
|
9797 |
-
* { "
|
9798 |
-
* { "
|
9799 |
* ]
|
9800 |
* } );
|
9801 |
* } );
|
9802 |
-
*
|
9803 |
* @example
|
9804 |
-
* // Using
|
9805 |
* $(document).ready( function() {
|
9806 |
* $('#example').dataTable( {
|
9807 |
-
* "
|
9808 |
-
* { "
|
9809 |
-
* { "
|
9810 |
-
* { "
|
9811 |
* null,
|
9812 |
* null
|
9813 |
* ]
|
@@ -9815,37 +11735,40 @@
|
|
9815 |
* } );
|
9816 |
*/
|
9817 |
"aDataSort": null,
|
|
|
9818 |
|
9819 |
|
9820 |
/**
|
9821 |
-
* You can control the default
|
9822 |
-
* of the sort handler (i.e. only allow ascending
|
9823 |
-
* parameter.
|
9824 |
* @type array
|
9825 |
* @default [ 'asc', 'desc' ]
|
|
|
|
|
9826 |
* @dtopt Columns
|
9827 |
-
*
|
9828 |
* @example
|
9829 |
-
* // Using
|
9830 |
* $(document).ready( function() {
|
9831 |
* $('#example').dataTable( {
|
9832 |
-
* "
|
9833 |
-
* { "
|
9834 |
-
* { "
|
9835 |
-
* { "
|
9836 |
* ]
|
9837 |
* } );
|
9838 |
* } );
|
9839 |
-
*
|
9840 |
* @example
|
9841 |
-
* // Using
|
9842 |
* $(document).ready( function() {
|
9843 |
* $('#example').dataTable( {
|
9844 |
-
* "
|
9845 |
* null,
|
9846 |
-
* { "
|
9847 |
-
* { "
|
9848 |
-
* { "
|
9849 |
* null
|
9850 |
* ]
|
9851 |
* } );
|
@@ -9858,23 +11781,25 @@
|
|
9858 |
* Enable or disable filtering on the data in this column.
|
9859 |
* @type boolean
|
9860 |
* @default true
|
|
|
|
|
9861 |
* @dtopt Columns
|
9862 |
-
*
|
9863 |
* @example
|
9864 |
-
* // Using
|
9865 |
* $(document).ready( function() {
|
9866 |
* $('#example').dataTable( {
|
9867 |
-
* "
|
9868 |
-
* { "
|
9869 |
* ] } );
|
9870 |
* } );
|
9871 |
-
*
|
9872 |
* @example
|
9873 |
-
* // Using
|
9874 |
* $(document).ready( function() {
|
9875 |
* $('#example').dataTable( {
|
9876 |
-
* "
|
9877 |
-
* { "
|
9878 |
* null,
|
9879 |
* null,
|
9880 |
* null,
|
@@ -9886,26 +11811,28 @@
|
|
9886 |
|
9887 |
|
9888 |
/**
|
9889 |
-
* Enable or disable
|
9890 |
* @type boolean
|
9891 |
* @default true
|
|
|
|
|
9892 |
* @dtopt Columns
|
9893 |
-
*
|
9894 |
* @example
|
9895 |
-
* // Using
|
9896 |
* $(document).ready( function() {
|
9897 |
* $('#example').dataTable( {
|
9898 |
-
* "
|
9899 |
-
* { "
|
9900 |
* ] } );
|
9901 |
* } );
|
9902 |
-
*
|
9903 |
* @example
|
9904 |
-
* // Using
|
9905 |
* $(document).ready( function() {
|
9906 |
* $('#example').dataTable( {
|
9907 |
-
* "
|
9908 |
-
* { "
|
9909 |
* null,
|
9910 |
* null,
|
9911 |
* null,
|
@@ -9916,44 +11843,29 @@
|
|
9916 |
"bSortable": true,
|
9917 |
|
9918 |
|
9919 |
-
/**
|
9920 |
-
* <code>Deprecated</code> When using fnRender() for a column, you may wish
|
9921 |
-
* to use the original data (before rendering) for sorting and filtering
|
9922 |
-
* (the default is to used the rendered data that the user can see). This
|
9923 |
-
* may be useful for dates etc.
|
9924 |
-
*
|
9925 |
-
* Please note that this option has now been deprecated and will be removed
|
9926 |
-
* in the next version of DataTables. Please use mRender / mData rather than
|
9927 |
-
* fnRender.
|
9928 |
-
* @type boolean
|
9929 |
-
* @default true
|
9930 |
-
* @dtopt Columns
|
9931 |
-
* @deprecated
|
9932 |
-
*/
|
9933 |
-
"bUseRendered": true,
|
9934 |
-
|
9935 |
-
|
9936 |
/**
|
9937 |
* Enable or disable the display of this column.
|
9938 |
* @type boolean
|
9939 |
* @default true
|
|
|
|
|
9940 |
* @dtopt Columns
|
9941 |
-
*
|
9942 |
* @example
|
9943 |
-
* // Using
|
9944 |
* $(document).ready( function() {
|
9945 |
* $('#example').dataTable( {
|
9946 |
-
* "
|
9947 |
-
* { "
|
9948 |
* ] } );
|
9949 |
* } );
|
9950 |
-
*
|
9951 |
* @example
|
9952 |
-
* // Using
|
9953 |
* $(document).ready( function() {
|
9954 |
* $('#example').dataTable( {
|
9955 |
-
* "
|
9956 |
-
* { "
|
9957 |
* null,
|
9958 |
* null,
|
9959 |
* null,
|
@@ -9962,29 +11874,31 @@
|
|
9962 |
* } );
|
9963 |
*/
|
9964 |
"bVisible": true,
|
9965 |
-
|
9966 |
-
|
9967 |
/**
|
9968 |
* Developer definable function that is called whenever a cell is created (Ajax source,
|
9969 |
* etc) or processed for input (DOM source). This can be used as a compliment to mRender
|
9970 |
* allowing you to modify the DOM element (add background colour for example) when the
|
9971 |
* element is available.
|
9972 |
* @type function
|
9973 |
-
* @param {element}
|
9974 |
-
* @param {*}
|
9975 |
-
* @param {array|object}
|
9976 |
-
* @param {int}
|
9977 |
-
* @param {int}
|
|
|
|
|
9978 |
* @dtopt Columns
|
9979 |
-
*
|
9980 |
* @example
|
9981 |
* $(document).ready( function() {
|
9982 |
* $('#example').dataTable( {
|
9983 |
-
* "
|
9984 |
-
* "
|
9985 |
-
* "
|
9986 |
-
* if (
|
9987 |
-
* $(
|
9988 |
* }
|
9989 |
* }
|
9990 |
* } ]
|
@@ -9995,132 +11909,139 @@
|
|
9995 |
|
9996 |
|
9997 |
/**
|
9998 |
-
*
|
9999 |
-
*
|
10000 |
-
*
|
10001 |
-
*
|
10002 |
-
*
|
10003 |
-
* fnRender.
|
10004 |
-
* @type function
|
10005 |
-
* @param {object} o Object with the following parameters:
|
10006 |
-
* @param {int} o.iDataRow The row in aoData
|
10007 |
-
* @param {int} o.iDataColumn The column in question
|
10008 |
-
* @param {array} o.aData The data for the row in question
|
10009 |
-
* @param {object} o.oSettings The settings object for this DataTables instance
|
10010 |
-
* @param {object} o.mDataProp The data property used for this column
|
10011 |
-
* @param {*} val The current cell value
|
10012 |
-
* @returns {string} The string you which to use in the display
|
10013 |
-
* @dtopt Columns
|
10014 |
-
* @deprecated
|
10015 |
*/
|
10016 |
-
"fnRender": null,
|
10017 |
|
10018 |
|
10019 |
/**
|
10020 |
-
*
|
10021 |
-
*
|
10022 |
-
*
|
10023 |
-
*
|
10024 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10025 |
* @dtopt Columns
|
10026 |
-
*
|
10027 |
-
* @example
|
10028 |
-
* // Using aoColumnDefs
|
10029 |
-
* $(document).ready( function() {
|
10030 |
-
* $('#example').dataTable( {
|
10031 |
-
* "aoColumnDefs": [
|
10032 |
-
* { "iDataSort": 1, "aTargets": [ 0 ] }
|
10033 |
-
* ]
|
10034 |
-
* } );
|
10035 |
-
* } );
|
10036 |
-
*
|
10037 |
* @example
|
10038 |
-
* //
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10039 |
* $(document).ready( function() {
|
10040 |
* $('#example').dataTable( {
|
10041 |
-
* "
|
10042 |
-
*
|
10043 |
-
*
|
10044 |
-
*
|
10045 |
-
*
|
10046 |
-
*
|
|
|
10047 |
* ]
|
10048 |
* } );
|
10049 |
-
* } );
|
10050 |
-
*/
|
10051 |
-
"iDataSort": -1,
|
10052 |
-
|
10053 |
-
|
10054 |
-
/**
|
10055 |
-
* This parameter has been replaced by mData in DataTables to ensure naming
|
10056 |
-
* consistency. mDataProp can still be used, as there is backwards compatibility
|
10057 |
-
* in DataTables for this option, but it is strongly recommended that you use
|
10058 |
-
* mData in preference to mDataProp.
|
10059 |
-
* @name DataTable.defaults.columns.mDataProp
|
10060 |
-
*/
|
10061 |
-
|
10062 |
-
|
10063 |
-
/**
|
10064 |
-
* This property can be used to read data from any JSON data source property,
|
10065 |
-
* including deeply nested objects / properties. mData can be given in a
|
10066 |
-
* number of different ways which effect its behaviour:
|
10067 |
-
* <ul>
|
10068 |
-
* <li>integer - treated as an array index for the data source. This is the
|
10069 |
-
* default that DataTables uses (incrementally increased for each column).</li>
|
10070 |
-
* <li>string - read an object property from the data source. Note that you can
|
10071 |
-
* use Javascript dotted notation to read deep properties / arrays from the
|
10072 |
-
* data source.</li>
|
10073 |
-
* <li>null - the sDefaultContent option will be used for the cell (null
|
10074 |
-
* by default, so you will need to specify the default content you want -
|
10075 |
-
* typically an empty string). This can be useful on generated columns such
|
10076 |
-
* as edit / delete action columns.</li>
|
10077 |
-
* <li>function - the function given will be executed whenever DataTables
|
10078 |
-
* needs to set or get the data for a cell in the column. The function
|
10079 |
-
* takes three parameters:
|
10080 |
-
* <ul>
|
10081 |
-
* <li>{array|object} The data source for the row</li>
|
10082 |
-
* <li>{string} The type call data requested - this will be 'set' when
|
10083 |
-
* setting data or 'filter', 'display', 'type', 'sort' or undefined when
|
10084 |
-
* gathering data. Note that when <i>undefined</i> is given for the type
|
10085 |
-
* DataTables expects to get the raw data for the object back</li>
|
10086 |
-
* <li>{*} Data to set when the second parameter is 'set'.</li>
|
10087 |
-
* </ul>
|
10088 |
-
* The return value from the function is not required when 'set' is the type
|
10089 |
-
* of call, but otherwise the return is what will be used for the data
|
10090 |
-
* requested.</li>
|
10091 |
-
* </ul>
|
10092 |
*
|
10093 |
-
* Note that prior to DataTables 1.9.2 mData was called mDataProp. The name change
|
10094 |
-
* reflects the flexibility of this property and is consistent with the naming of
|
10095 |
-
* mRender. If 'mDataProp' is given, then it will still be used by DataTables, as
|
10096 |
-
* it automatically maps the old name to the new if required.
|
10097 |
-
* @type string|int|function|null
|
10098 |
-
* @default null <i>Use automatically calculated column index</i>
|
10099 |
-
* @dtopt Columns
|
10100 |
-
*
|
10101 |
* @example
|
10102 |
-
* // Read
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10103 |
* $(document).ready( function() {
|
10104 |
-
*
|
10105 |
-
* "
|
10106 |
-
* "
|
10107 |
-
* { "
|
10108 |
-
* { "
|
10109 |
-
* { "
|
10110 |
-
* { "
|
10111 |
-
* { "
|
10112 |
* ]
|
10113 |
* } );
|
10114 |
* } );
|
10115 |
-
*
|
10116 |
* @example
|
10117 |
-
* // Using
|
10118 |
* // sorting, filtering and display. In this case, currency (price)
|
10119 |
* $(document).ready( function() {
|
10120 |
-
*
|
10121 |
-
* "
|
10122 |
-
* "
|
10123 |
-
* "
|
10124 |
* if (type === 'set') {
|
10125 |
* source.price = val;
|
10126 |
* // Store the computed dislay and filter values for efficiency
|
@@ -10140,73 +12061,150 @@
|
|
10140 |
* } ]
|
10141 |
* } );
|
10142 |
* } );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10143 |
*/
|
10144 |
"mData": null,
|
10145 |
|
10146 |
|
10147 |
/**
|
10148 |
-
* This property is the rendering partner to
|
10149 |
-
* when you want to manipulate data for display (including filtering,
|
10150 |
-
*
|
10151 |
-
*
|
10152 |
-
*
|
10153 |
-
* in a number of different ways to effect its
|
10154 |
-
*
|
10155 |
-
*
|
10156 |
-
*
|
10157 |
-
*
|
10158 |
-
*
|
10159 |
-
*
|
10160 |
-
*
|
10161 |
-
*
|
10162 |
-
*
|
10163 |
-
*
|
10164 |
-
*
|
10165 |
-
*
|
10166 |
-
*
|
10167 |
-
*
|
10168 |
-
*
|
10169 |
-
*
|
10170 |
-
*
|
10171 |
-
*
|
10172 |
-
*
|
10173 |
-
*
|
10174 |
-
*
|
10175 |
-
*
|
10176 |
-
*
|
10177 |
-
*
|
10178 |
-
*
|
10179 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10180 |
* @dtopt Columns
|
10181 |
-
*
|
10182 |
* @example
|
10183 |
* // Create a comma separated list from an array of objects
|
10184 |
* $(document).ready( function() {
|
10185 |
-
*
|
10186 |
-
* "
|
10187 |
-
* "
|
10188 |
-
* { "
|
10189 |
-
* { "
|
10190 |
* {
|
10191 |
-
* "
|
10192 |
-
* "
|
10193 |
* }
|
10194 |
* ]
|
10195 |
* } );
|
10196 |
* } );
|
10197 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10198 |
* @example
|
10199 |
* // Use as a function to create a link from the data source
|
10200 |
* $(document).ready( function() {
|
10201 |
-
*
|
10202 |
-
* "
|
10203 |
-
*
|
10204 |
-
* "
|
10205 |
-
* "
|
10206 |
-
* "mRender": function ( data, type, full ) {
|
10207 |
* return '<a href="'+data+'">Download</a>';
|
10208 |
* }
|
10209 |
-
* ]
|
10210 |
* } );
|
10211 |
* } );
|
10212 |
*/
|
@@ -10219,15 +12217,17 @@
|
|
10219 |
* to act as a header for a row (you may wish to add scope='row' to the TH elements).
|
10220 |
* @type string
|
10221 |
* @default td
|
|
|
|
|
10222 |
* @dtopt Columns
|
10223 |
-
*
|
10224 |
* @example
|
10225 |
* // Make the first column use TH cells
|
10226 |
* $(document).ready( function() {
|
10227 |
-
*
|
10228 |
-
* "
|
10229 |
-
* "
|
10230 |
-
* "
|
10231 |
* } ]
|
10232 |
* } );
|
10233 |
* } );
|
@@ -10239,24 +12239,26 @@
|
|
10239 |
* Class to give to each cell in this column.
|
10240 |
* @type string
|
10241 |
* @default <i>Empty string</i>
|
|
|
|
|
10242 |
* @dtopt Columns
|
10243 |
-
*
|
10244 |
* @example
|
10245 |
-
* // Using
|
10246 |
* $(document).ready( function() {
|
10247 |
* $('#example').dataTable( {
|
10248 |
-
* "
|
10249 |
-
* { "
|
10250 |
* ]
|
10251 |
* } );
|
10252 |
* } );
|
10253 |
-
*
|
10254 |
* @example
|
10255 |
-
* // Using
|
10256 |
* $(document).ready( function() {
|
10257 |
* $('#example').dataTable( {
|
10258 |
-
* "
|
10259 |
-
* { "
|
10260 |
* null,
|
10261 |
* null,
|
10262 |
* null,
|
@@ -10266,32 +12268,33 @@
|
|
10266 |
* } );
|
10267 |
*/
|
10268 |
"sClass": "",
|
10269 |
-
|
10270 |
/**
|
10271 |
* When DataTables calculates the column widths to assign to each column,
|
10272 |
* it finds the longest string in each column and then constructs a
|
10273 |
* temporary table and reads the widths from that. The problem with this
|
10274 |
-
* is that "mmm" is much wider then "iiii", but the latter is a longer
|
10275 |
* string - thus the calculation can go wrong (doing it properly and putting
|
10276 |
* it into an DOM object and measuring that is horribly(!) slow). Thus as
|
10277 |
* a "work around" we provide this option. It will append its value to the
|
10278 |
* text that is found to be the longest string for the column - i.e. padding.
|
10279 |
-
* Generally you shouldn't need this
|
10280 |
-
* general DataTables.net documentation
|
10281 |
* @type string
|
10282 |
* @default <i>Empty string<i>
|
|
|
|
|
10283 |
* @dtopt Columns
|
10284 |
-
*
|
10285 |
* @example
|
10286 |
-
* // Using
|
10287 |
* $(document).ready( function() {
|
10288 |
* $('#example').dataTable( {
|
10289 |
-
* "
|
10290 |
* null,
|
10291 |
* null,
|
10292 |
* null,
|
10293 |
* {
|
10294 |
-
* "
|
10295 |
* }
|
10296 |
* ]
|
10297 |
* } );
|
@@ -10302,37 +12305,39 @@
|
|
10302 |
|
10303 |
/**
|
10304 |
* Allows a default value to be given for a column's data, and will be used
|
10305 |
-
* whenever a null data source is encountered (this can be because
|
10306 |
* is set to null, or because the data source itself is null).
|
10307 |
* @type string
|
10308 |
* @default null
|
|
|
|
|
10309 |
* @dtopt Columns
|
10310 |
-
*
|
10311 |
* @example
|
10312 |
-
* // Using
|
10313 |
* $(document).ready( function() {
|
10314 |
* $('#example').dataTable( {
|
10315 |
-
* "
|
10316 |
* {
|
10317 |
-
* "
|
10318 |
-
* "
|
10319 |
-
* "
|
10320 |
* }
|
10321 |
* ]
|
10322 |
* } );
|
10323 |
* } );
|
10324 |
-
*
|
10325 |
* @example
|
10326 |
-
* // Using
|
10327 |
* $(document).ready( function() {
|
10328 |
* $('#example').dataTable( {
|
10329 |
-
* "
|
10330 |
* null,
|
10331 |
* null,
|
10332 |
* null,
|
10333 |
* {
|
10334 |
-
* "
|
10335 |
-
* "
|
10336 |
* }
|
10337 |
* ]
|
10338 |
* } );
|
@@ -10350,32 +12355,34 @@
|
|
10350 |
* client-side, your server-side code does not also need updating).
|
10351 |
* @type string
|
10352 |
* @default <i>Empty string</i>
|
|
|
|
|
10353 |
* @dtopt Columns
|
10354 |
-
*
|
10355 |
* @example
|
10356 |
-
* // Using
|
10357 |
* $(document).ready( function() {
|
10358 |
* $('#example').dataTable( {
|
10359 |
-
* "
|
10360 |
-
* { "
|
10361 |
-
* { "
|
10362 |
-
* { "
|
10363 |
-
* { "
|
10364 |
-
* { "
|
10365 |
* ]
|
10366 |
* } );
|
10367 |
* } );
|
10368 |
-
*
|
10369 |
* @example
|
10370 |
-
* // Using
|
10371 |
* $(document).ready( function() {
|
10372 |
* $('#example').dataTable( {
|
10373 |
-
* "
|
10374 |
-
* { "
|
10375 |
-
* { "
|
10376 |
-
* { "
|
10377 |
-
* { "
|
10378 |
-
* { "
|
10379 |
* ]
|
10380 |
* } );
|
10381 |
* } );
|
@@ -10384,38 +12391,40 @@
|
|
10384 |
|
10385 |
|
10386 |
/**
|
10387 |
-
* Defines a data source type for the
|
10388 |
* real-time information from the table (updating the internally cached
|
10389 |
-
* version) prior to
|
10390 |
-
* elements such as form inputs.
|
10391 |
* @type string
|
10392 |
* @default std
|
|
|
|
|
10393 |
* @dtopt Columns
|
10394 |
-
*
|
10395 |
* @example
|
10396 |
-
* // Using
|
10397 |
* $(document).ready( function() {
|
10398 |
* $('#example').dataTable( {
|
10399 |
-
* "
|
10400 |
-
* { "
|
10401 |
-
* { "
|
10402 |
-
* { "
|
10403 |
-
* { "
|
10404 |
* ]
|
10405 |
* } );
|
10406 |
* } );
|
10407 |
-
*
|
10408 |
* @example
|
10409 |
-
* // Using
|
10410 |
* $(document).ready( function() {
|
10411 |
* $('#example').dataTable( {
|
10412 |
-
* "
|
10413 |
* null,
|
10414 |
* null,
|
10415 |
-
* { "
|
10416 |
-
* { "
|
10417 |
-
* { "
|
10418 |
-
* { "
|
10419 |
* ]
|
10420 |
* } );
|
10421 |
* } );
|
@@ -10426,26 +12435,28 @@
|
|
10426 |
/**
|
10427 |
* The title of this column.
|
10428 |
* @type string
|
10429 |
-
* @default null <i>Derived from the 'TH' value for this column in the
|
10430 |
* original HTML table.</i>
|
|
|
|
|
10431 |
* @dtopt Columns
|
10432 |
-
*
|
10433 |
* @example
|
10434 |
-
* // Using
|
10435 |
* $(document).ready( function() {
|
10436 |
* $('#example').dataTable( {
|
10437 |
-
* "
|
10438 |
-
* { "
|
10439 |
* ]
|
10440 |
* } );
|
10441 |
* } );
|
10442 |
-
*
|
10443 |
* @example
|
10444 |
-
* // Using
|
10445 |
* $(document).ready( function() {
|
10446 |
* $('#example').dataTable( {
|
10447 |
-
* "
|
10448 |
-
* { "
|
10449 |
* null,
|
10450 |
* null,
|
10451 |
* null,
|
@@ -10458,33 +12469,35 @@
|
|
10458 |
|
10459 |
|
10460 |
/**
|
10461 |
-
* The type allows you to specify how the data for this column will be
|
10462 |
-
* Four types (string, numeric, date and html (which will strip
|
10463 |
-
* before
|
10464 |
-
* understood by Javascript's Date() object will be accepted as type
|
10465 |
-
* example: "Mar 26, 2008 5:03 PM". May take the values: 'string',
|
10466 |
-
* 'date' or 'html' (by default). Further types can be adding
|
10467 |
-
* plug-ins.
|
10468 |
* @type string
|
10469 |
* @default null <i>Auto-detected from raw data</i>
|
|
|
|
|
10470 |
* @dtopt Columns
|
10471 |
-
*
|
10472 |
* @example
|
10473 |
-
* // Using
|
10474 |
* $(document).ready( function() {
|
10475 |
* $('#example').dataTable( {
|
10476 |
-
* "
|
10477 |
-
* { "
|
10478 |
* ]
|
10479 |
* } );
|
10480 |
* } );
|
10481 |
-
*
|
10482 |
* @example
|
10483 |
-
* // Using
|
10484 |
* $(document).ready( function() {
|
10485 |
* $('#example').dataTable( {
|
10486 |
-
* "
|
10487 |
-
* { "
|
10488 |
* null,
|
10489 |
* null,
|
10490 |
* null,
|
@@ -10498,29 +12511,31 @@
|
|
10498 |
|
10499 |
/**
|
10500 |
* Defining the width of the column, this parameter may take any CSS value
|
10501 |
-
* (3em, 20px etc). DataTables
|
10502 |
* been given a specific width through this interface ensuring that the table
|
10503 |
* remains readable.
|
10504 |
* @type string
|
10505 |
* @default null <i>Automatic</i>
|
|
|
|
|
10506 |
* @dtopt Columns
|
10507 |
-
*
|
10508 |
* @example
|
10509 |
-
* // Using
|
10510 |
* $(document).ready( function() {
|
10511 |
* $('#example').dataTable( {
|
10512 |
-
* "
|
10513 |
-
* { "
|
10514 |
* ]
|
10515 |
* } );
|
10516 |
* } );
|
10517 |
-
*
|
10518 |
* @example
|
10519 |
-
* // Using
|
10520 |
* $(document).ready( function() {
|
10521 |
* $('#example').dataTable( {
|
10522 |
-
* "
|
10523 |
-
* { "
|
10524 |
* null,
|
10525 |
* null,
|
10526 |
* null,
|
@@ -10532,6 +12547,8 @@
|
|
10532 |
"sWidth": null
|
10533 |
};
|
10534 |
|
|
|
|
|
10535 |
|
10536 |
|
10537 |
/**
|
@@ -10539,11 +12556,11 @@
|
|
10539 |
* given table, including configuration, data and current application of the
|
10540 |
* table options. DataTables does not have a single instance for each DataTable
|
10541 |
* with the settings attached to that instance, but rather instances of the
|
10542 |
-
* DataTable "class" are created on-the-fly as needed (typically by a
|
10543 |
* $().dataTable() call) and the settings object is then applied to that
|
10544 |
* instance.
|
10545 |
-
*
|
10546 |
-
* Note that this object is related to {@link DataTable.defaults} but this
|
10547 |
* one is the internal data store for DataTables's cache of columns. It should
|
10548 |
* NOT be manipulated outside of DataTables. Any configuration should be done
|
10549 |
* through the initialisation options.
|
@@ -10551,7 +12568,7 @@
|
|
10551 |
* @todo Really should attach the settings object to individual instances so we
|
10552 |
* don't need to create new instances on each $().dataTable() call (if the
|
10553 |
* table already exists). It would also save passing oSettings around and
|
10554 |
-
* into every single function. However, this is a very significant
|
10555 |
* architecture change for DataTables and will almost certainly break
|
10556 |
* backwards compatibility with older installations. This is something that
|
10557 |
* will be done in 2.0.
|
@@ -10562,7 +12579,7 @@
|
|
10562 |
* @namespace
|
10563 |
*/
|
10564 |
"oFeatures": {
|
10565 |
-
|
10566 |
/**
|
10567 |
* Flag to say if DataTables should automatically try to calculate the
|
10568 |
* optimum table and columns widths (true) or not (false).
|
@@ -10582,7 +12599,7 @@
|
|
10582 |
* @type boolean
|
10583 |
*/
|
10584 |
"bDeferRender": null,
|
10585 |
-
|
10586 |
/**
|
10587 |
* Enable filtering on the table or not. Note that if this is disabled
|
10588 |
* then there is no filtering at all on the table, including fnFilter.
|
@@ -10592,7 +12609,7 @@
|
|
10592 |
* @type boolean
|
10593 |
*/
|
10594 |
"bFilter": null,
|
10595 |
-
|
10596 |
/**
|
10597 |
* Table information element (the 'Showing x of y records' div) enable
|
10598 |
* flag.
|
@@ -10601,7 +12618,7 @@
|
|
10601 |
* @type boolean
|
10602 |
*/
|
10603 |
"bInfo": null,
|
10604 |
-
|
10605 |
/**
|
10606 |
* Present a user control allowing the end user to change the page size
|
10607 |
* when pagination is enabled.
|
@@ -10619,7 +12636,7 @@
|
|
10619 |
* @type boolean
|
10620 |
*/
|
10621 |
"bPaginate": null,
|
10622 |
-
|
10623 |
/**
|
10624 |
* Processing indicator enable flag whenever DataTables is enacting a
|
10625 |
* user request - typically an Ajax request for server-side processing.
|
@@ -10628,7 +12645,7 @@
|
|
10628 |
* @type boolean
|
10629 |
*/
|
10630 |
"bProcessing": null,
|
10631 |
-
|
10632 |
/**
|
10633 |
* Server-side processing enabled flag - when enabled DataTables will
|
10634 |
* get all data from the server for every draw - there is no filtering,
|
@@ -10638,7 +12655,7 @@
|
|
10638 |
* @type boolean
|
10639 |
*/
|
10640 |
"bServerSide": null,
|
10641 |
-
|
10642 |
/**
|
10643 |
* Sorting enablement flag.
|
10644 |
* Note that this parameter will be set by the initialisation routine. To
|
@@ -10646,7 +12663,15 @@
|
|
10646 |
* @type boolean
|
10647 |
*/
|
10648 |
"bSort": null,
|
10649 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10650 |
/**
|
10651 |
* Apply a class to the columns which are being sorted to provide a
|
10652 |
* visual highlight or not. This can slow things down when enabled since
|
@@ -10656,7 +12681,7 @@
|
|
10656 |
* @type boolean
|
10657 |
*/
|
10658 |
"bSortClasses": null,
|
10659 |
-
|
10660 |
/**
|
10661 |
* State saving enablement flag.
|
10662 |
* Note that this parameter will be set by the initialisation routine. To
|
@@ -10665,23 +12690,13 @@
|
|
10665 |
*/
|
10666 |
"bStateSave": null
|
10667 |
},
|
10668 |
-
|
10669 |
|
10670 |
/**
|
10671 |
* Scrolling settings for a table.
|
10672 |
* @namespace
|
10673 |
*/
|
10674 |
"oScroll": {
|
10675 |
-
/**
|
10676 |
-
* Indicate if DataTables should be allowed to set the padding / margin
|
10677 |
-
* etc for the scrolling header elements or not. Typically you will want
|
10678 |
-
* this.
|
10679 |
-
* Note that this parameter will be set by the initialisation routine. To
|
10680 |
-
* set a default use {@link DataTable.defaults}.
|
10681 |
-
* @type boolean
|
10682 |
-
*/
|
10683 |
-
"bAutoCss": null,
|
10684 |
-
|
10685 |
/**
|
10686 |
* When the table is shorter in height than sScrollY, collapse the
|
10687 |
* table container down to the height of the table (when true).
|
@@ -10690,16 +12705,7 @@
|
|
10690 |
* @type boolean
|
10691 |
*/
|
10692 |
"bCollapse": null,
|
10693 |
-
|
10694 |
-
/**
|
10695 |
-
* Infinite scrolling enablement flag. Now deprecated in favour of
|
10696 |
-
* using the Scroller plug-in.
|
10697 |
-
* Note that this parameter will be set by the initialisation routine. To
|
10698 |
-
* set a default use {@link DataTable.defaults}.
|
10699 |
-
* @type boolean
|
10700 |
-
*/
|
10701 |
-
"bInfinite": null,
|
10702 |
-
|
10703 |
/**
|
10704 |
* Width of the scrollbar for the web-browser's platform. Calculated
|
10705 |
* during table initialisation.
|
@@ -10707,26 +12713,16 @@
|
|
10707 |
* @default 0
|
10708 |
*/
|
10709 |
"iBarWidth": 0,
|
10710 |
-
|
10711 |
-
/**
|
10712 |
-
* Space (in pixels) between the bottom of the scrolling container and
|
10713 |
-
* the bottom of the scrolling viewport before the next page is loaded
|
10714 |
-
* when using infinite scrolling.
|
10715 |
-
* Note that this parameter will be set by the initialisation routine. To
|
10716 |
-
* set a default use {@link DataTable.defaults}.
|
10717 |
-
* @type int
|
10718 |
-
*/
|
10719 |
-
"iLoadGap": null,
|
10720 |
-
|
10721 |
/**
|
10722 |
-
* Viewport width for horizontal scrolling. Horizontal scrolling is
|
10723 |
* disabled if an empty string.
|
10724 |
* Note that this parameter will be set by the initialisation routine. To
|
10725 |
* set a default use {@link DataTable.defaults}.
|
10726 |
* @type string
|
10727 |
*/
|
10728 |
"sX": null,
|
10729 |
-
|
10730 |
/**
|
10731 |
* Width to expand the table to when using x-scrolling. Typically you
|
10732 |
* should not need to use this.
|
@@ -10736,7 +12732,7 @@
|
|
10736 |
* @deprecated
|
10737 |
*/
|
10738 |
"sXInner": null,
|
10739 |
-
|
10740 |
/**
|
10741 |
* Viewport height for vertical scrolling. Vertical scrolling is disabled
|
10742 |
* if an empty string.
|
@@ -10746,7 +12742,7 @@
|
|
10746 |
*/
|
10747 |
"sY": null
|
10748 |
},
|
10749 |
-
|
10750 |
/**
|
10751 |
* Language information for the table.
|
10752 |
* @namespace
|
@@ -10754,14 +12750,14 @@
|
|
10754 |
*/
|
10755 |
"oLanguage": {
|
10756 |
/**
|
10757 |
-
* Information callback function. See
|
10758 |
* {@link DataTable.defaults.fnInfoCallback}
|
10759 |
* @type function
|
10760 |
* @default null
|
10761 |
*/
|
10762 |
"fnInfoCallback": null
|
10763 |
},
|
10764 |
-
|
10765 |
/**
|
10766 |
* Browser support parameters
|
10767 |
* @namespace
|
@@ -10773,11 +12769,24 @@
|
|
10773 |
* @type boolean
|
10774 |
* @default false
|
10775 |
*/
|
10776 |
-
"bScrollOversize": false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10777 |
},
|
10778 |
-
|
|
|
|
|
|
|
|
|
10779 |
/**
|
10780 |
-
* Array referencing the nodes which are used for the features. The
|
10781 |
* parameters of this object match what is allowed by sDom - i.e.
|
10782 |
* <ul>
|
10783 |
* <li>'l' - Length changing</li>
|
@@ -10791,7 +12800,7 @@
|
|
10791 |
* @default []
|
10792 |
*/
|
10793 |
"aanFeatures": [],
|
10794 |
-
|
10795 |
/**
|
10796 |
* Store data information - see {@link DataTable.models.oRow} for detailed
|
10797 |
* information.
|
@@ -10799,51 +12808,44 @@
|
|
10799 |
* @default []
|
10800 |
*/
|
10801 |
"aoData": [],
|
10802 |
-
|
10803 |
/**
|
10804 |
* Array of indexes which are in the current display (after filtering etc)
|
10805 |
* @type array
|
10806 |
* @default []
|
10807 |
*/
|
10808 |
"aiDisplay": [],
|
10809 |
-
|
10810 |
/**
|
10811 |
* Array of indexes for display - no filtering
|
10812 |
* @type array
|
10813 |
* @default []
|
10814 |
*/
|
10815 |
"aiDisplayMaster": [],
|
10816 |
-
|
10817 |
/**
|
10818 |
* Store information about each column that is in use
|
10819 |
* @type array
|
10820 |
* @default []
|
10821 |
*/
|
10822 |
"aoColumns": [],
|
10823 |
-
|
10824 |
/**
|
10825 |
* Store information about the table's header
|
10826 |
* @type array
|
10827 |
* @default []
|
10828 |
*/
|
10829 |
"aoHeader": [],
|
10830 |
-
|
10831 |
/**
|
10832 |
* Store information about the table's footer
|
10833 |
* @type array
|
10834 |
* @default []
|
10835 |
*/
|
10836 |
"aoFooter": [],
|
10837 |
-
|
10838 |
-
/**
|
10839 |
-
* Search data array for regular expression searching
|
10840 |
-
* @type array
|
10841 |
-
* @default []
|
10842 |
-
*/
|
10843 |
-
"asDataSearch": [],
|
10844 |
-
|
10845 |
/**
|
10846 |
-
* Store the applied global search information in case we want to force a
|
10847 |
* research or compare the old search to a new one.
|
10848 |
* Note that this parameter will be set by the initialisation routine. To
|
10849 |
* set a default use {@link DataTable.defaults}.
|
@@ -10851,23 +12853,22 @@
|
|
10851 |
* @extends DataTable.models.oSearch
|
10852 |
*/
|
10853 |
"oPreviousSearch": {},
|
10854 |
-
|
10855 |
/**
|
10856 |
-
* Store the applied search for each column - see
|
10857 |
* {@link DataTable.models.oSearch} for the format that is used for the
|
10858 |
* filtering information for each column.
|
10859 |
* @type array
|
10860 |
* @default []
|
10861 |
*/
|
10862 |
"aoPreSearchCols": [],
|
10863 |
-
|
10864 |
/**
|
10865 |
* Sorting that is applied to the table. Note that the inner arrays are
|
10866 |
* used in the following manner:
|
10867 |
* <ul>
|
10868 |
* <li>Index 0 - column number</li>
|
10869 |
* <li>Index 1 - current sorting direction</li>
|
10870 |
-
* <li>Index 2 - index of asSorting for this column</li>
|
10871 |
* </ul>
|
10872 |
* Note that this parameter will be set by the initialisation routine. To
|
10873 |
* set a default use {@link DataTable.defaults}.
|
@@ -10875,17 +12876,17 @@
|
|
10875 |
* @todo These inner arrays should really be objects
|
10876 |
*/
|
10877 |
"aaSorting": null,
|
10878 |
-
|
10879 |
/**
|
10880 |
* Sorting that is always applied to the table (i.e. prefixed in front of
|
10881 |
* aaSorting).
|
10882 |
* Note that this parameter will be set by the initialisation routine. To
|
10883 |
* set a default use {@link DataTable.defaults}.
|
10884 |
-
* @type array
|
10885 |
-
* @default
|
10886 |
*/
|
10887 |
-
"aaSortingFixed":
|
10888 |
-
|
10889 |
/**
|
10890 |
* Classes to use for the striping of a table.
|
10891 |
* Note that this parameter will be set by the initialisation routine. To
|
@@ -10894,64 +12895,64 @@
|
|
10894 |
* @default []
|
10895 |
*/
|
10896 |
"asStripeClasses": null,
|
10897 |
-
|
10898 |
/**
|
10899 |
* If restoring a table - we should restore its striping classes as well
|
10900 |
* @type array
|
10901 |
* @default []
|
10902 |
*/
|
10903 |
"asDestroyStripes": [],
|
10904 |
-
|
10905 |
/**
|
10906 |
-
* If restoring a table - we should restore its width
|
10907 |
* @type int
|
10908 |
* @default 0
|
10909 |
*/
|
10910 |
"sDestroyWidth": 0,
|
10911 |
-
|
10912 |
/**
|
10913 |
* Callback functions array for every time a row is inserted (i.e. on a draw).
|
10914 |
* @type array
|
10915 |
* @default []
|
10916 |
*/
|
10917 |
"aoRowCallback": [],
|
10918 |
-
|
10919 |
/**
|
10920 |
* Callback functions for the header on each draw.
|
10921 |
* @type array
|
10922 |
* @default []
|
10923 |
*/
|
10924 |
"aoHeaderCallback": [],
|
10925 |
-
|
10926 |
/**
|
10927 |
* Callback function for the footer on each draw.
|
10928 |
* @type array
|
10929 |
* @default []
|
10930 |
*/
|
10931 |
"aoFooterCallback": [],
|
10932 |
-
|
10933 |
/**
|
10934 |
* Array of callback functions for draw callback functions
|
10935 |
* @type array
|
10936 |
* @default []
|
10937 |
*/
|
10938 |
"aoDrawCallback": [],
|
10939 |
-
|
10940 |
/**
|
10941 |
* Array of callback functions for row created function
|
10942 |
* @type array
|
10943 |
* @default []
|
10944 |
*/
|
10945 |
"aoRowCreatedCallback": [],
|
10946 |
-
|
10947 |
/**
|
10948 |
-
* Callback functions for just before the table is redrawn. A return of
|
10949 |
* false will be used to cancel the draw.
|
10950 |
* @type array
|
10951 |
* @default []
|
10952 |
*/
|
10953 |
"aoPreDrawCallback": [],
|
10954 |
-
|
10955 |
/**
|
10956 |
* Callback functions for when the table has been initialised.
|
10957 |
* @type array
|
@@ -10959,7 +12960,7 @@
|
|
10959 |
*/
|
10960 |
"aoInitComplete": [],
|
10961 |
|
10962 |
-
|
10963 |
/**
|
10964 |
* Callbacks for modifying the settings to be stored for state saving, prior to
|
10965 |
* saving state.
|
@@ -10967,7 +12968,7 @@
|
|
10967 |
* @default []
|
10968 |
*/
|
10969 |
"aoStateSaveParams": [],
|
10970 |
-
|
10971 |
/**
|
10972 |
* Callbacks for modifying the settings that have been stored for state saving
|
10973 |
* prior to using the stored values to restore the state.
|
@@ -10975,7 +12976,7 @@
|
|
10975 |
* @default []
|
10976 |
*/
|
10977 |
"aoStateLoadParams": [],
|
10978 |
-
|
10979 |
/**
|
10980 |
* Callbacks for operating on the settings object once the saved state has been
|
10981 |
* loaded
|
@@ -10983,51 +12984,51 @@
|
|
10983 |
* @default []
|
10984 |
*/
|
10985 |
"aoStateLoaded": [],
|
10986 |
-
|
10987 |
/**
|
10988 |
* Cache the table ID for quick access
|
10989 |
* @type string
|
10990 |
* @default <i>Empty string</i>
|
10991 |
*/
|
10992 |
"sTableId": "",
|
10993 |
-
|
10994 |
/**
|
10995 |
* The TABLE node for the main table
|
10996 |
* @type node
|
10997 |
* @default null
|
10998 |
*/
|
10999 |
"nTable": null,
|
11000 |
-
|
11001 |
/**
|
11002 |
* Permanent ref to the thead element
|
11003 |
* @type node
|
11004 |
* @default null
|
11005 |
*/
|
11006 |
"nTHead": null,
|
11007 |
-
|
11008 |
/**
|
11009 |
* Permanent ref to the tfoot element - if it exists
|
11010 |
* @type node
|
11011 |
* @default null
|
11012 |
*/
|
11013 |
"nTFoot": null,
|
11014 |
-
|
11015 |
/**
|
11016 |
* Permanent ref to the tbody element
|
11017 |
* @type node
|
11018 |
* @default null
|
11019 |
*/
|
11020 |
"nTBody": null,
|
11021 |
-
|
11022 |
/**
|
11023 |
* Cache the wrapper node (contains all DataTables controlled elements)
|
11024 |
* @type node
|
11025 |
* @default null
|
11026 |
*/
|
11027 |
"nTableWrapper": null,
|
11028 |
-
|
11029 |
/**
|
11030 |
-
* Indicate if when using server-side processing the loading of data
|
11031 |
* should be deferred until the second draw.
|
11032 |
* Note that this parameter will be set by the initialisation routine. To
|
11033 |
* set a default use {@link DataTable.defaults}.
|
@@ -11035,14 +13036,14 @@
|
|
11035 |
* @default false
|
11036 |
*/
|
11037 |
"bDeferLoading": false,
|
11038 |
-
|
11039 |
/**
|
11040 |
* Indicate if all required information has been read in
|
11041 |
* @type boolean
|
11042 |
* @default false
|
11043 |
*/
|
11044 |
"bInitialised": false,
|
11045 |
-
|
11046 |
/**
|
11047 |
* Information about open rows. Each object in the array has the parameters
|
11048 |
* 'nTr' and 'nParent'
|
@@ -11050,7 +13051,7 @@
|
|
11050 |
* @default []
|
11051 |
*/
|
11052 |
"aoOpenRows": [],
|
11053 |
-
|
11054 |
/**
|
11055 |
* Dictate the positioning of DataTables' control elements - see
|
11056 |
* {@link DataTable.model.oInit.sDom}.
|
@@ -11060,50 +13061,39 @@
|
|
11060 |
* @default null
|
11061 |
*/
|
11062 |
"sDom": null,
|
11063 |
-
|
11064 |
-
/**
|
11065 |
-
* Which type of pagination should be used.
|
11066 |
-
* Note that this parameter will be set by the initialisation routine. To
|
11067 |
-
* set a default use {@link DataTable.defaults}.
|
11068 |
-
* @type string
|
11069 |
-
* @default two_button
|
11070 |
-
*/
|
11071 |
-
"sPaginationType": "two_button",
|
11072 |
-
|
11073 |
/**
|
11074 |
-
*
|
11075 |
-
*
|
11076 |
-
*
|
11077 |
-
* @type int
|
11078 |
-
* @default 0
|
11079 |
*/
|
11080 |
-
"
|
11081 |
-
|
11082 |
/**
|
11083 |
-
*
|
11084 |
* Note that this parameter will be set by the initialisation routine. To
|
11085 |
* set a default use {@link DataTable.defaults}.
|
11086 |
* @type string
|
11087 |
-
* @default
|
11088 |
*/
|
11089 |
-
"
|
11090 |
-
|
11091 |
/**
|
11092 |
-
*
|
11093 |
* Note that this parameter will be set by the initialisation routine. To
|
11094 |
* set a default use {@link DataTable.defaults}.
|
11095 |
-
* @type
|
11096 |
-
* @default
|
11097 |
*/
|
11098 |
-
"
|
11099 |
-
|
11100 |
/**
|
11101 |
-
* Array of callback functions for state saving. Each array element is an
|
11102 |
* object with the following parameters:
|
11103 |
* <ul>
|
11104 |
* <li>function:fn - function to call. Takes two parameters, oSettings
|
11105 |
* and the JSON string to save that has been thus far created. Returns
|
11106 |
-
* a JSON string to be inserted into a json object
|
11107 |
* (i.e. '"param": [ 0, 1, 2]')</li>
|
11108 |
* <li>string:sName - name of callback</li>
|
11109 |
* </ul>
|
@@ -11111,12 +13101,12 @@
|
|
11111 |
* @default []
|
11112 |
*/
|
11113 |
"aoStateSave": [],
|
11114 |
-
|
11115 |
/**
|
11116 |
-
* Array of callback functions for state loading. Each array element is an
|
11117 |
* object with the following parameters:
|
11118 |
* <ul>
|
11119 |
-
* <li>function:fn - function to call. Takes two parameters, oSettings
|
11120 |
* and the object stored. May return false to cancel state loading</li>
|
11121 |
* <li>string:sName - name of callback</li>
|
11122 |
* </ul>
|
@@ -11124,14 +13114,21 @@
|
|
11124 |
* @default []
|
11125 |
*/
|
11126 |
"aoStateLoad": [],
|
11127 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11128 |
/**
|
11129 |
-
* State that was loaded
|
11130 |
* @type object
|
11131 |
* @default null
|
11132 |
*/
|
11133 |
"oLoadedState": null,
|
11134 |
-
|
11135 |
/**
|
11136 |
* Source url for AJAX data for the table.
|
11137 |
* Note that this parameter will be set by the initialisation routine. To
|
@@ -11140,33 +13137,47 @@
|
|
11140 |
* @default null
|
11141 |
*/
|
11142 |
"sAjaxSource": null,
|
11143 |
-
|
11144 |
/**
|
11145 |
* Property from a given object from which to read the table data from. This
|
11146 |
-
* can be an empty string (when not server-side processing), in which case
|
11147 |
* it is assumed an an array is given directly.
|
11148 |
* Note that this parameter will be set by the initialisation routine. To
|
11149 |
* set a default use {@link DataTable.defaults}.
|
11150 |
* @type string
|
11151 |
*/
|
11152 |
"sAjaxDataProp": null,
|
11153 |
-
|
11154 |
/**
|
11155 |
* Note if draw should be blocked while getting data
|
11156 |
* @type boolean
|
11157 |
* @default true
|
11158 |
*/
|
11159 |
"bAjaxDataGet": true,
|
11160 |
-
|
11161 |
/**
|
11162 |
-
* The last jQuery XHR object that was used for server-side data gathering.
|
11163 |
-
* This can be used for working with the XHR information in one of the
|
11164 |
* callbacks
|
11165 |
* @type object
|
11166 |
* @default null
|
11167 |
*/
|
11168 |
"jqXHR": null,
|
11169 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11170 |
/**
|
11171 |
* Function to get the server-side data.
|
11172 |
* Note that this parameter will be set by the initialisation routine. To
|
@@ -11174,24 +13185,24 @@
|
|
11174 |
* @type function
|
11175 |
*/
|
11176 |
"fnServerData": null,
|
11177 |
-
|
11178 |
/**
|
11179 |
-
* Functions which are called prior to sending an Ajax request so extra
|
11180 |
* parameters can easily be sent to the server
|
11181 |
* @type array
|
11182 |
* @default []
|
11183 |
*/
|
11184 |
"aoServerParams": [],
|
11185 |
-
|
11186 |
/**
|
11187 |
-
* Send the XHR HTTP method - GET or POST (could be PUT or DELETE if
|
11188 |
* required).
|
11189 |
* Note that this parameter will be set by the initialisation routine. To
|
11190 |
* set a default use {@link DataTable.defaults}.
|
11191 |
* @type string
|
11192 |
*/
|
11193 |
"sServerMethod": null,
|
11194 |
-
|
11195 |
/**
|
11196 |
* Format numbers for display.
|
11197 |
* Note that this parameter will be set by the initialisation routine. To
|
@@ -11199,7 +13210,7 @@
|
|
11199 |
* @type function
|
11200 |
*/
|
11201 |
"fnFormatNumber": null,
|
11202 |
-
|
11203 |
/**
|
11204 |
* List of options that can be used for the user selectable length menu.
|
11205 |
* Note that this parameter will be set by the initialisation routine. To
|
@@ -11208,7 +13219,7 @@
|
|
11208 |
* @default []
|
11209 |
*/
|
11210 |
"aLengthMenu": null,
|
11211 |
-
|
11212 |
/**
|
11213 |
* Counter for the draws that the table does. Also used as a tracker for
|
11214 |
* server-side processing
|
@@ -11216,21 +13227,21 @@
|
|
11216 |
* @default 0
|
11217 |
*/
|
11218 |
"iDraw": 0,
|
11219 |
-
|
11220 |
/**
|
11221 |
* Indicate if a redraw is being done - useful for Ajax
|
11222 |
* @type boolean
|
11223 |
* @default false
|
11224 |
*/
|
11225 |
"bDrawing": false,
|
11226 |
-
|
11227 |
/**
|
11228 |
* Draw index (iDraw) of the last error when parsing the returned data
|
11229 |
* @type int
|
11230 |
* @default -1
|
11231 |
*/
|
11232 |
"iDrawError": -1,
|
11233 |
-
|
11234 |
/**
|
11235 |
* Paging display length
|
11236 |
* @type int
|
@@ -11245,15 +13256,6 @@
|
|
11245 |
*/
|
11246 |
"_iDisplayStart": 0,
|
11247 |
|
11248 |
-
/**
|
11249 |
-
* Paging end point - aiDisplay index. Use fnDisplayEnd rather than
|
11250 |
-
* this property to get the end point
|
11251 |
-
* @type int
|
11252 |
-
* @default 10
|
11253 |
-
* @private
|
11254 |
-
*/
|
11255 |
-
"_iDisplayEnd": 10,
|
11256 |
-
|
11257 |
/**
|
11258 |
* Server-side processing - number of records in the result set
|
11259 |
* (i.e. before filtering), Use fnRecordsTotal rather than
|
@@ -11275,184 +13277,691 @@
|
|
11275 |
* @private
|
11276 |
*/
|
11277 |
"_iRecordsDisplay": 0,
|
11278 |
-
|
11279 |
/**
|
11280 |
* Flag to indicate if jQuery UI marking and classes should be used.
|
11281 |
* Note that this parameter will be set by the initialisation routine. To
|
11282 |
* set a default use {@link DataTable.defaults}.
|
11283 |
* @type boolean
|
11284 |
*/
|
11285 |
-
"bJUI": null,
|
11286 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11287 |
/**
|
11288 |
-
*
|
|
|
|
|
|
|
|
|
|
|
11289 |
* @type object
|
11290 |
* @default {}
|
11291 |
*/
|
11292 |
-
|
11293 |
-
|
11294 |
-
|
11295 |
-
* Flag attached to the settings object so you can check in the draw
|
11296 |
-
* callback if filtering has been done in the draw. Deprecated in favour of
|
11297 |
-
* events.
|
11298 |
-
* @type boolean
|
11299 |
-
* @default false
|
11300 |
-
* @deprecated
|
11301 |
-
*/
|
11302 |
-
"bFiltered": false,
|
11303 |
-
|
11304 |
-
/**
|
11305 |
-
* Flag attached to the settings object so you can check in the draw
|
11306 |
-
* callback if sorting has been done in the draw. Deprecated in favour of
|
11307 |
-
* events.
|
11308 |
-
* @type boolean
|
11309 |
-
* @default false
|
11310 |
-
* @deprecated
|
11311 |
-
*/
|
11312 |
-
"bSorted": false,
|
11313 |
-
|
11314 |
/**
|
11315 |
-
*
|
11316 |
-
*
|
11317 |
-
*
|
11318 |
-
*
|
11319 |
-
* set a default use {@link DataTable.defaults}.
|
11320 |
-
* @type boolean
|
11321 |
*/
|
11322 |
-
|
11323 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11324 |
/**
|
11325 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11326 |
* @type object
|
11327 |
-
* @default
|
|
|
|
|
|
|
|
|
|
|
|
|
11328 |
*/
|
11329 |
-
|
11330 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11331 |
/**
|
11332 |
-
*
|
11333 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11334 |
* @type array
|
11335 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11336 |
*/
|
11337 |
-
|
|
|
11338 |
|
11339 |
-
|
11340 |
/**
|
11341 |
-
*
|
11342 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
11343 |
*/
|
11344 |
-
|
11345 |
-
|
11346 |
-
|
11347 |
-
|
11348 |
-
|
11349 |
-
|
11350 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11351 |
},
|
11352 |
-
|
11353 |
/**
|
11354 |
-
*
|
11355 |
-
*
|
|
|
|
|
11356 |
*/
|
11357 |
-
|
11358 |
-
|
11359 |
-
|
11360 |
-
|
11361 |
-
|
11362 |
-
|
11363 |
-
|
11364 |
-
|
11365 |
-
|
|
|
11366 |
/**
|
11367 |
-
*
|
11368 |
* @type function
|
11369 |
-
* @
|
11370 |
-
*/
|
11371 |
-
"fnDisplayEnd": function ()
|
11372 |
-
{
|
11373 |
-
if ( this.oFeatures.bServerSide ) {
|
11374 |
-
if ( this.oFeatures.bPaginate === false || this._iDisplayLength == -1 ) {
|
11375 |
-
return this._iDisplayStart+this.aiDisplay.length;
|
11376 |
-
} else {
|
11377 |
-
return Math.min( this._iDisplayStart+this._iDisplayLength,
|
11378 |
-
this._iRecordsDisplay );
|
11379 |
-
}
|
11380 |
-
} else {
|
11381 |
-
return this._iDisplayEnd;
|
11382 |
-
}
|
11383 |
-
},
|
11384 |
-
|
11385 |
-
/**
|
11386 |
-
* The DataTables object for this table
|
11387 |
-
* @type object
|
11388 |
-
* @default null
|
11389 |
-
*/
|
11390 |
-
"oInstance": null,
|
11391 |
-
|
11392 |
-
/**
|
11393 |
-
* Unique identifier for each instance of the DataTables object. If there
|
11394 |
-
* is an ID on the table node, then it takes that value, otherwise an
|
11395 |
-
* incrementing internal counter is used.
|
11396 |
-
* @type string
|
11397 |
-
* @default null
|
11398 |
*/
|
11399 |
-
|
|
|
11400 |
|
11401 |
/**
|
11402 |
-
*
|
11403 |
-
*
|
|
|
11404 |
*/
|
11405 |
-
|
|
|
11406 |
|
11407 |
/**
|
11408 |
-
*
|
|
|
|
|
11409 |
*/
|
11410 |
-
|
|
|
11411 |
|
11412 |
/**
|
11413 |
-
*
|
|
|
|
|
11414 |
*/
|
11415 |
-
|
11416 |
};
|
11417 |
-
|
11418 |
-
/**
|
11419 |
-
* Extension object for DataTables that is used to provide all extension options.
|
11420 |
-
*
|
11421 |
-
* Note that the <i>DataTable.ext</i> object is available through
|
11422 |
-
* <i>jQuery.fn.dataTable.ext</i> where it may be accessed and manipulated. It is
|
11423 |
-
* also aliased to <i>jQuery.fn.dataTableExt</i> for historic reasons.
|
11424 |
-
* @namespace
|
11425 |
-
* @extends DataTable.models.ext
|
11426 |
-
*/
|
11427 |
-
DataTable.ext = $.extend( true, {}, DataTable.models.ext );
|
11428 |
|
11429 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11430 |
"sTable": "dataTable",
|
|
|
11431 |
|
11432 |
-
/*
|
11433 |
-
"sPagePrevEnabled": "paginate_enabled_previous",
|
11434 |
-
"sPagePrevDisabled": "paginate_disabled_previous",
|
11435 |
-
"sPageNextEnabled": "paginate_enabled_next",
|
11436 |
-
"sPageNextDisabled": "paginate_disabled_next",
|
11437 |
-
"sPageJUINext": "",
|
11438 |
-
"sPageJUIPrev": "",
|
11439 |
-
|
11440 |
-
/* Full numbers paging buttons */
|
11441 |
"sPageButton": "paginate_button",
|
11442 |
-
"sPageButtonActive": "
|
11443 |
-
"
|
11444 |
-
|
11445 |
-
"sPagePrevious": "previous",
|
11446 |
-
"sPageNext": "next",
|
11447 |
-
"sPageLast": "last",
|
11448 |
-
|
11449 |
/* Striping classes */
|
11450 |
"sStripeOdd": "odd",
|
11451 |
"sStripeEven": "even",
|
11452 |
-
|
11453 |
/* Empty row */
|
11454 |
"sRowEmpty": "dataTables_empty",
|
11455 |
-
|
11456 |
/* Features */
|
11457 |
"sWrapper": "dataTables_wrapper",
|
11458 |
"sFilter": "dataTables_filter",
|
@@ -11460,7 +13969,7 @@
|
|
11460 |
"sPaging": "dataTables_paginate paging_", /* Note that the type is postfixed */
|
11461 |
"sLength": "dataTables_length",
|
11462 |
"sProcessing": "dataTables_processing",
|
11463 |
-
|
11464 |
/* Sorting */
|
11465 |
"sSortAsc": "sorting_asc",
|
11466 |
"sSortDesc": "sorting_desc",
|
@@ -11469,14 +13978,13 @@
|
|
11469 |
"sSortableDesc": "sorting_desc_disabled",
|
11470 |
"sSortableNone": "sorting_disabled",
|
11471 |
"sSortColumn": "sorting_", /* Note that an int is postfixed for the sorting order */
|
11472 |
-
|
11473 |
-
|
11474 |
-
"
|
11475 |
-
|
11476 |
-
|
11477 |
-
"
|
11478 |
-
|
11479 |
-
|
11480 |
/* Scrolling */
|
11481 |
"sScrollWrapper": "dataTables_scroll",
|
11482 |
"sScrollHead": "dataTables_scrollHead",
|
@@ -11484,518 +13992,727 @@
|
|
11484 |
"sScrollBody": "dataTables_scrollBody",
|
11485 |
"sScrollFoot": "dataTables_scrollFoot",
|
11486 |
"sScrollFootInner": "dataTables_scrollFootInner",
|
11487 |
-
|
11488 |
/* Misc */
|
|
|
11489 |
"sFooterTH": "",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11490 |
"sJUIHeader": "",
|
11491 |
"sJUIFooter": ""
|
11492 |
} );
|
11493 |
|
11494 |
|
11495 |
-
|
11496 |
-
|
11497 |
-
|
11498 |
-
|
11499 |
-
|
11500 |
-
|
11501 |
-
|
11502 |
-
|
11503 |
-
|
|
|
|
|
|
|
|
|
|
|
11504 |
/* Full numbers paging buttons */
|
11505 |
-
"sPageButton":
|
11506 |
-
"sPageButtonActive":
|
11507 |
-
"
|
11508 |
-
|
11509 |
-
"sPageLast": "last ui-corner-tr ui-corner-br",
|
11510 |
-
|
11511 |
/* Features */
|
11512 |
"sPaging": "dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi "+
|
11513 |
"ui-buttonset-multi paging_", /* Note that the type is postfixed */
|
11514 |
-
|
11515 |
/* Sorting */
|
11516 |
-
"sSortAsc": "
|
11517 |
-
"sSortDesc": "
|
11518 |
-
"sSortable": "
|
11519 |
-
"sSortableAsc": "
|
11520 |
-
"sSortableDesc": "
|
11521 |
-
"sSortableNone": "
|
11522 |
-
"sSortJUIAsc":
|
11523 |
-
"sSortJUIDesc":
|
11524 |
-
"sSortJUI":
|
11525 |
-
"sSortJUIAscAllowed":
|
11526 |
-
"sSortJUIDescAllowed": "
|
11527 |
-
"sSortJUIWrapper":
|
11528 |
-
"sSortIcon":
|
11529 |
-
|
11530 |
/* Scrolling */
|
11531 |
-
"sScrollHead": "dataTables_scrollHead
|
11532 |
-
"sScrollFoot": "dataTables_scrollFoot
|
11533 |
-
|
11534 |
/* Misc */
|
11535 |
-
"
|
11536 |
-
"
|
11537 |
-
"
|
|
|
11538 |
} );
|
11539 |
|
11540 |
-
|
11541 |
-
* Variable: oPagination
|
11542 |
-
* Purpose:
|
11543 |
-
* Scope: jQuery.fn.dataTableExt
|
11544 |
-
*/
|
11545 |
-
$.extend( DataTable.ext.oPagination, {
|
11546 |
-
/*
|
11547 |
-
* Variable: two_button
|
11548 |
-
* Purpose: Standard two button (forward/back) pagination
|
11549 |
-
* Scope: jQuery.fn.dataTableExt.oPagination
|
11550 |
-
*/
|
11551 |
-
"two_button": {
|
11552 |
-
/*
|
11553 |
-
* Function: oPagination.two_button.fnInit
|
11554 |
-
* Purpose: Initialise dom elements required for pagination with forward/back buttons only
|
11555 |
-
* Returns: -
|
11556 |
-
* Inputs: object:oSettings - dataTables settings object
|
11557 |
-
* node:nPaging - the DIV which contains this pagination control
|
11558 |
-
* function:fnCallbackDraw - draw function which must be called on update
|
11559 |
-
*/
|
11560 |
-
"fnInit": function ( oSettings, nPaging, fnCallbackDraw )
|
11561 |
-
{
|
11562 |
-
var oLang = oSettings.oLanguage.oPaginate;
|
11563 |
-
var oClasses = oSettings.oClasses;
|
11564 |
-
var fnClickHandler = function ( e ) {
|
11565 |
-
if ( oSettings.oApi._fnPageChange( oSettings, e.data.action ) )
|
11566 |
-
{
|
11567 |
-
fnCallbackDraw( oSettings );
|
11568 |
-
}
|
11569 |
-
};
|
11570 |
|
11571 |
-
var sAppend = (!oSettings.bJUI) ?
|
11572 |
-
'<a class="'+oSettings.oClasses.sPagePrevDisabled+'" tabindex="'+oSettings.iTabIndex+'" role="button">'+oLang.sPrevious+'</a>'+
|
11573 |
-
'<a class="'+oSettings.oClasses.sPageNextDisabled+'" tabindex="'+oSettings.iTabIndex+'" role="button">'+oLang.sNext+'</a>'
|
11574 |
-
:
|
11575 |
-
'<a class="'+oSettings.oClasses.sPagePrevDisabled+'" tabindex="'+oSettings.iTabIndex+'" role="button"><span class="'+oSettings.oClasses.sPageJUIPrev+'"></span></a>'+
|
11576 |
-
'<a class="'+oSettings.oClasses.sPageNextDisabled+'" tabindex="'+oSettings.iTabIndex+'" role="button"><span class="'+oSettings.oClasses.sPageJUINext+'"></span></a>';
|
11577 |
-
$(nPaging).append( sAppend );
|
11578 |
-
|
11579 |
-
var els = $('a', nPaging);
|
11580 |
-
var nPrevious = els[0],
|
11581 |
-
nNext = els[1];
|
11582 |
-
|
11583 |
-
oSettings.oApi._fnBindAction( nPrevious, {action: "previous"}, fnClickHandler );
|
11584 |
-
oSettings.oApi._fnBindAction( nNext, {action: "next"}, fnClickHandler );
|
11585 |
-
|
11586 |
-
/* ID the first elements only */
|
11587 |
-
if ( !oSettings.aanFeatures.p )
|
11588 |
-
{
|
11589 |
-
nPaging.id = oSettings.sTableId+'_paginate';
|
11590 |
-
nPrevious.id = oSettings.sTableId+'_previous';
|
11591 |
-
nNext.id = oSettings.sTableId+'_next';
|
11592 |
|
11593 |
-
nPrevious.setAttribute('aria-controls', oSettings.sTableId);
|
11594 |
-
nNext.setAttribute('aria-controls', oSettings.sTableId);
|
11595 |
-
}
|
11596 |
-
},
|
11597 |
-
|
11598 |
-
/*
|
11599 |
-
* Function: oPagination.two_button.fnUpdate
|
11600 |
-
* Purpose: Update the two button pagination at the end of the draw
|
11601 |
-
* Returns: -
|
11602 |
-
* Inputs: object:oSettings - dataTables settings object
|
11603 |
-
* function:fnCallbackDraw - draw function to call on page change
|
11604 |
-
*/
|
11605 |
-
"fnUpdate": function ( oSettings, fnCallbackDraw )
|
11606 |
-
{
|
11607 |
-
if ( !oSettings.aanFeatures.p )
|
11608 |
-
{
|
11609 |
-
return;
|
11610 |
-
}
|
11611 |
-
|
11612 |
-
var oClasses = oSettings.oClasses;
|
11613 |
-
var an = oSettings.aanFeatures.p;
|
11614 |
-
var nNode;
|
11615 |
|
11616 |
-
|
11617 |
-
|
11618 |
-
|
11619 |
-
|
11620 |
-
|
11621 |
-
|
11622 |
-
|
11623 |
-
|
11624 |
-
|
11625 |
-
|
11626 |
-
|
11627 |
-
|
11628 |
-
|
11629 |
-
|
11630 |
-
|
11631 |
-
|
11632 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11633 |
},
|
11634 |
-
|
11635 |
-
|
11636 |
-
|
11637 |
-
|
11638 |
-
|
11639 |
-
|
11640 |
-
|
11641 |
-
|
11642 |
-
|
11643 |
-
|
11644 |
-
|
11645 |
-
|
11646 |
-
|
11647 |
-
|
11648 |
-
|
11649 |
-
|
11650 |
-
|
11651 |
-
|
11652 |
-
|
11653 |
-
|
11654 |
-
|
11655 |
-
|
11656 |
-
|
11657 |
-
|
11658 |
-
|
11659 |
-
|
11660 |
-
|
11661 |
-
|
11662 |
-
|
11663 |
-
|
11664 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11665 |
}
|
11666 |
};
|
11667 |
|
11668 |
-
|
11669 |
-
|
11670 |
-
|
11671 |
-
|
11672 |
-
'<a tabindex="'+oSettings.iTabIndex+'" class="'+oClasses.sPageButton+" "+oClasses.sPageNext+'">'+oLang.sNext+'</a>'+
|
11673 |
-
'<a tabindex="'+oSettings.iTabIndex+'" class="'+oClasses.sPageButton+" "+oClasses.sPageLast+'">'+oLang.sLast+'</a>'
|
11674 |
-
);
|
11675 |
-
var els = $('a', nPaging);
|
11676 |
-
var nFirst = els[0],
|
11677 |
-
nPrev = els[1],
|
11678 |
-
nNext = els[2],
|
11679 |
-
nLast = els[3];
|
11680 |
-
|
11681 |
-
oSettings.oApi._fnBindAction( nFirst, {action: "first"}, fnClickHandler );
|
11682 |
-
oSettings.oApi._fnBindAction( nPrev, {action: "previous"}, fnClickHandler );
|
11683 |
-
oSettings.oApi._fnBindAction( nNext, {action: "next"}, fnClickHandler );
|
11684 |
-
oSettings.oApi._fnBindAction( nLast, {action: "last"}, fnClickHandler );
|
11685 |
-
|
11686 |
-
/* ID the first elements only */
|
11687 |
-
if ( !oSettings.aanFeatures.p )
|
11688 |
-
{
|
11689 |
-
nPaging.id = oSettings.sTableId+'_paginate';
|
11690 |
-
nFirst.id =oSettings.sTableId+'_first';
|
11691 |
-
nPrev.id =oSettings.sTableId+'_previous';
|
11692 |
-
nNext.id =oSettings.sTableId+'_next';
|
11693 |
-
nLast.id =oSettings.sTableId+'_last';
|
11694 |
-
}
|
11695 |
-
},
|
11696 |
-
|
11697 |
-
/*
|
11698 |
-
* Function: oPagination.full_numbers.fnUpdate
|
11699 |
-
* Purpose: Update the list of page buttons shows
|
11700 |
-
* Returns: -
|
11701 |
-
* Inputs: object:oSettings - dataTables settings object
|
11702 |
-
* function:fnCallbackDraw - draw function to call on page change
|
11703 |
-
*/
|
11704 |
-
"fnUpdate": function ( oSettings, fnCallbackDraw )
|
11705 |
-
{
|
11706 |
-
if ( !oSettings.aanFeatures.p )
|
11707 |
-
{
|
11708 |
-
return;
|
11709 |
-
}
|
11710 |
-
|
11711 |
-
var iPageCount = DataTable.ext.oPagination.iFullNumbersShowPages;
|
11712 |
-
var iPageCountHalf = Math.floor(iPageCount / 2);
|
11713 |
-
var iPages = Math.ceil((oSettings.fnRecordsDisplay()) / oSettings._iDisplayLength);
|
11714 |
-
var iCurrentPage = Math.ceil(oSettings._iDisplayStart / oSettings._iDisplayLength) + 1;
|
11715 |
-
var sList = "";
|
11716 |
-
var iStartButton, iEndButton, i, iLen;
|
11717 |
-
var oClasses = oSettings.oClasses;
|
11718 |
-
var anButtons, anStatic, nPaginateList, nNode;
|
11719 |
-
var an = oSettings.aanFeatures.p;
|
11720 |
-
var fnBind = function (j) {
|
11721 |
-
oSettings.oApi._fnBindAction( this, {"page": j+iStartButton-1}, function(e) {
|
11722 |
-
/* Use the information in the element to jump to the required page */
|
11723 |
-
oSettings.oApi._fnPageChange( oSettings, e.data.page );
|
11724 |
-
fnCallbackDraw( oSettings );
|
11725 |
-
e.preventDefault();
|
11726 |
-
} );
|
11727 |
-
};
|
11728 |
-
|
11729 |
-
/* Pages calculation */
|
11730 |
-
if ( oSettings._iDisplayLength === -1 )
|
11731 |
-
{
|
11732 |
-
iStartButton = 1;
|
11733 |
-
iEndButton = 1;
|
11734 |
-
iCurrentPage = 1;
|
11735 |
-
}
|
11736 |
-
else if (iPages < iPageCount)
|
11737 |
-
{
|
11738 |
-
iStartButton = 1;
|
11739 |
-
iEndButton = iPages;
|
11740 |
-
}
|
11741 |
-
else if (iCurrentPage <= iPageCountHalf)
|
11742 |
-
{
|
11743 |
-
iStartButton = 1;
|
11744 |
-
iEndButton = iPageCount;
|
11745 |
-
}
|
11746 |
-
else if (iCurrentPage >= (iPages - iPageCountHalf))
|
11747 |
-
{
|
11748 |
-
iStartButton = iPages - iPageCount + 1;
|
11749 |
-
iEndButton = iPages;
|
11750 |
-
}
|
11751 |
-
else
|
11752 |
-
{
|
11753 |
-
iStartButton = iCurrentPage - Math.ceil(iPageCount / 2) + 1;
|
11754 |
-
iEndButton = iStartButton + iPageCount - 1;
|
11755 |
-
}
|
11756 |
|
11757 |
-
|
11758 |
-
|
11759 |
-
|
11760 |
-
|
11761 |
-
|
11762 |
-
|
11763 |
-
'<a tabindex="'+oSettings.iTabIndex+'" class="'+oClasses.sPageButtonActive+'">'+oSettings.fnFormatNumber(i)+'</a>';
|
11764 |
}
|
11765 |
-
|
11766 |
-
|
11767 |
-
|
11768 |
-
|
11769 |
-
|
11770 |
-
|
11771 |
-
{
|
11772 |
-
continue;
|
11773 |
-
}
|
11774 |
-
|
11775 |
-
/* Build up the dynamic list first - html and listeners */
|
11776 |
-
$('span:eq(0)', nNode)
|
11777 |
-
.html( sList )
|
11778 |
-
.children('a').each( fnBind );
|
11779 |
-
|
11780 |
-
/* Update the permanent button's classes */
|
11781 |
-
anButtons = nNode.getElementsByTagName('a');
|
11782 |
-
anStatic = [
|
11783 |
-
anButtons[0], anButtons[1],
|
11784 |
-
anButtons[anButtons.length-2], anButtons[anButtons.length-1]
|
11785 |
-
];
|
11786 |
-
|
11787 |
-
$(anStatic).removeClass( oClasses.sPageButton+" "+oClasses.sPageButtonActive+" "+oClasses.sPageButtonStaticDisabled );
|
11788 |
-
$([anStatic[0], anStatic[1]]).addClass(
|
11789 |
-
(iCurrentPage==1) ?
|
11790 |
-
oClasses.sPageButtonStaticDisabled :
|
11791 |
-
oClasses.sPageButton
|
11792 |
-
);
|
11793 |
-
$([anStatic[2], anStatic[3]]).addClass(
|
11794 |
-
(iPages===0 || iCurrentPage===iPages || oSettings._iDisplayLength===-1) ?
|
11795 |
-
oClasses.sPageButtonStaticDisabled :
|
11796 |
-
oClasses.sPageButton
|
11797 |
-
);
|
11798 |
}
|
11799 |
}
|
11800 |
}
|
11801 |
} );
|
11802 |
|
11803 |
-
$.extend( DataTable.ext.oSort, {
|
11804 |
-
/*
|
11805 |
-
* text sorting
|
11806 |
-
*/
|
11807 |
-
"string-pre": function ( a )
|
11808 |
-
{
|
11809 |
-
if ( typeof a != 'string' ) {
|
11810 |
-
a = (a !== null && a.toString) ? a.toString() : '';
|
11811 |
-
}
|
11812 |
-
return a.toLowerCase();
|
11813 |
-
},
|
11814 |
|
11815 |
-
|
11816 |
-
|
11817 |
-
|
11818 |
-
|
11819 |
-
|
11820 |
-
|
11821 |
-
|
11822 |
-
return ((x < y) ? 1 : ((x > y) ? -1 : 0));
|
11823 |
-
},
|
11824 |
-
|
11825 |
-
|
11826 |
-
/*
|
11827 |
-
* html sorting (ignore html tags)
|
11828 |
-
*/
|
11829 |
-
"html-pre": function ( a )
|
11830 |
-
{
|
11831 |
-
return a.replace( /<.*?>/g, "" ).toLowerCase();
|
11832 |
-
},
|
11833 |
-
|
11834 |
-
"html-asc": function ( x, y )
|
11835 |
-
{
|
11836 |
-
return ((x < y) ? -1 : ((x > y) ? 1 : 0));
|
11837 |
-
},
|
11838 |
-
|
11839 |
-
"html-desc": function ( x, y )
|
11840 |
{
|
11841 |
-
|
|
|
11842 |
},
|
11843 |
-
|
11844 |
-
|
11845 |
-
|
11846 |
-
* date sorting
|
11847 |
-
*/
|
11848 |
-
"date-pre": function ( a )
|
11849 |
{
|
11850 |
-
|
11851 |
-
|
11852 |
-
|
11853 |
-
{
|
11854 |
-
|
11855 |
}
|
11856 |
-
|
|
|
11857 |
},
|
11858 |
|
11859 |
-
|
|
|
11860 |
{
|
11861 |
-
|
|
|
11862 |
},
|
11863 |
-
|
11864 |
-
|
|
|
11865 |
{
|
11866 |
-
|
|
|
11867 |
},
|
11868 |
-
|
11869 |
-
|
11870 |
-
|
11871 |
-
* numerical sorting
|
11872 |
-
*/
|
11873 |
-
"numeric-pre": function ( a )
|
11874 |
{
|
11875 |
-
|
|
|
11876 |
},
|
11877 |
|
11878 |
-
|
|
|
11879 |
{
|
11880 |
-
return
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11881 |
},
|
11882 |
-
|
11883 |
-
|
11884 |
-
|
11885 |
-
|
|
|
|
|
|
|
11886 |
}
|
11887 |
} );
|
11888 |
|
11889 |
|
11890 |
-
|
11891 |
-
|
11892 |
-
|
11893 |
-
|
11894 |
-
|
11895 |
-
|
11896 |
-
|
11897 |
-
function
|
11898 |
-
|
11899 |
-
|
11900 |
-
|
11901 |
-
|
11902 |
-
|
11903 |
-
|
11904 |
-
|
11905 |
-
|
11906 |
-
return null;
|
11907 |
}
|
11908 |
-
|
11909 |
-
|
11910 |
-
|
11911 |
-
var Char;
|
11912 |
-
var bDecimal = false;
|
11913 |
-
|
11914 |
-
/* Check for a valid first char (no period and allow negatives) */
|
11915 |
-
Char = sData.charAt(0);
|
11916 |
-
if (sValidFirstChars.indexOf(Char) == -1)
|
11917 |
-
{
|
11918 |
-
return null;
|
11919 |
}
|
11920 |
-
|
11921 |
-
|
11922 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11923 |
{
|
11924 |
-
|
11925 |
-
|
11926 |
-
|
11927 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11928 |
}
|
11929 |
-
|
11930 |
-
|
11931 |
-
|
11932 |
-
|
11933 |
-
|
11934 |
-
|
11935 |
-
|
11936 |
-
|
11937 |
-
bDecimal = true;
|
11938 |
}
|
11939 |
}
|
11940 |
-
|
11941 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11942 |
},
|
11943 |
-
|
11944 |
-
|
11945 |
-
|
11946 |
-
|
11947 |
-
|
11948 |
-
|
11949 |
-
|
11950 |
-
|
11951 |
-
{
|
11952 |
-
var iParse = Date.parse(sData);
|
11953 |
-
if ( (iParse !== null && !isNaN(iParse)) || (typeof sData === 'string' && sData.length === 0) )
|
11954 |
-
{
|
11955 |
-
return 'date';
|
11956 |
-
}
|
11957 |
-
return null;
|
11958 |
},
|
11959 |
-
|
11960 |
-
|
11961 |
-
|
11962 |
-
|
11963 |
-
|
11964 |
-
|
11965 |
-
|
11966 |
-
|
11967 |
-
|
11968 |
-
|
11969 |
-
|
11970 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11971 |
}
|
11972 |
-
return null;
|
11973 |
}
|
11974 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11975 |
|
11976 |
|
11977 |
-
// jQuery
|
11978 |
-
$.fn.DataTable = DataTable;
|
11979 |
$.fn.dataTable = DataTable;
|
|
|
|
|
11980 |
$.fn.dataTableSettings = DataTable.settings;
|
11981 |
$.fn.dataTableExt = DataTable.ext;
|
11982 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11983 |
|
11984 |
// Information about events fired by DataTables - for documentation.
|
11985 |
/**
|
11986 |
-
* Draw event, fired whenever the table is redrawn on the page, at the same
|
11987 |
-
* fnDrawCallback. This may be useful for binding events or
|
11988 |
-
* the table is altered at all.
|
11989 |
-
* @name DataTable#draw
|
11990 |
* @event
|
11991 |
* @param {event} e jQuery event object
|
11992 |
* @param {object} o DataTables settings object {@link DataTable.models.oSettings}
|
11993 |
*/
|
11994 |
|
11995 |
/**
|
11996 |
-
*
|
11997 |
-
* global
|
11998 |
-
* @name DataTable#
|
11999 |
* @event
|
12000 |
* @param {event} e jQuery event object
|
12001 |
* @param {object} o DataTables settings object {@link DataTable.models.oSettings}
|
@@ -12003,24 +14720,24 @@
|
|
12003 |
|
12004 |
/**
|
12005 |
* Page change event, fired when the paging of the table is altered.
|
12006 |
-
* @name DataTable#page
|
12007 |
* @event
|
12008 |
* @param {event} e jQuery event object
|
12009 |
* @param {object} o DataTables settings object {@link DataTable.models.oSettings}
|
12010 |
*/
|
12011 |
|
12012 |
/**
|
12013 |
-
*
|
12014 |
-
* @name DataTable#
|
12015 |
* @event
|
12016 |
* @param {event} e jQuery event object
|
12017 |
* @param {object} o DataTables settings object {@link DataTable.models.oSettings}
|
12018 |
*/
|
12019 |
|
12020 |
/**
|
12021 |
-
* DataTables initialisation complete event, fired when the table is fully
|
12022 |
-
* including Ajax data loaded, if Ajax data is required.
|
12023 |
-
* @name DataTable#init
|
12024 |
* @event
|
12025 |
* @param {event} e jQuery event object
|
12026 |
* @param {object} oSettings DataTables settings object
|
@@ -12029,11 +14746,11 @@
|
|
12029 |
*/
|
12030 |
|
12031 |
/**
|
12032 |
-
* State save event, fired when the table has changed state a new state save
|
12033 |
-
* This
|
12034 |
-
* save, including addition or other state
|
12035 |
-
* of a DataTables core property.
|
12036 |
-
* @name DataTable#stateSaveParams
|
12037 |
* @event
|
12038 |
* @param {event} e jQuery event object
|
12039 |
* @param {object} oSettings DataTables settings object
|
@@ -12041,10 +14758,11 @@
|
|
12041 |
*/
|
12042 |
|
12043 |
/**
|
12044 |
-
* State load event, fired when the table is loading state from the stored
|
12045 |
-
* prior to the settings object being modified by the saved state
|
12046 |
-
* of the saved state is required or loading of
|
12047 |
-
*
|
|
|
12048 |
* @event
|
12049 |
* @param {event} e jQuery event object
|
12050 |
* @param {object} oSettings DataTables settings object
|
@@ -12052,9 +14770,9 @@
|
|
12052 |
*/
|
12053 |
|
12054 |
/**
|
12055 |
-
* State loaded event, fired when state has been loaded from stored data and
|
12056 |
-
* object has been modified by the loaded data.
|
12057 |
-
* @name DataTable#stateLoaded
|
12058 |
* @event
|
12059 |
* @param {event} e jQuery event object
|
12060 |
* @param {object} oSettings DataTables settings object
|
@@ -12062,10 +14780,11 @@
|
|
12062 |
*/
|
12063 |
|
12064 |
/**
|
12065 |
-
* Processing event, fired when DataTables is doing some kind of processing
|
12066 |
-
*
|
12067 |
-
* there is something happening, or that something has
|
12068 |
-
*
|
|
|
12069 |
* @event
|
12070 |
* @param {event} e jQuery event object
|
12071 |
* @param {object} oSettings DataTables settings object
|
@@ -12073,26 +14792,75 @@
|
|
12073 |
*/
|
12074 |
|
12075 |
/**
|
12076 |
-
* Ajax (XHR) event, fired whenever an Ajax request is completed from a
|
12077 |
-
* made to the server for new data
|
12078 |
-
*
|
12079 |
-
*
|
12080 |
-
*
|
|
|
|
|
|
|
|
|
12081 |
* @event
|
12082 |
* @param {event} e jQuery event object
|
12083 |
* @param {object} o DataTables settings object {@link DataTable.models.oSettings}
|
12084 |
* @param {object} json JSON returned from the server
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12085 |
*/
|
12086 |
|
12087 |
/**
|
12088 |
-
*
|
12089 |
-
*
|
12090 |
-
* bound events, added DOM nodes, etc.
|
12091 |
-
* @name DataTable#destroy
|
12092 |
* @event
|
12093 |
* @param {event} e jQuery event object
|
12094 |
* @param {object} o DataTables settings object {@link DataTable.models.oSettings}
|
|
|
|
|
12095 |
*/
|
|
|
|
|
12096 |
}));
|
12097 |
|
12098 |
}(window, document));
|
1 |
+
/*! DataTables 1.10.5
|
2 |
+
* ©2008-2014 SpryMedia Ltd - datatables.net/license
|
3 |
+
*/
|
4 |
+
|
5 |
/**
|
6 |
* @summary DataTables
|
7 |
+
* @description Paginate, search and order HTML tables
|
8 |
+
* @version 1.10.5
|
9 |
* @file jquery.dataTables.js
|
10 |
+
* @author SpryMedia Ltd (www.sprymedia.co.uk)
|
11 |
* @contact www.sprymedia.co.uk/contact
|
12 |
+
* @copyright Copyright 2008-2014 SpryMedia Ltd.
|
13 |
*
|
14 |
+
* This source file is free software, available under the following license:
|
15 |
+
* MIT license - http://datatables.net/license
|
16 |
*
|
17 |
+
* This source file is distributed in the hope that it will be useful, but
|
18 |
+
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
|
|
|
|
|
|
|
|
|
19 |
* or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.
|
20 |
+
*
|
21 |
* For details please refer to: http://www.datatables.net
|
22 |
*/
|
23 |
|
24 |
/*jslint evil: true, undef: true, browser: true */
|
25 |
+
/*globals $,require,jQuery,define,_selector_run,_selector_opts,_selector_first,_selector_row_indexes,_ext,_Api,_api_register,_api_registerPlural,_re_new_lines,_re_html,_re_formatted_numeric,_re_escape_regex,_empty,_intVal,_numToDecimal,_isNumber,_isHtml,_htmlNumeric,_pluck,_pluck_order,_range,_stripHtml,_unique,_fnBuildAjax,_fnAjaxUpdate,_fnAjaxParameters,_fnAjaxUpdateDraw,_fnAjaxDataSrc,_fnAddColumn,_fnColumnOptions,_fnAdjustColumnSizing,_fnVisibleToColumnIndex,_fnColumnIndexToVisible,_fnVisbleColumns,_fnGetColumns,_fnColumnTypes,_fnApplyColumnDefs,_fnHungarianMap,_fnCamelToHungarian,_fnLanguageCompat,_fnBrowserDetect,_fnAddData,_fnAddTr,_fnNodeToDataIndex,_fnNodeToColumnIndex,_fnGetCellData,_fnSetCellData,_fnSplitObjNotation,_fnGetObjectDataFn,_fnSetObjectDataFn,_fnGetDataMaster,_fnClearTable,_fnDeleteIndex,_fnInvalidate,_fnGetRowElements,_fnCreateTr,_fnBuildHead,_fnDrawHead,_fnDraw,_fnReDraw,_fnAddOptionsHtml,_fnDetectHeader,_fnGetUniqueThs,_fnFeatureHtmlFilter,_fnFilterComplete,_fnFilterCustom,_fnFilterColumn,_fnFilter,_fnFilterCreateSearch,_fnEscapeRegex,_fnFilterData,_fnFeatureHtmlInfo,_fnUpdateInfo,_fnInfoMacros,_fnInitialise,_fnInitComplete,_fnLengthChange,_fnFeatureHtmlLength,_fnFeatureHtmlPaginate,_fnPageChange,_fnFeatureHtmlProcessing,_fnProcessingDisplay,_fnFeatureHtmlTable,_fnScrollDraw,_fnApplyToChildren,_fnCalculateColumnWidths,_fnThrottle,_fnConvertToWidth,_fnScrollingWidthAdjust,_fnGetWidestNode,_fnGetMaxLenString,_fnStringToCss,_fnScrollBarWidth,_fnSortFlatten,_fnSort,_fnSortAria,_fnSortListener,_fnSortAttachListener,_fnSortingClasses,_fnSortData,_fnSaveState,_fnLoadState,_fnSettingsFromNode,_fnLog,_fnMap,_fnBindAction,_fnCallbackReg,_fnCallbackFire,_fnLengthOverflow,_fnRenderer,_fnDataSource,_fnRowAttributes*/
|
26 |
|
27 |
(/** @lends <global> */function( window, document, undefined ) {
|
28 |
|
29 |
(function( factory ) {
|
30 |
"use strict";
|
31 |
|
32 |
+
if ( typeof define === 'function' && define.amd ) {
|
33 |
+
// Define as an AMD module if possible
|
34 |
+
define( 'datatables', ['jquery'], factory );
|
|
|
35 |
}
|
36 |
+
else if ( typeof exports === 'object' ) {
|
37 |
+
// Node/CommonJS
|
38 |
+
module.exports = factory( require( 'jquery' ) );
|
39 |
+
}
|
40 |
+
else if ( jQuery && !jQuery.fn.dataTable ) {
|
41 |
+
// Define using browser globals otherwise
|
42 |
+
// Prevent multiple instantiations if the script is loaded twice
|
43 |
factory( jQuery );
|
44 |
}
|
45 |
}
|
46 |
(/** @lends <global> */function( $ ) {
|
47 |
"use strict";
|
48 |
+
|
49 |
+
/**
|
50 |
+
* DataTables is a plug-in for the jQuery Javascript library. It is a highly
|
51 |
+
* flexible tool, based upon the foundations of progressive enhancement,
|
52 |
+
* which will add advanced interaction controls to any HTML table. For a
|
53 |
+
* full list of features please refer to
|
54 |
+
* [DataTables.net](href="http://datatables.net).
|
55 |
*
|
56 |
+
* Note that the `DataTable` object is not a global variable but is aliased
|
57 |
+
* to `jQuery.fn.DataTable` and `jQuery.fn.dataTable` through which it may
|
58 |
+
* be accessed.
|
59 |
*
|
60 |
* @class
|
61 |
+
* @param {object} [init={}] Configuration object for DataTables. Options
|
62 |
* are defined by {@link DataTable.defaults}
|
63 |
+
* @requires jQuery 1.7+
|
64 |
+
*
|
65 |
* @example
|
66 |
* // Basic initialisation
|
67 |
* $(document).ready( function {
|
68 |
* $('#example').dataTable();
|
69 |
* } );
|
70 |
+
*
|
71 |
* @example
|
72 |
* // Initialisation with configuration options - in this case, disable
|
73 |
* // pagination and sorting.
|
74 |
* $(document).ready( function {
|
75 |
* $('#example').dataTable( {
|
76 |
+
* "paginate": false,
|
77 |
+
* "sort": false
|
78 |
* } );
|
79 |
* } );
|
80 |
*/
|
81 |
+
var DataTable;
|
82 |
+
|
83 |
+
|
84 |
+
/*
|
85 |
+
* It is useful to have variables which are scoped locally so only the
|
86 |
+
* DataTables functions can access them and they don't leak into global space.
|
87 |
+
* At the same time these functions are often useful over multiple files in the
|
88 |
+
* core and API, so we list, or at least document, all variables which are used
|
89 |
+
* by DataTables as private variables here. This also ensures that there is no
|
90 |
+
* clashing of variable names and that they can easily referenced for reuse.
|
91 |
+
*/
|
92 |
+
|
93 |
+
|
94 |
+
// Defined else where
|
95 |
+
// _selector_run
|
96 |
+
// _selector_opts
|
97 |
+
// _selector_first
|
98 |
+
// _selector_row_indexes
|
99 |
+
|
100 |
+
var _ext; // DataTable.ext
|
101 |
+
var _Api; // DataTable.Api
|
102 |
+
var _api_register; // DataTable.Api.register
|
103 |
+
var _api_registerPlural; // DataTable.Api.registerPlural
|
104 |
+
|
105 |
+
var _re_dic = {};
|
106 |
+
var _re_new_lines = /[\r\n]/g;
|
107 |
+
var _re_html = /<.*?>/g;
|
108 |
+
var _re_date_start = /^[\w\+\-]/;
|
109 |
+
var _re_date_end = /[\w\+\-]$/;
|
110 |
+
|
111 |
+
// Escape regular expression special characters
|
112 |
+
var _re_escape_regex = new RegExp( '(\\' + [ '/', '.', '*', '+', '?', '|', '(', ')', '[', ']', '{', '}', '\\', '$', '^', '-' ].join('|\\') + ')', 'g' );
|
113 |
+
|
114 |
+
// U+2009 is thin space and U+202F is narrow no-break space, both used in many
|
115 |
+
// standards as thousands separators
|
116 |
+
var _re_formatted_numeric = /[',$£€¥%\u2009\u202F]/g;
|
117 |
+
|
118 |
+
|
119 |
+
var _empty = function ( d ) {
|
120 |
+
return !d || d === true || d === '-' ? true : false;
|
121 |
+
};
|
122 |
+
|
123 |
+
|
124 |
+
var _intVal = function ( s ) {
|
125 |
+
var integer = parseInt( s, 10 );
|
126 |
+
return !isNaN(integer) && isFinite(s) ? integer : null;
|
127 |
+
};
|
128 |
+
|
129 |
+
// Convert from a formatted number with characters other than `.` as the
|
130 |
+
// decimal place, to a Javascript number
|
131 |
+
var _numToDecimal = function ( num, decimalPoint ) {
|
132 |
+
// Cache created regular expressions for speed as this function is called often
|
133 |
+
if ( ! _re_dic[ decimalPoint ] ) {
|
134 |
+
_re_dic[ decimalPoint ] = new RegExp( _fnEscapeRegex( decimalPoint ), 'g' );
|
135 |
+
}
|
136 |
+
return typeof num === 'string' && decimalPoint !== '.' ?
|
137 |
+
num.replace( /\./g, '' ).replace( _re_dic[ decimalPoint ], '.' ) :
|
138 |
+
num;
|
139 |
+
};
|
140 |
+
|
141 |
+
|
142 |
+
var _isNumber = function ( d, decimalPoint, formatted ) {
|
143 |
+
var strType = typeof d === 'string';
|
144 |
+
|
145 |
+
if ( decimalPoint && strType ) {
|
146 |
+
d = _numToDecimal( d, decimalPoint );
|
147 |
+
}
|
148 |
+
|
149 |
+
if ( formatted && strType ) {
|
150 |
+
d = d.replace( _re_formatted_numeric, '' );
|
151 |
+
}
|
152 |
+
|
153 |
+
return _empty( d ) || (!isNaN( parseFloat(d) ) && isFinite( d ));
|
154 |
+
};
|
155 |
+
|
156 |
+
|
157 |
+
// A string without HTML in it can be considered to be HTML still
|
158 |
+
var _isHtml = function ( d ) {
|
159 |
+
return _empty( d ) || typeof d === 'string';
|
160 |
+
};
|
161 |
+
|
162 |
+
|
163 |
+
var _htmlNumeric = function ( d, decimalPoint, formatted ) {
|
164 |
+
if ( _empty( d ) ) {
|
165 |
+
return true;
|
166 |
+
}
|
167 |
+
|
168 |
+
var html = _isHtml( d );
|
169 |
+
return ! html ?
|
170 |
+
null :
|
171 |
+
_isNumber( _stripHtml( d ), decimalPoint, formatted ) ?
|
172 |
+
true :
|
173 |
+
null;
|
174 |
+
};
|
175 |
+
|
176 |
+
|
177 |
+
var _pluck = function ( a, prop, prop2 ) {
|
178 |
+
var out = [];
|
179 |
+
var i=0, ien=a.length;
|
180 |
+
|
181 |
+
// Could have the test in the loop for slightly smaller code, but speed
|
182 |
+
// is essential here
|
183 |
+
if ( prop2 !== undefined ) {
|
184 |
+
for ( ; i<ien ; i++ ) {
|
185 |
+
if ( a[i] && a[i][ prop ] ) {
|
186 |
+
out.push( a[i][ prop ][ prop2 ] );
|
187 |
}
|
188 |
}
|
|
|
|
|
|
|
189 |
}
|
190 |
+
else {
|
191 |
+
for ( ; i<ien ; i++ ) {
|
192 |
+
if ( a[i] ) {
|
193 |
+
out.push( a[i][ prop ] );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
194 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
195 |
}
|
196 |
+
}
|
197 |
+
|
198 |
+
return out;
|
199 |
+
};
|
200 |
+
|
201 |
+
|
202 |
+
// Basically the same as _pluck, but rather than looping over `a` we use `order`
|
203 |
+
// as the indexes to pick from `a`
|
204 |
+
var _pluck_order = function ( a, order, prop, prop2 )
|
205 |
+
{
|
206 |
+
var out = [];
|
207 |
+
var i=0, ien=order.length;
|
208 |
+
|
209 |
+
// Could have the test in the loop for slightly smaller code, but speed
|
210 |
+
// is essential here
|
211 |
+
if ( prop2 !== undefined ) {
|
212 |
+
for ( ; i<ien ; i++ ) {
|
213 |
+
if ( a[ order[i] ][ prop ] ) {
|
214 |
+
out.push( a[ order[i] ][ prop ][ prop2 ] );
|
215 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
216 |
}
|
217 |
}
|
218 |
+
else {
|
219 |
+
for ( ; i<ien ; i++ ) {
|
220 |
+
out.push( a[ order[i] ][ prop ] );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
221 |
}
|
222 |
}
|
223 |
+
|
224 |
+
return out;
|
225 |
+
};
|
226 |
+
|
227 |
+
|
228 |
+
var _range = function ( len, start )
|
229 |
+
{
|
230 |
+
var out = [];
|
231 |
+
var end;
|
232 |
+
|
233 |
+
if ( start === undefined ) {
|
234 |
+
start = 0;
|
235 |
+
end = len;
|
|
|
|
|
|
|
|
|
236 |
}
|
237 |
+
else {
|
238 |
+
end = start;
|
239 |
+
start = len;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
240 |
}
|
241 |
+
|
242 |
+
for ( var i=start ; i<end ; i++ ) {
|
243 |
+
out.push( i );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
244 |
}
|
245 |
+
|
246 |
+
return out;
|
247 |
+
};
|
248 |
+
|
249 |
+
|
250 |
+
var _removeEmpty = function ( a )
|
251 |
+
{
|
252 |
+
var out = [];
|
253 |
+
|
254 |
+
for ( var i=0, ien=a.length ; i<ien ; i++ ) {
|
255 |
+
if ( a[i] ) { // careful - will remove all falsy values!
|
256 |
+
out.push( a[i] );
|
257 |
+
}
|
258 |
+
}
|
259 |
+
|
260 |
+
return out;
|
261 |
+
};
|
262 |
+
|
263 |
+
|
264 |
+
var _stripHtml = function ( d ) {
|
265 |
+
return d.replace( _re_html, '' );
|
266 |
+
};
|
267 |
+
|
268 |
+
|
269 |
+
/**
|
270 |
+
* Find the unique elements in a source array.
|
271 |
+
*
|
272 |
+
* @param {array} src Source array
|
273 |
+
* @return {array} Array of unique items
|
274 |
+
* @ignore
|
275 |
+
*/
|
276 |
+
var _unique = function ( src )
|
277 |
+
{
|
278 |
+
// A faster unique method is to use object keys to identify used values,
|
279 |
+
// but this doesn't work with arrays or objects, which we must also
|
280 |
+
// consider. See jsperf.com/compare-array-unique-versions/4 for more
|
281 |
+
// information.
|
282 |
+
var
|
283 |
+
out = [],
|
284 |
+
val,
|
285 |
+
i, ien=src.length,
|
286 |
+
j, k=0;
|
287 |
+
|
288 |
+
again: for ( i=0 ; i<ien ; i++ ) {
|
289 |
+
val = src[i];
|
290 |
+
|
291 |
+
for ( j=0 ; j<k ; j++ ) {
|
292 |
+
if ( out[j] === val ) {
|
293 |
+
continue again;
|
294 |
}
|
295 |
+
}
|
296 |
+
|
297 |
+
out.push( val );
|
298 |
+
k++;
|
299 |
}
|
300 |
+
|
301 |
+
return out;
|
302 |
+
};
|
303 |
+
|
304 |
+
|
305 |
+
|
306 |
+
/**
|
307 |
+
* Create a mapping object that allows camel case parameters to be looked up
|
308 |
+
* for their Hungarian counterparts. The mapping is stored in a private
|
309 |
+
* parameter called `_hungarianMap` which can be accessed on the source object.
|
310 |
+
* @param {object} o
|
311 |
+
* @memberof DataTable#oApi
|
312 |
+
*/
|
313 |
+
function _fnHungarianMap ( o )
|
314 |
+
{
|
315 |
+
var
|
316 |
+
hungarian = 'a aa ai ao as b fn i m o s ',
|
317 |
+
match,
|
318 |
+
newKey,
|
319 |
+
map = {};
|
320 |
+
|
321 |
+
$.each( o, function (key, val) {
|
322 |
+
match = key.match(/^([^A-Z]+?)([A-Z])/);
|
323 |
+
|
324 |
+
if ( match && hungarian.indexOf(match[1]+' ') !== -1 )
|
325 |
{
|
326 |
+
newKey = key.replace( match[0], match[2].toLowerCase() );
|
327 |
+
map[ newKey ] = key;
|
328 |
+
|
329 |
+
if ( match[1] === 'o' )
|
330 |
{
|
331 |
+
_fnHungarianMap( o[key] );
|
332 |
}
|
333 |
}
|
334 |
+
} );
|
335 |
+
|
336 |
+
o._hungarianMap = map;
|
337 |
+
}
|
338 |
+
|
339 |
+
|
340 |
+
/**
|
341 |
+
* Convert from camel case parameters to Hungarian, based on a Hungarian map
|
342 |
+
* created by _fnHungarianMap.
|
343 |
+
* @param {object} src The model object which holds all parameters that can be
|
344 |
+
* mapped.
|
345 |
+
* @param {object} user The object to convert from camel case to Hungarian.
|
346 |
+
* @param {boolean} force When set to `true`, properties which already have a
|
347 |
+
* Hungarian value in the `user` object will be overwritten. Otherwise they
|
348 |
+
* won't be.
|
349 |
+
* @memberof DataTable#oApi
|
350 |
+
*/
|
351 |
+
function _fnCamelToHungarian ( src, user, force )
|
352 |
+
{
|
353 |
+
if ( ! src._hungarianMap ) {
|
354 |
+
_fnHungarianMap( src );
|
355 |
}
|
356 |
+
|
357 |
+
var hungarianKey;
|
358 |
+
|
359 |
+
$.each( user, function (key, val) {
|
360 |
+
hungarianKey = src._hungarianMap[ key ];
|
361 |
+
|
362 |
+
if ( hungarianKey !== undefined && (force || user[hungarianKey] === undefined) )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
363 |
{
|
364 |
+
// For objects, we need to buzz down into the object to copy parameters
|
365 |
+
if ( hungarianKey.charAt(0) === 'o' )
|
366 |
{
|
367 |
+
// Copy the camelCase options over to the hungarian
|
368 |
+
if ( ! user[ hungarianKey ] ) {
|
369 |
+
user[ hungarianKey ] = {};
|
|
|
370 |
}
|
371 |
+
$.extend( true, user[hungarianKey], user[key] );
|
372 |
+
|
373 |
+
_fnCamelToHungarian( src[hungarianKey], user[hungarianKey], force );
|
374 |
+
}
|
375 |
+
else {
|
376 |
+
user[hungarianKey] = user[ key ];
|
377 |
}
|
378 |
}
|
379 |
+
} );
|
380 |
+
}
|
381 |
+
|
382 |
+
|
383 |
+
/**
|
384 |
+
* Language compatibility - when certain options are given, and others aren't, we
|
385 |
+
* need to duplicate the values over, in order to provide backwards compatibility
|
386 |
+
* with older language files.
|
387 |
+
* @param {object} oSettings dataTables settings object
|
388 |
+
* @memberof DataTable#oApi
|
389 |
+
*/
|
390 |
+
function _fnLanguageCompat( lang )
|
391 |
+
{
|
392 |
+
var defaults = DataTable.defaults.oLanguage;
|
393 |
+
var zeroRecords = lang.sZeroRecords;
|
394 |
+
|
395 |
+
/* Backwards compatibility - if there is no sEmptyTable given, then use the same as
|
396 |
+
* sZeroRecords - assuming that is given.
|
397 |
*/
|
398 |
+
if ( ! lang.sEmptyTable && zeroRecords &&
|
399 |
+
defaults.sEmptyTable === "No data available in table" )
|
400 |
{
|
401 |
+
_fnMap( lang, lang, 'sZeroRecords', 'sEmptyTable' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
402 |
}
|
403 |
+
|
404 |
+
/* Likewise with loading records */
|
405 |
+
if ( ! lang.sLoadingRecords && zeroRecords &&
|
406 |
+
defaults.sLoadingRecords === "Loading..." )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
407 |
{
|
408 |
+
_fnMap( lang, lang, 'sZeroRecords', 'sLoadingRecords' );
|
409 |
+
}
|
410 |
+
|
411 |
+
// Old parameter name of the thousands separator mapped onto the new
|
412 |
+
if ( lang.sInfoThousands ) {
|
413 |
+
lang.sThousands = lang.sInfoThousands;
|
414 |
+
}
|
415 |
+
|
416 |
+
var decimal = lang.sDecimal;
|
417 |
+
if ( decimal ) {
|
418 |
+
_addNumericSort( decimal );
|
419 |
+
}
|
420 |
+
}
|
421 |
+
|
422 |
+
|
423 |
+
/**
|
424 |
+
* Map one parameter onto another
|
425 |
+
* @param {object} o Object to map
|
426 |
+
* @param {*} knew The new parameter name
|
427 |
+
* @param {*} old The old parameter name
|
428 |
+
*/
|
429 |
+
var _fnCompatMap = function ( o, knew, old ) {
|
430 |
+
if ( o[ knew ] !== undefined ) {
|
431 |
+
o[ old ] = o[ knew ];
|
432 |
+
}
|
433 |
+
};
|
434 |
+
|
435 |
+
|
436 |
+
/**
|
437 |
+
* Provide backwards compatibility for the main DT options. Note that the new
|
438 |
+
* options are mapped onto the old parameters, so this is an external interface
|
439 |
+
* change only.
|
440 |
+
* @param {object} init Object to map
|
441 |
+
*/
|
442 |
+
function _fnCompatOpts ( init )
|
443 |
+
{
|
444 |
+
_fnCompatMap( init, 'ordering', 'bSort' );
|
445 |
+
_fnCompatMap( init, 'orderMulti', 'bSortMulti' );
|
446 |
+
_fnCompatMap( init, 'orderClasses', 'bSortClasses' );
|
447 |
+
_fnCompatMap( init, 'orderCellsTop', 'bSortCellsTop' );
|
448 |
+
_fnCompatMap( init, 'order', 'aaSorting' );
|
449 |
+
_fnCompatMap( init, 'orderFixed', 'aaSortingFixed' );
|
450 |
+
_fnCompatMap( init, 'paging', 'bPaginate' );
|
451 |
+
_fnCompatMap( init, 'pagingType', 'sPaginationType' );
|
452 |
+
_fnCompatMap( init, 'pageLength', 'iDisplayLength' );
|
453 |
+
_fnCompatMap( init, 'searching', 'bFilter' );
|
454 |
+
|
455 |
+
// Column search objects are in an array, so it needs to be converted
|
456 |
+
// element by element
|
457 |
+
var searchCols = init.aoSearchCols;
|
458 |
+
|
459 |
+
if ( searchCols ) {
|
460 |
+
for ( var i=0, ien=searchCols.length ; i<ien ; i++ ) {
|
461 |
+
if ( searchCols[i] ) {
|
462 |
+
_fnCamelToHungarian( DataTable.models.oSearch, searchCols[i] );
|
463 |
}
|
464 |
}
|
465 |
+
}
|
466 |
+
}
|
467 |
+
|
468 |
+
|
469 |
+
/**
|
470 |
+
* Provide backwards compatibility for column options. Note that the new options
|
471 |
+
* are mapped onto the old parameters, so this is an external interface change
|
472 |
+
* only.
|
473 |
+
* @param {object} init Object to map
|
474 |
+
*/
|
475 |
+
function _fnCompatCols ( init )
|
476 |
+
{
|
477 |
+
_fnCompatMap( init, 'orderable', 'bSortable' );
|
478 |
+
_fnCompatMap( init, 'orderData', 'aDataSort' );
|
479 |
+
_fnCompatMap( init, 'orderSequence', 'asSorting' );
|
480 |
+
_fnCompatMap( init, 'orderDataType', 'sortDataType' );
|
481 |
+
}
|
482 |
+
|
483 |
+
|
484 |
+
/**
|
485 |
+
* Browser feature detection for capabilities, quirks
|
486 |
+
* @param {object} settings dataTables settings object
|
487 |
+
* @memberof DataTable#oApi
|
488 |
+
*/
|
489 |
+
function _fnBrowserDetect( settings )
|
490 |
+
{
|
491 |
+
var browser = settings.oBrowser;
|
492 |
+
|
493 |
+
// Scrolling feature / quirks detection
|
494 |
+
var n = $('<div/>')
|
495 |
+
.css( {
|
496 |
+
position: 'absolute',
|
497 |
+
top: 0,
|
498 |
+
left: 0,
|
499 |
+
height: 1,
|
500 |
+
width: 1,
|
501 |
+
overflow: 'hidden'
|
502 |
+
} )
|
503 |
+
.append(
|
504 |
+
$('<div/>')
|
505 |
+
.css( {
|
506 |
+
position: 'absolute',
|
507 |
+
top: 1,
|
508 |
+
left: 1,
|
509 |
+
width: 100,
|
510 |
+
overflow: 'scroll'
|
511 |
+
} )
|
512 |
+
.append(
|
513 |
+
$('<div class="test"/>')
|
514 |
+
.css( {
|
515 |
+
width: '100%',
|
516 |
+
height: 10
|
517 |
+
} )
|
518 |
+
)
|
519 |
+
)
|
520 |
+
.appendTo( 'body' );
|
521 |
+
|
522 |
+
var test = n.find('.test');
|
523 |
+
|
524 |
+
// IE6/7 will oversize a width 100% element inside a scrolling element, to
|
525 |
+
// include the width of the scrollbar, while other browsers ensure the inner
|
526 |
+
// element is contained without forcing scrolling
|
527 |
+
browser.bScrollOversize = test[0].offsetWidth === 100;
|
528 |
+
|
529 |
+
// In rtl text layout, some browsers (most, but not all) will place the
|
530 |
+
// scrollbar on the left, rather than the right.
|
531 |
+
browser.bScrollbarLeft = test.offset().left !== 1;
|
532 |
+
|
533 |
+
n.remove();
|
534 |
+
}
|
535 |
+
|
536 |
+
|
537 |
+
/**
|
538 |
+
* Array.prototype reduce[Right] method, used for browsers which don't support
|
539 |
+
* JS 1.6. Done this way to reduce code size, since we iterate either way
|
540 |
+
* @param {object} settings dataTables settings object
|
541 |
+
* @memberof DataTable#oApi
|
542 |
+
*/
|
543 |
+
function _fnReduce ( that, fn, init, start, end, inc )
|
544 |
+
{
|
545 |
+
var
|
546 |
+
i = start,
|
547 |
+
value,
|
548 |
+
isSet = false;
|
549 |
+
|
550 |
+
if ( init !== undefined ) {
|
551 |
+
value = init;
|
552 |
+
isSet = true;
|
553 |
+
}
|
554 |
+
|
555 |
+
while ( i !== end ) {
|
556 |
+
if ( ! that.hasOwnProperty(i) ) {
|
557 |
+
continue;
|
558 |
}
|
559 |
+
|
560 |
+
value = isSet ?
|
561 |
+
fn( value, that[i], i, that ) :
|
562 |
+
that[i];
|
563 |
+
|
564 |
+
isSet = true;
|
565 |
+
i += inc;
|
566 |
}
|
567 |
+
|
568 |
+
return value;
|
569 |
+
}
|
570 |
+
|
571 |
+
/**
|
572 |
+
* Add a column to the list used for the table with default values
|
573 |
+
* @param {object} oSettings dataTables settings object
|
574 |
+
* @param {node} nTh The th element for this column
|
575 |
+
* @memberof DataTable#oApi
|
576 |
+
*/
|
577 |
+
function _fnAddColumn( oSettings, nTh )
|
578 |
+
{
|
579 |
+
// Add column to aoColumns array
|
580 |
+
var oDefaults = DataTable.defaults.column;
|
581 |
+
var iCol = oSettings.aoColumns.length;
|
582 |
+
var oCol = $.extend( {}, DataTable.models.oColumn, oDefaults, {
|
583 |
+
"nTh": nTh ? nTh : document.createElement('th'),
|
584 |
+
"sTitle": oDefaults.sTitle ? oDefaults.sTitle : nTh ? nTh.innerHTML : '',
|
585 |
+
"aDataSort": oDefaults.aDataSort ? oDefaults.aDataSort : [iCol],
|
586 |
+
"mData": oDefaults.mData ? oDefaults.mData : iCol,
|
587 |
+
idx: iCol
|
588 |
+
} );
|
589 |
+
oSettings.aoColumns.push( oCol );
|
590 |
+
|
591 |
+
// Add search object for column specific search. Note that the `searchCols[ iCol ]`
|
592 |
+
// passed into extend can be undefined. This allows the user to give a default
|
593 |
+
// with only some of the parameters defined, and also not give a default
|
594 |
+
var searchCols = oSettings.aoPreSearchCols;
|
595 |
+
searchCols[ iCol ] = $.extend( {}, DataTable.models.oSearch, searchCols[ iCol ] );
|
596 |
+
|
597 |
+
// Use the default column options function to initialise classes etc
|
598 |
+
_fnColumnOptions( oSettings, iCol, $(nTh).data() );
|
599 |
+
}
|
600 |
+
|
601 |
+
|
602 |
+
/**
|
603 |
+
* Apply options for a column
|
604 |
+
* @param {object} oSettings dataTables settings object
|
605 |
+
* @param {int} iCol column index to consider
|
606 |
+
* @param {object} oOptions object with sType, bVisible and bSearchable etc
|
607 |
+
* @memberof DataTable#oApi
|
608 |
+
*/
|
609 |
+
function _fnColumnOptions( oSettings, iCol, oOptions )
|
610 |
+
{
|
611 |
+
var oCol = oSettings.aoColumns[ iCol ];
|
612 |
+
var oClasses = oSettings.oClasses;
|
613 |
+
var th = $(oCol.nTh);
|
614 |
+
|
615 |
+
// Try to get width information from the DOM. We can't get it from CSS
|
616 |
+
// as we'd need to parse the CSS stylesheet. `width` option can override
|
617 |
+
if ( ! oCol.sWidthOrig ) {
|
618 |
+
// Width attribute
|
619 |
+
oCol.sWidthOrig = th.attr('width') || null;
|
620 |
+
|
621 |
+
// Style attribute
|
622 |
+
var t = (th.attr('style') || '').match(/width:\s*(\d+[pxem%]+)/);
|
623 |
+
if ( t ) {
|
624 |
+
oCol.sWidthOrig = t[1];
|
625 |
+
}
|
626 |
+
}
|
627 |
+
|
628 |
+
/* User specified column options */
|
629 |
+
if ( oOptions !== undefined && oOptions !== null )
|
630 |
{
|
631 |
+
// Backwards compatibility
|
632 |
+
_fnCompatCols( oOptions );
|
633 |
+
|
634 |
+
// Map camel case parameters to their Hungarian counterparts
|
635 |
+
_fnCamelToHungarian( DataTable.defaults.column, oOptions );
|
636 |
+
|
637 |
+
/* Backwards compatibility for mDataProp */
|
638 |
+
if ( oOptions.mDataProp !== undefined && !oOptions.mData )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
639 |
{
|
640 |
+
oOptions.mData = oOptions.mDataProp;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
641 |
}
|
642 |
+
|
643 |
+
if ( oOptions.sType )
|
|
|
|
|
|
|
|
|
644 |
{
|
645 |
+
oCol._sManualType = oOptions.sType;
|
646 |
}
|
647 |
+
|
648 |
+
// `class` is a reserved word in Javascript, so we need to provide
|
649 |
+
// the ability to use a valid name for the camel case input
|
650 |
+
if ( oOptions.className && ! oOptions.sClass )
|
651 |
+
{
|
652 |
+
oOptions.sClass = oOptions.className;
|
653 |
+
}
|
654 |
+
|
655 |
+
$.extend( oCol, oOptions );
|
656 |
+
_fnMap( oCol, oOptions, "sWidth", "sWidthOrig" );
|
657 |
+
|
658 |
+
/* iDataSort to be applied (backwards compatibility), but aDataSort will take
|
659 |
+
* priority if defined
|
660 |
+
*/
|
661 |
+
if ( typeof oOptions.iDataSort === 'number' )
|
662 |
+
{
|
663 |
+
oCol.aDataSort = [ oOptions.iDataSort ];
|
664 |
+
}
|
665 |
+
_fnMap( oCol, oOptions, "aDataSort" );
|
666 |
}
|
667 |
+
|
668 |
+
/* Cache the data get and set functions for speed */
|
669 |
+
var mDataSrc = oCol.mData;
|
670 |
+
var mData = _fnGetObjectDataFn( mDataSrc );
|
671 |
+
var mRender = oCol.mRender ? _fnGetObjectDataFn( oCol.mRender ) : null;
|
672 |
+
|
673 |
+
var attrTest = function( src ) {
|
674 |
+
return typeof src === 'string' && src.indexOf('@') !== -1;
|
675 |
+
};
|
676 |
+
oCol._bAttrSrc = $.isPlainObject( mDataSrc ) && (
|
677 |
+
attrTest(mDataSrc.sort) || attrTest(mDataSrc.type) || attrTest(mDataSrc.filter)
|
678 |
+
);
|
679 |
+
|
680 |
+
oCol.fnGetData = function (rowData, type, meta) {
|
681 |
+
var innerData = mData( rowData, type, undefined, meta );
|
682 |
+
|
683 |
+
return mRender && type ?
|
684 |
+
mRender( innerData, type, rowData, meta ) :
|
685 |
+
innerData;
|
686 |
+
};
|
687 |
+
oCol.fnSetData = function ( rowData, val, meta ) {
|
688 |
+
return _fnSetObjectDataFn( mDataSrc )( rowData, val, meta );
|
689 |
+
};
|
690 |
+
|
691 |
+
// Indicate if DataTables should read DOM data as an object or array
|
692 |
+
// Used in _fnGetRowElements
|
693 |
+
if ( typeof mDataSrc !== 'number' ) {
|
694 |
+
oSettings._rowReadObject = true;
|
695 |
+
}
|
696 |
+
|
697 |
+
/* Feature sorting overrides column specific when off */
|
698 |
+
if ( !oSettings.oFeatures.bSort )
|
699 |
{
|
700 |
+
oCol.bSortable = false;
|
701 |
+
th.addClass( oClasses.sSortableNone ); // Have to add class here as order event isn't called
|
702 |
+
}
|
703 |
+
|
704 |
+
/* Check that the class assignment is correct for sorting */
|
705 |
+
var bAsc = $.inArray('asc', oCol.asSorting) !== -1;
|
706 |
+
var bDesc = $.inArray('desc', oCol.asSorting) !== -1;
|
707 |
+
if ( !oCol.bSortable || (!bAsc && !bDesc) )
|
708 |
+
{
|
709 |
+
oCol.sSortingClass = oClasses.sSortableNone;
|
710 |
+
oCol.sSortingClassJUI = "";
|
711 |
+
}
|
712 |
+
else if ( bAsc && !bDesc )
|
713 |
+
{
|
714 |
+
oCol.sSortingClass = oClasses.sSortableAsc;
|
715 |
+
oCol.sSortingClassJUI = oClasses.sSortJUIAscAllowed;
|
716 |
+
}
|
717 |
+
else if ( !bAsc && bDesc )
|
718 |
+
{
|
719 |
+
oCol.sSortingClass = oClasses.sSortableDesc;
|
720 |
+
oCol.sSortingClassJUI = oClasses.sSortJUIDescAllowed;
|
721 |
+
}
|
722 |
+
else
|
723 |
+
{
|
724 |
+
oCol.sSortingClass = oClasses.sSortable;
|
725 |
+
oCol.sSortingClassJUI = oClasses.sSortJUI;
|
726 |
+
}
|
727 |
+
}
|
728 |
+
|
729 |
+
|
730 |
+
/**
|
731 |
+
* Adjust the table column widths for new data. Note: you would probably want to
|
732 |
+
* do a redraw after calling this function!
|
733 |
+
* @param {object} settings dataTables settings object
|
734 |
+
* @memberof DataTable#oApi
|
735 |
+
*/
|
736 |
+
function _fnAdjustColumnSizing ( settings )
|
737 |
+
{
|
738 |
+
/* Not interested in doing column width calculation if auto-width is disabled */
|
739 |
+
if ( settings.oFeatures.bAutoWidth !== false )
|
740 |
+
{
|
741 |
+
var columns = settings.aoColumns;
|
742 |
+
|
743 |
+
_fnCalculateColumnWidths( settings );
|
744 |
+
for ( var i=0 , iLen=columns.length ; i<iLen ; i++ )
|
745 |
{
|
746 |
+
columns[i].nTh.style.width = columns[i].sWidth;
|
747 |
+
}
|
748 |
+
}
|
749 |
+
|
750 |
+
var scroll = settings.oScroll;
|
751 |
+
if ( scroll.sY !== '' || scroll.sX !== '')
|
752 |
+
{
|
753 |
+
_fnScrollDraw( settings );
|
754 |
+
}
|
755 |
+
|
756 |
+
_fnCallbackFire( settings, null, 'column-sizing', [settings] );
|
757 |
+
}
|
758 |
+
|
759 |
+
|
760 |
+
/**
|
761 |
+
* Covert the index of a visible column to the index in the data array (take account
|
762 |
+
* of hidden columns)
|
763 |
+
* @param {object} oSettings dataTables settings object
|
764 |
+
* @param {int} iMatch Visible column index to lookup
|
765 |
+
* @returns {int} i the data index
|
766 |
+
* @memberof DataTable#oApi
|
767 |
+
*/
|
768 |
+
function _fnVisibleToColumnIndex( oSettings, iMatch )
|
769 |
+
{
|
770 |
+
var aiVis = _fnGetColumns( oSettings, 'bVisible' );
|
771 |
+
|
772 |
+
return typeof aiVis[iMatch] === 'number' ?
|
773 |
+
aiVis[iMatch] :
|
774 |
+
null;
|
775 |
+
}
|
776 |
+
|
777 |
+
|
778 |
+
/**
|
779 |
+
* Covert the index of an index in the data array and convert it to the visible
|
780 |
+
* column index (take account of hidden columns)
|
781 |
+
* @param {int} iMatch Column index to lookup
|
782 |
+
* @param {object} oSettings dataTables settings object
|
783 |
+
* @returns {int} i the data index
|
784 |
+
* @memberof DataTable#oApi
|
785 |
+
*/
|
786 |
+
function _fnColumnIndexToVisible( oSettings, iMatch )
|
787 |
+
{
|
788 |
+
var aiVis = _fnGetColumns( oSettings, 'bVisible' );
|
789 |
+
var iPos = $.inArray( iMatch, aiVis );
|
790 |
+
|
791 |
+
return iPos !== -1 ? iPos : null;
|
792 |
+
}
|
793 |
+
|
794 |
+
|
795 |
+
/**
|
796 |
+
* Get the number of visible columns
|
797 |
+
* @param {object} oSettings dataTables settings object
|
798 |
+
* @returns {int} i the number of visible columns
|
799 |
+
* @memberof DataTable#oApi
|
800 |
+
*/
|
801 |
+
function _fnVisbleColumns( oSettings )
|
802 |
+
{
|
803 |
+
return _fnGetColumns( oSettings, 'bVisible' ).length;
|
804 |
+
}
|
805 |
+
|
806 |
+
|
807 |
+
/**
|
808 |
+
* Get an array of column indexes that match a given property
|
809 |
+
* @param {object} oSettings dataTables settings object
|
810 |
+
* @param {string} sParam Parameter in aoColumns to look for - typically
|
811 |
+
* bVisible or bSearchable
|
812 |
+
* @returns {array} Array of indexes with matched properties
|
813 |
+
* @memberof DataTable#oApi
|
814 |
+
*/
|
815 |
+
function _fnGetColumns( oSettings, sParam )
|
816 |
+
{
|
817 |
+
var a = [];
|
818 |
+
|
819 |
+
$.map( oSettings.aoColumns, function(val, i) {
|
820 |
+
if ( val[sParam] ) {
|
821 |
+
a.push( i );
|
822 |
+
}
|
823 |
+
} );
|
824 |
+
|
825 |
+
return a;
|
826 |
+
}
|
827 |
+
|
828 |
+
|
829 |
+
/**
|
830 |
+
* Calculate the 'type' of a column
|
831 |
+
* @param {object} settings dataTables settings object
|
832 |
+
* @memberof DataTable#oApi
|
833 |
+
*/
|
834 |
+
function _fnColumnTypes ( settings )
|
835 |
+
{
|
836 |
+
var columns = settings.aoColumns;
|
837 |
+
var data = settings.aoData;
|
838 |
+
var types = DataTable.ext.type.detect;
|
839 |
+
var i, ien, j, jen, k, ken;
|
840 |
+
var col, cell, detectedType, cache;
|
841 |
+
|
842 |
+
// For each column, spin over the
|
843 |
+
for ( i=0, ien=columns.length ; i<ien ; i++ ) {
|
844 |
+
col = columns[i];
|
845 |
+
cache = [];
|
846 |
+
|
847 |
+
if ( ! col.sType && col._sManualType ) {
|
848 |
+
col.sType = col._sManualType;
|
849 |
+
}
|
850 |
+
else if ( ! col.sType ) {
|
851 |
+
for ( j=0, jen=types.length ; j<jen ; j++ ) {
|
852 |
+
for ( k=0, ken=data.length ; k<ken ; k++ ) {
|
853 |
+
// Use a cache array so we only need to get the type data
|
854 |
+
// from the formatter once (when using multiple detectors)
|
855 |
+
if ( cache[k] === undefined ) {
|
856 |
+
cache[k] = _fnGetCellData( settings, k, i, 'type' );
|
857 |
+
}
|
858 |
+
|
859 |
+
detectedType = types[j]( cache[k], settings );
|
860 |
+
|
861 |
+
// If null, then this type can't apply to this column, so
|
862 |
+
// rather than testing all cells, break out. There is an
|
863 |
+
// exception for the last type which is `html`. We need to
|
864 |
+
// scan all rows since it is possible to mix string and HTML
|
865 |
+
// types
|
866 |
+
if ( ! detectedType && j !== types.length-1 ) {
|
867 |
+
break;
|
868 |
+
}
|
869 |
+
|
870 |
+
// Only a single match is needed for html type since it is
|
871 |
+
// bottom of the pile and very similar to string
|
872 |
+
if ( detectedType === 'html' ) {
|
873 |
+
break;
|
874 |
}
|
875 |
}
|
876 |
+
|
877 |
+
// Type is valid for all data points in the column - use this
|
878 |
+
// type
|
879 |
+
if ( detectedType ) {
|
880 |
+
col.sType = detectedType;
|
881 |
+
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
882 |
}
|
883 |
+
}
|
884 |
+
|
885 |
+
// Fall back - if no type was detected, always use string
|
886 |
+
if ( ! col.sType ) {
|
887 |
+
col.sType = 'string';
|
888 |
}
|
889 |
}
|
890 |
+
}
|
891 |
+
}
|
892 |
+
|
893 |
+
|
894 |
+
/**
|
895 |
+
* Take the column definitions and static columns arrays and calculate how
|
896 |
+
* they relate to column indexes. The callback function will then apply the
|
897 |
+
* definition found for a column to a suitable configuration object.
|
898 |
+
* @param {object} oSettings dataTables settings object
|
899 |
+
* @param {array} aoColDefs The aoColumnDefs array that is to be applied
|
900 |
+
* @param {array} aoCols The aoColumns array that defines columns individually
|
901 |
+
* @param {function} fn Callback function - takes two parameters, the calculated
|
902 |
+
* column index and the definition for that column.
|
903 |
+
* @memberof DataTable#oApi
|
904 |
+
*/
|
905 |
+
function _fnApplyColumnDefs( oSettings, aoColDefs, aoCols, fn )
|
906 |
+
{
|
907 |
+
var i, iLen, j, jLen, k, kLen, def;
|
908 |
+
var columns = oSettings.aoColumns;
|
909 |
+
|
910 |
+
// Column definitions with aTargets
|
911 |
+
if ( aoColDefs )
|
912 |
+
{
|
913 |
+
/* Loop over the definitions array - loop in reverse so first instance has priority */
|
914 |
+
for ( i=aoColDefs.length-1 ; i>=0 ; i-- )
|
915 |
{
|
916 |
+
def = aoColDefs[i];
|
917 |
+
|
918 |
+
/* Each definition can target multiple columns, as it is an array */
|
919 |
+
var aTargets = def.targets !== undefined ?
|
920 |
+
def.targets :
|
921 |
+
def.aTargets;
|
922 |
+
|
923 |
+
if ( ! $.isArray( aTargets ) )
|
924 |
{
|
925 |
+
aTargets = [ aTargets ];
|
926 |
}
|
927 |
+
|
928 |
+
for ( j=0, jLen=aTargets.length ; j<jLen ; j++ )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
929 |
{
|
930 |
+
if ( typeof aTargets[j] === 'number' && aTargets[j] >= 0 )
|
931 |
{
|
932 |
+
/* Add columns that we don't yet know about */
|
933 |
+
while( columns.length <= aTargets[j] )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
934 |
{
|
935 |
+
_fnAddColumn( oSettings );
|
|
|
|
|
|
|
936 |
}
|
937 |
+
|
938 |
+
/* Integer, basic index */
|
939 |
+
fn( aTargets[j], def );
|
940 |
+
}
|
941 |
+
else if ( typeof aTargets[j] === 'number' && aTargets[j] < 0 )
|
942 |
+
{
|
943 |
+
/* Negative integer, right to left column counting */
|
944 |
+
fn( columns.length+aTargets[j], def );
|
945 |
+
}
|
946 |
+
else if ( typeof aTargets[j] === 'string' )
|
947 |
+
{
|
948 |
+
/* Class name matching on TH element */
|
949 |
+
for ( k=0, kLen=columns.length ; k<kLen ; k++ )
|
950 |
{
|
951 |
+
if ( aTargets[j] == "_all" ||
|
952 |
+
$(columns[k].nTh).hasClass( aTargets[j] ) )
|
|
|
953 |
{
|
954 |
+
fn( k, def );
|
|
|
955 |
}
|
956 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
957 |
}
|
958 |
}
|
959 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
960 |
}
|
961 |
+
|
962 |
+
// Statically defined columns array
|
963 |
+
if ( aoCols )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
964 |
{
|
965 |
+
for ( i=0, iLen=aoCols.length ; i<iLen ; i++ )
|
966 |
+
{
|
967 |
+
fn( i, aoCols[i] );
|
968 |
+
}
|
969 |
}
|
970 |
+
}
|
971 |
+
|
972 |
+
/**
|
973 |
+
* Add a data array to the table, creating DOM node etc. This is the parallel to
|
974 |
+
* _fnGatherData, but for adding rows from a Javascript source, rather than a
|
975 |
+
* DOM source.
|
976 |
+
* @param {object} oSettings dataTables settings object
|
977 |
+
* @param {array} aData data array to be added
|
978 |
+
* @param {node} [nTr] TR element to add to the table - optional. If not given,
|
979 |
+
* DataTables will create a row automatically
|
980 |
+
* @param {array} [anTds] Array of TD|TH elements for the row - must be given
|
981 |
+
* if nTr is.
|
982 |
+
* @returns {int} >=0 if successful (index of new aoData entry), -1 if failed
|
983 |
+
* @memberof DataTable#oApi
|
984 |
+
*/
|
985 |
+
function _fnAddData ( oSettings, aDataIn, nTr, anTds )
|
986 |
+
{
|
987 |
+
/* Create the object for storing information about this new row */
|
988 |
+
var iRow = oSettings.aoData.length;
|
989 |
+
var oData = $.extend( true, {}, DataTable.models.oRow, {
|
990 |
+
src: nTr ? 'dom' : 'data'
|
991 |
+
} );
|
992 |
+
|
993 |
+
oData._aData = aDataIn;
|
994 |
+
oSettings.aoData.push( oData );
|
995 |
+
|
996 |
+
/* Create the cells */
|
997 |
+
var nTd, sThisType;
|
998 |
+
var columns = oSettings.aoColumns;
|
999 |
+
for ( var i=0, iLen=columns.length ; i<iLen ; i++ )
|
1000 |
{
|
1001 |
+
// When working with a row, the data source object must be populated. In
|
1002 |
+
// all other cases, the data source object is already populated, so we
|
1003 |
+
// don't overwrite it, which might break bindings etc
|
1004 |
+
if ( nTr ) {
|
1005 |
+
_fnSetCellData( oSettings, iRow, i, _fnGetCellData( oSettings, iRow, i ) );
|
|
|
|
|
|
|
1006 |
}
|
1007 |
+
columns[i].sType = null;
|
1008 |
}
|
1009 |
+
|
1010 |
+
/* Add to the display array */
|
1011 |
+
oSettings.aiDisplayMaster.push( iRow );
|
1012 |
+
|
1013 |
+
/* Create the DOM information, or register it if already present */
|
1014 |
+
if ( nTr || ! oSettings.oFeatures.bDeferRender )
|
|
|
|
|
|
|
|
|
|
|
|
|
1015 |
{
|
1016 |
+
_fnCreateTr( oSettings, iRow, nTr, anTds );
|
1017 |
+
}
|
1018 |
+
|
1019 |
+
return iRow;
|
1020 |
+
}
|
1021 |
+
|
1022 |
+
|
1023 |
+
/**
|
1024 |
+
* Add one or more TR elements to the table. Generally we'd expect to
|
1025 |
+
* use this for reading data from a DOM sourced table, but it could be
|
1026 |
+
* used for an TR element. Note that if a TR is given, it is used (i.e.
|
1027 |
+
* it is not cloned).
|
1028 |
+
* @param {object} settings dataTables settings object
|
1029 |
+
* @param {array|node|jQuery} trs The TR element(s) to add to the table
|
1030 |
+
* @returns {array} Array of indexes for the added rows
|
1031 |
+
* @memberof DataTable#oApi
|
1032 |
+
*/
|
1033 |
+
function _fnAddTr( settings, trs )
|
1034 |
+
{
|
1035 |
+
var row;
|
1036 |
+
|
1037 |
+
// Allow an individual node to be passed in
|
1038 |
+
if ( ! (trs instanceof $) ) {
|
1039 |
+
trs = $(trs);
|
1040 |
+
}
|
1041 |
+
|
1042 |
+
return trs.map( function (i, el) {
|
1043 |
+
row = _fnGetRowElements( settings, el );
|
1044 |
+
return _fnAddData( settings, row.data, el, row.cells );
|
1045 |
+
} );
|
1046 |
+
}
|
1047 |
+
|
1048 |
+
|
1049 |
+
/**
|
1050 |
+
* Take a TR element and convert it to an index in aoData
|
1051 |
+
* @param {object} oSettings dataTables settings object
|
1052 |
+
* @param {node} n the TR element to find
|
1053 |
+
* @returns {int} index if the node is found, null if not
|
1054 |
+
* @memberof DataTable#oApi
|
1055 |
+
*/
|
1056 |
+
function _fnNodeToDataIndex( oSettings, n )
|
1057 |
+
{
|
1058 |
+
return (n._DT_RowIndex!==undefined) ? n._DT_RowIndex : null;
|
1059 |
+
}
|
1060 |
+
|
1061 |
+
|
1062 |
+
/**
|
1063 |
+
* Take a TD element and convert it into a column data index (not the visible index)
|
1064 |
+
* @param {object} oSettings dataTables settings object
|
1065 |
+
* @param {int} iRow The row number the TD/TH can be found in
|
1066 |
+
* @param {node} n The TD/TH element to find
|
1067 |
+
* @returns {int} index if the node is found, -1 if not
|
1068 |
+
* @memberof DataTable#oApi
|
1069 |
+
*/
|
1070 |
+
function _fnNodeToColumnIndex( oSettings, iRow, n )
|
1071 |
+
{
|
1072 |
+
return $.inArray( n, oSettings.aoData[ iRow ].anCells );
|
1073 |
+
}
|
1074 |
+
|
1075 |
+
|
1076 |
+
/**
|
1077 |
+
* Get the data for a given cell from the internal cache, taking into account data mapping
|
1078 |
+
* @param {object} settings dataTables settings object
|
1079 |
+
* @param {int} rowIdx aoData row id
|
1080 |
+
* @param {int} colIdx Column index
|
1081 |
+
* @param {string} type data get type ('display', 'type' 'filter' 'sort')
|
1082 |
+
* @returns {*} Cell data
|
1083 |
+
* @memberof DataTable#oApi
|
1084 |
+
*/
|
1085 |
+
function _fnGetCellData( settings, rowIdx, colIdx, type )
|
1086 |
+
{
|
1087 |
+
var draw = settings.iDraw;
|
1088 |
+
var col = settings.aoColumns[colIdx];
|
1089 |
+
var rowData = settings.aoData[rowIdx]._aData;
|
1090 |
+
var defaultContent = col.sDefaultContent;
|
1091 |
+
var cellData = col.fnGetData( rowData, type, {
|
1092 |
+
settings: settings,
|
1093 |
+
row: rowIdx,
|
1094 |
+
col: colIdx
|
1095 |
+
} );
|
1096 |
+
|
1097 |
+
if ( cellData === undefined ) {
|
1098 |
+
if ( settings.iDrawError != draw && defaultContent === null ) {
|
1099 |
+
_fnLog( settings, 0, "Requested unknown parameter "+
|
1100 |
+
(typeof col.mData=='function' ? '{function}' : "'"+col.mData+"'")+
|
1101 |
+
" for row "+rowIdx, 4 );
|
1102 |
+
settings.iDrawError = draw;
|
1103 |
}
|
1104 |
+
return defaultContent;
|
1105 |
}
|
1106 |
+
|
1107 |
+
/* When the data source is null, we can use default column data */
|
1108 |
+
if ( (cellData === rowData || cellData === null) && defaultContent !== null ) {
|
1109 |
+
cellData = defaultContent;
|
1110 |
+
}
|
1111 |
+
else if ( typeof cellData === 'function' ) {
|
1112 |
+
// If the data source is a function, then we run it and use the return,
|
1113 |
+
// executing in the scope of the data object (for instances)
|
1114 |
+
return cellData.call( rowData );
|
1115 |
+
}
|
1116 |
+
|
1117 |
+
if ( cellData === null && type == 'display' ) {
|
1118 |
+
return '';
|
1119 |
+
}
|
1120 |
+
return cellData;
|
1121 |
+
}
|
1122 |
+
|
1123 |
+
|
1124 |
+
/**
|
1125 |
+
* Set the value for a specific cell, into the internal data cache
|
1126 |
+
* @param {object} settings dataTables settings object
|
1127 |
+
* @param {int} rowIdx aoData row id
|
1128 |
+
* @param {int} colIdx Column index
|
1129 |
+
* @param {*} val Value to set
|
1130 |
+
* @memberof DataTable#oApi
|
1131 |
+
*/
|
1132 |
+
function _fnSetCellData( settings, rowIdx, colIdx, val )
|
1133 |
+
{
|
1134 |
+
var col = settings.aoColumns[colIdx];
|
1135 |
+
var rowData = settings.aoData[rowIdx]._aData;
|
1136 |
+
|
1137 |
+
col.fnSetData( rowData, val, {
|
1138 |
+
settings: settings,
|
1139 |
+
row: rowIdx,
|
1140 |
+
col: colIdx
|
1141 |
+
} );
|
1142 |
+
}
|
1143 |
+
|
1144 |
+
|
1145 |
+
// Private variable that is used to match action syntax in the data property object
|
1146 |
+
var __reArray = /\[.*?\]$/;
|
1147 |
+
var __reFn = /\(\)$/;
|
1148 |
+
|
1149 |
+
/**
|
1150 |
+
* Split string on periods, taking into account escaped periods
|
1151 |
+
* @param {string} str String to split
|
1152 |
+
* @return {array} Split string
|
1153 |
+
*/
|
1154 |
+
function _fnSplitObjNotation( str )
|
1155 |
+
{
|
1156 |
+
return $.map( str.match(/(\\.|[^\.])+/g), function ( s ) {
|
1157 |
+
return s.replace(/\\./g, '.');
|
1158 |
+
} );
|
1159 |
+
}
|
1160 |
+
|
1161 |
+
|
1162 |
+
/**
|
1163 |
+
* Return a function that can be used to get data from a source object, taking
|
1164 |
+
* into account the ability to use nested objects as a source
|
1165 |
+
* @param {string|int|function} mSource The data source for the object
|
1166 |
+
* @returns {function} Data get function
|
1167 |
+
* @memberof DataTable#oApi
|
1168 |
+
*/
|
1169 |
+
function _fnGetObjectDataFn( mSource )
|
1170 |
+
{
|
1171 |
+
if ( $.isPlainObject( mSource ) )
|
1172 |
{
|
1173 |
+
/* Build an object of get functions, and wrap them in a single call */
|
1174 |
+
var o = {};
|
1175 |
+
$.each( mSource, function (key, val) {
|
1176 |
+
if ( val ) {
|
1177 |
+
o[key] = _fnGetObjectDataFn( val );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1178 |
}
|
1179 |
+
} );
|
1180 |
+
|
1181 |
+
return function (data, type, row, meta) {
|
1182 |
+
var t = o[type] || o._;
|
1183 |
+
return t !== undefined ?
|
1184 |
+
t(data, type, row, meta) :
|
1185 |
+
data;
|
1186 |
+
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1187 |
}
|
1188 |
+
else if ( mSource === null )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1189 |
{
|
1190 |
+
/* Give an empty string for rendering / sorting etc */
|
1191 |
+
return function (data) { // type, row and meta also passed, but not used
|
1192 |
+
return data;
|
1193 |
+
};
|
1194 |
}
|
1195 |
+
else if ( typeof mSource === 'function' )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1196 |
{
|
1197 |
+
return function (data, type, row, meta) {
|
1198 |
+
return mSource( data, type, row, meta );
|
1199 |
+
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1200 |
}
|
1201 |
+
else if ( typeof mSource === 'string' && (mSource.indexOf('.') !== -1 ||
|
1202 |
+
mSource.indexOf('[') !== -1 || mSource.indexOf('(') !== -1) )
|
1203 |
+
{
|
1204 |
+
/* If there is a . in the source string then the data source is in a
|
1205 |
+
* nested object so we loop over the data for each level to get the next
|
1206 |
+
* level down. On each loop we test for undefined, and if found immediately
|
1207 |
+
* return. This allows entire objects to be missing and sDefaultContent to
|
1208 |
+
* be used if defined, rather than throwing an error
|
1209 |
+
*/
|
1210 |
+
var fetchData = function (data, type, src) {
|
1211 |
+
var arrayNotation, funcNotation, out, innerSrc;
|
1212 |
+
|
1213 |
+
if ( src !== "" )
|
1214 |
+
{
|
1215 |
+
var a = _fnSplitObjNotation( src );
|
1216 |
+
|
1217 |
+
for ( var i=0, iLen=a.length ; i<iLen ; i++ )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1218 |
{
|
1219 |
+
// Check if we are dealing with special notation
|
1220 |
arrayNotation = a[i].match(__reArray);
|
1221 |
+
funcNotation = a[i].match(__reFn);
|
1222 |
+
|
1223 |
if ( arrayNotation )
|
1224 |
{
|
1225 |
+
// Array notation
|
1226 |
a[i] = a[i].replace(__reArray, '');
|
1227 |
+
|
1228 |
+
// Condition allows simply [] to be passed in
|
1229 |
+
if ( a[i] !== "" ) {
|
1230 |
+
data = data[ a[i] ];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1231 |
}
|
1232 |
+
out = [];
|
1233 |
+
|
1234 |
+
// Get the remainder of the nested object to get
|
1235 |
+
a.splice( 0, i+1 );
|
1236 |
+
innerSrc = a.join('.');
|
1237 |
+
|
1238 |
+
// Traverse each entry in the array getting the properties requested
|
1239 |
+
for ( var j=0, jLen=data.length ; j<jLen ; j++ ) {
|
1240 |
+
out.push( fetchData( data[j], type, innerSrc ) );
|
1241 |
+
}
|
1242 |
+
|
1243 |
+
// If a string is given in between the array notation indicators, that
|
1244 |
+
// is used to join the strings together, otherwise an array is returned
|
1245 |
+
var join = arrayNotation[0].substring(1, arrayNotation[0].length-1);
|
1246 |
+
data = (join==="") ? out : out.join(join);
|
1247 |
+
|
1248 |
+
// The inner call to fetchData has already traversed through the remainder
|
1249 |
+
// of the source requested, so we exit from the loop
|
1250 |
+
break;
|
1251 |
}
|
1252 |
+
else if ( funcNotation )
|
|
|
|
|
|
|
1253 |
{
|
1254 |
+
// Function call
|
1255 |
+
a[i] = a[i].replace(__reFn, '');
|
1256 |
+
data = data[ a[i] ]();
|
1257 |
+
continue;
|
1258 |
+
}
|
1259 |
+
|
1260 |
+
if ( data === null || data[ a[i] ] === undefined )
|
1261 |
+
{
|
1262 |
+
return undefined;
|
1263 |
}
|
1264 |
data = data[ a[i] ];
|
1265 |
}
|
1266 |
+
}
|
1267 |
+
|
1268 |
+
return data;
|
1269 |
+
};
|
1270 |
+
|
1271 |
+
return function (data, type) { // row and meta also passed, but not used
|
1272 |
+
return fetchData( data, type, mSource );
|
1273 |
+
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1274 |
}
|
1275 |
+
else
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1276 |
{
|
1277 |
+
/* Array or flat object mapping */
|
1278 |
+
return function (data, type) { // row and meta also passed, but not used
|
1279 |
+
return data[mSource];
|
1280 |
+
};
|
|
|
|
|
|
|
1281 |
}
|
1282 |
+
}
|
1283 |
+
|
1284 |
+
|
1285 |
+
/**
|
1286 |
+
* Return a function that can be used to set data from a source object, taking
|
1287 |
+
* into account the ability to use nested objects as a source
|
1288 |
+
* @param {string|int|function} mSource The data source for the object
|
1289 |
+
* @returns {function} Data set function
|
1290 |
+
* @memberof DataTable#oApi
|
1291 |
+
*/
|
1292 |
+
function _fnSetObjectDataFn( mSource )
|
1293 |
+
{
|
1294 |
+
if ( $.isPlainObject( mSource ) )
|
1295 |
{
|
1296 |
+
/* Unlike get, only the underscore (global) option is used for for
|
1297 |
+
* setting data since we don't know the type here. This is why an object
|
1298 |
+
* option is not documented for `mData` (which is read/write), but it is
|
1299 |
+
* for `mRender` which is read only.
|
1300 |
+
*/
|
1301 |
+
return _fnSetObjectDataFn( mSource._ );
|
1302 |
}
|
1303 |
+
else if ( mSource === null )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1304 |
{
|
1305 |
+
/* Nothing to do when the data source is null */
|
1306 |
+
return function () {};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1307 |
}
|
1308 |
+
else if ( typeof mSource === 'function' )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1309 |
{
|
1310 |
+
return function (data, val, meta) {
|
1311 |
+
mSource( data, 'set', val, meta );
|
1312 |
+
};
|
|
|
|
|
|
|
|
|
|
|
|
|
1313 |
}
|
1314 |
+
else if ( typeof mSource === 'string' && (mSource.indexOf('.') !== -1 ||
|
1315 |
+
mSource.indexOf('[') !== -1 || mSource.indexOf('(') !== -1) )
|
|
|
|
|
|
|
|
|
|
|
1316 |
{
|
1317 |
+
/* Like the get, we need to get data from a nested object */
|
1318 |
+
var setData = function (data, val, src) {
|
1319 |
+
var a = _fnSplitObjNotation( src ), b;
|
1320 |
+
var aLast = a[a.length-1];
|
1321 |
+
var arrayNotation, funcNotation, o, innerSrc;
|
1322 |
+
|
1323 |
+
for ( var i=0, iLen=a.length-1 ; i<iLen ; i++ )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1324 |
{
|
1325 |
+
// Check if we are dealing with an array notation request
|
1326 |
+
arrayNotation = a[i].match(__reArray);
|
1327 |
+
funcNotation = a[i].match(__reFn);
|
1328 |
+
|
1329 |
+
if ( arrayNotation )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1330 |
{
|
1331 |
+
a[i] = a[i].replace(__reArray, '');
|
1332 |
+
data[ a[i] ] = [];
|
1333 |
+
|
1334 |
+
// Get the remainder of the nested object to set so we can recurse
|
1335 |
+
b = a.slice();
|
1336 |
+
b.splice( 0, i+1 );
|
1337 |
+
innerSrc = b.join('.');
|
1338 |
+
|
1339 |
+
// Traverse each entry in the array setting the properties requested
|
1340 |
+
for ( var j=0, jLen=val.length ; j<jLen ; j++ )
|
1341 |
+
{
|
1342 |
+
o = {};
|
1343 |
+
setData( o, val[j], innerSrc );
|
1344 |
+
data[ a[i] ].push( o );
|
1345 |
+
}
|
1346 |
+
|
1347 |
+
// The inner call to setData has already traversed through the remainder
|
1348 |
+
// of the source and has set the data, thus we can exit here
|
1349 |
+
return;
|
1350 |
}
|
1351 |
+
else if ( funcNotation )
|
1352 |
{
|
1353 |
+
// Function call
|
1354 |
+
a[i] = a[i].replace(__reFn, '');
|
1355 |
+
data = data[ a[i] ]( val );
|
1356 |
}
|
1357 |
+
|
1358 |
+
// If the nested object doesn't currently exist - since we are
|
1359 |
+
// trying to set the value - create it
|
1360 |
+
if ( data[ a[i] ] === null || data[ a[i] ] === undefined )
|
1361 |
{
|
1362 |
+
data[ a[i] ] = {};
|
|
|
|
|
1363 |
}
|
1364 |
+
data = data[ a[i] ];
|
1365 |
}
|
1366 |
+
|
1367 |
+
// Last item in the input - i.e, the actual set
|
1368 |
+
if ( aLast.match(__reFn ) )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1369 |
{
|
1370 |
+
// Function call
|
1371 |
+
data = data[ aLast.replace(__reFn, '') ]( val );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1372 |
}
|
1373 |
+
else
|
|
|
|
|
|
|
|
|
1374 |
{
|
1375 |
+
// If array notation is used, we just want to strip it and use the property name
|
1376 |
+
// and assign the value. If it isn't used, then we get the result we want anyway
|
1377 |
+
data[ aLast.replace(__reArray, '') ] = val;
|
|
|
|
|
|
|
|
|
|
|
1378 |
}
|
1379 |
+
};
|
1380 |
+
|
1381 |
+
return function (data, val) { // meta is also passed in, but not used
|
1382 |
+
return setData( data, val, mSource );
|
1383 |
+
};
|
1384 |
+
}
|
1385 |
+
else
|
1386 |
+
{
|
1387 |
+
/* Array or flat object mapping */
|
1388 |
+
return function (data, val) { // meta is also passed in, but not used
|
1389 |
+
data[mSource] = val;
|
1390 |
+
};
|
1391 |
+
}
|
1392 |
+
}
|
1393 |
+
|
1394 |
+
|
1395 |
+
/**
|
1396 |
+
* Return an array with the full table data
|
1397 |
+
* @param {object} oSettings dataTables settings object
|
1398 |
+
* @returns array {array} aData Master data array
|
1399 |
+
* @memberof DataTable#oApi
|
1400 |
+
*/
|
1401 |
+
function _fnGetDataMaster ( settings )
|
1402 |
+
{
|
1403 |
+
return _pluck( settings.aoData, '_aData' );
|
1404 |
+
}
|
1405 |
+
|
1406 |
+
|
1407 |
+
/**
|
1408 |
+
* Nuke the table
|
1409 |
+
* @param {object} oSettings dataTables settings object
|
1410 |
+
* @memberof DataTable#oApi
|
1411 |
+
*/
|
1412 |
+
function _fnClearTable( settings )
|
1413 |
+
{
|
1414 |
+
settings.aoData.length = 0;
|
1415 |
+
settings.aiDisplayMaster.length = 0;
|
1416 |
+
settings.aiDisplay.length = 0;
|
1417 |
+
}
|
1418 |
+
|
1419 |
+
|
1420 |
+
/**
|
1421 |
+
* Take an array of integers (index array) and remove a target integer (value - not
|
1422 |
+
* the key!)
|
1423 |
+
* @param {array} a Index array to target
|
1424 |
+
* @param {int} iTarget value to find
|
1425 |
+
* @memberof DataTable#oApi
|
1426 |
+
*/
|
1427 |
+
function _fnDeleteIndex( a, iTarget, splice )
|
1428 |
+
{
|
1429 |
+
var iTargetIndex = -1;
|
1430 |
+
|
1431 |
+
for ( var i=0, iLen=a.length ; i<iLen ; i++ )
|
1432 |
+
{
|
1433 |
+
if ( a[i] == iTarget )
|
1434 |
{
|
1435 |
+
iTargetIndex = i;
|
1436 |
}
|
1437 |
+
else if ( a[i] > iTarget )
|
|
|
|
|
1438 |
{
|
1439 |
+
a[i]--;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1440 |
}
|
1441 |
}
|
1442 |
+
|
1443 |
+
if ( iTargetIndex != -1 && splice === undefined )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1444 |
{
|
1445 |
+
a.splice( iTargetIndex, 1 );
|
1446 |
+
}
|
1447 |
+
}
|
1448 |
+
|
1449 |
+
|
1450 |
+
/**
|
1451 |
+
* Mark cached data as invalid such that a re-read of the data will occur when
|
1452 |
+
* the cached data is next requested. Also update from the data source object.
|
1453 |
+
*
|
1454 |
+
* @param {object} settings DataTables settings object
|
1455 |
+
* @param {int} rowIdx Row index to invalidate
|
1456 |
+
* @param {string} [src] Source to invalidate from: undefined, 'auto', 'dom'
|
1457 |
+
* or 'data'
|
1458 |
+
* @param {int} [colIdx] Column index to invalidate. If undefined the whole
|
1459 |
+
* row will be invalidated
|
1460 |
+
* @memberof DataTable#oApi
|
1461 |
+
*
|
1462 |
+
* @todo For the modularisation of v1.11 this will need to become a callback, so
|
1463 |
+
* the sort and filter methods can subscribe to it. That will required
|
1464 |
+
* initialisation options for sorting, which is why it is not already baked in
|
1465 |
+
*/
|
1466 |
+
function _fnInvalidate( settings, rowIdx, src, colIdx )
|
1467 |
+
{
|
1468 |
+
var row = settings.aoData[ rowIdx ];
|
1469 |
+
var i, ien;
|
1470 |
+
var cellWrite = function ( cell, col ) {
|
1471 |
+
// This is very frustrating, but in IE if you just write directly
|
1472 |
+
// to innerHTML, and elements that are overwritten are GC'ed,
|
1473 |
+
// even if there is a reference to them elsewhere
|
1474 |
+
while ( cell.childNodes.length ) {
|
1475 |
+
cell.removeChild( cell.firstChild );
|
1476 |
}
|
1477 |
+
|
1478 |
+
cell.innerHTML = _fnGetCellData( settings, rowIdx, col, 'display' );
|
1479 |
+
};
|
1480 |
+
|
1481 |
+
// Are we reading last data from DOM or the data object?
|
1482 |
+
if ( src === 'dom' || ((! src || src === 'auto') && row.src === 'dom') ) {
|
1483 |
+
// Read the data from the DOM
|
1484 |
+
row._aData = _fnGetRowElements(
|
1485 |
+
settings, row, colIdx, colIdx === undefined ? undefined : row._aData
|
1486 |
+
)
|
1487 |
+
.data;
|
1488 |
+
}
|
1489 |
+
else {
|
1490 |
+
// Reading from data object, update the DOM
|
1491 |
+
var cells = row.anCells;
|
1492 |
+
|
1493 |
+
if ( cells ) {
|
1494 |
+
if ( colIdx !== undefined ) {
|
1495 |
+
cellWrite( cells[colIdx], colIdx );
|
1496 |
}
|
1497 |
+
else {
|
1498 |
+
for ( i=0, ien=cells.length ; i<ien ; i++ ) {
|
1499 |
+
cellWrite( cells[i], i );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1500 |
}
|
1501 |
}
|
1502 |
}
|
1503 |
}
|
1504 |
+
|
1505 |
+
// For both row and cell invalidation, the cached data for sorting and
|
1506 |
+
// filtering is nulled out
|
1507 |
+
row._aSortData = null;
|
1508 |
+
row._aFilterData = null;
|
1509 |
+
|
1510 |
+
// Invalidate the type for a specific column (if given) or all columns since
|
1511 |
+
// the data might have changed
|
1512 |
+
var cols = settings.aoColumns;
|
1513 |
+
if ( colIdx !== undefined ) {
|
1514 |
+
cols[ colIdx ].sType = null;
|
1515 |
+
}
|
1516 |
+
else {
|
1517 |
+
for ( i=0, ien=cols.length ; i<ien ; i++ ) {
|
1518 |
+
cols[i].sType = null;
|
1519 |
}
|
1520 |
+
|
1521 |
+
// Update DataTables special `DT_*` attributes for the row
|
1522 |
+
_fnRowAttributes( row );
|
1523 |
+
}
|
1524 |
+
}
|
1525 |
+
|
1526 |
+
|
1527 |
+
/**
|
1528 |
+
* Build a data source object from an HTML row, reading the contents of the
|
1529 |
+
* cells that are in the row.
|
1530 |
+
*
|
1531 |
+
* @param {object} settings DataTables settings object
|
1532 |
+
* @param {node|object} TR element from which to read data or existing row
|
1533 |
+
* object from which to re-read the data from the cells
|
1534 |
+
* @param {int} [colIdx] Optional column index
|
1535 |
+
* @param {array|object} [d] Data source object. If `colIdx` is given then this
|
1536 |
+
* parameter should also be given and will be used to write the data into.
|
1537 |
+
* Only the column in question will be written
|
1538 |
+
* @returns {object} Object with two parameters: `data` the data read, in
|
1539 |
+
* document order, and `cells` and array of nodes (they can be useful to the
|
1540 |
+
* caller, so rather than needing a second traversal to get them, just return
|
1541 |
+
* them from here).
|
1542 |
+
* @memberof DataTable#oApi
|
1543 |
+
*/
|
1544 |
+
function _fnGetRowElements( settings, row, colIdx, d )
|
1545 |
+
{
|
1546 |
+
var
|
1547 |
+
tds = [],
|
1548 |
+
td = row.firstChild,
|
1549 |
+
name, col, o, i=0, contents,
|
1550 |
+
columns = settings.aoColumns,
|
1551 |
+
objectRead = settings._rowReadObject;
|
1552 |
+
|
1553 |
+
// Allow the data object to be passed in, or construct
|
1554 |
+
d = d || objectRead ? {} : [];
|
1555 |
+
|
1556 |
+
var attr = function ( str, td ) {
|
1557 |
+
if ( typeof str === 'string' ) {
|
1558 |
+
var idx = str.indexOf('@');
|
1559 |
+
|
1560 |
+
if ( idx !== -1 ) {
|
1561 |
+
var attr = str.substring( idx+1 );
|
1562 |
+
var setter = _fnSetObjectDataFn( str );
|
1563 |
+
setter( d, td.getAttribute( attr ) );
|
1564 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1565 |
}
|
1566 |
+
};
|
1567 |
+
|
1568 |
+
// Read data from a cell and store into the data object
|
1569 |
+
var cellProcess = function ( cell ) {
|
1570 |
+
if ( colIdx === undefined || colIdx === i ) {
|
1571 |
+
col = columns[i];
|
1572 |
+
contents = $.trim(cell.innerHTML);
|
1573 |
+
|
1574 |
+
if ( col && col._bAttrSrc ) {
|
1575 |
+
var setter = _fnSetObjectDataFn( col.mData._ );
|
1576 |
+
setter( d, contents );
|
1577 |
+
|
1578 |
+
attr( col.mData.sort, cell );
|
1579 |
+
attr( col.mData.type, cell );
|
1580 |
+
attr( col.mData.filter, cell );
|
1581 |
+
}
|
1582 |
+
else {
|
1583 |
+
// Depending on the `data` option for the columns the data can
|
1584 |
+
// be read to either an object or an array.
|
1585 |
+
if ( objectRead ) {
|
1586 |
+
if ( ! col._setter ) {
|
1587 |
+
// Cache the setter function
|
1588 |
+
col._setter = _fnSetObjectDataFn( col.mData );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1589 |
}
|
1590 |
+
col._setter( d, contents );
|
1591 |
}
|
1592 |
+
else {
|
1593 |
+
d[i] = contents;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1594 |
}
|
1595 |
}
|
1596 |
}
|
1597 |
+
|
1598 |
+
i++;
|
1599 |
+
};
|
1600 |
+
|
1601 |
+
if ( td ) {
|
1602 |
+
// `tr` element was passed in
|
1603 |
+
while ( td ) {
|
1604 |
+
name = td.nodeName.toUpperCase();
|
1605 |
+
|
1606 |
+
if ( name == "TD" || name == "TH" ) {
|
1607 |
+
cellProcess( td );
|
1608 |
+
tds.push( td );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1609 |
}
|
1610 |
+
|
1611 |
+
td = td.nextSibling;
|
|
|
|
|
|
|
|
|
|
|
|
|
1612 |
}
|
1613 |
+
}
|
1614 |
+
else {
|
1615 |
+
// Existing row object passed in
|
1616 |
+
tds = row.anCells;
|
1617 |
|
1618 |
+
for ( var j=0, jen=tds.length ; j<jen ; j++ ) {
|
1619 |
+
cellProcess( tds[j] );
|
1620 |
+
}
|
1621 |
+
}
|
1622 |
+
|
1623 |
+
return {
|
1624 |
+
data: d,
|
1625 |
+
cells: tds
|
1626 |
+
};
|
1627 |
+
}
|
1628 |
+
/**
|
1629 |
+
* Create a new TR element (and it's TD children) for a row
|
1630 |
+
* @param {object} oSettings dataTables settings object
|
1631 |
+
* @param {int} iRow Row to consider
|
1632 |
+
* @param {node} [nTrIn] TR element to add to the table - optional. If not given,
|
1633 |
+
* DataTables will create a row automatically
|
1634 |
+
* @param {array} [anTds] Array of TD|TH elements for the row - must be given
|
1635 |
+
* if nTr is.
|
1636 |
+
* @memberof DataTable#oApi
|
1637 |
+
*/
|
1638 |
+
function _fnCreateTr ( oSettings, iRow, nTrIn, anTds )
|
1639 |
+
{
|
1640 |
+
var
|
1641 |
+
row = oSettings.aoData[iRow],
|
1642 |
+
rowData = row._aData,
|
1643 |
+
cells = [],
|
1644 |
+
nTr, nTd, oCol,
|
1645 |
+
i, iLen;
|
1646 |
+
|
1647 |
+
if ( row.nTr === null )
|
1648 |
+
{
|
1649 |
+
nTr = nTrIn || document.createElement('tr');
|
1650 |
+
|
1651 |
+
row.nTr = nTr;
|
1652 |
+
row.anCells = cells;
|
1653 |
+
|
1654 |
+
/* Use a private property on the node to allow reserve mapping from the node
|
1655 |
+
* to the aoData array for fast look up
|
1656 |
*/
|
1657 |
+
nTr._DT_RowIndex = iRow;
|
1658 |
+
|
1659 |
+
/* Special parameters can be given by the data source to be used on the row */
|
1660 |
+
_fnRowAttributes( row );
|
1661 |
+
|
1662 |
+
/* Process each column */
|
1663 |
+
for ( i=0, iLen=oSettings.aoColumns.length ; i<iLen ; i++ )
|
1664 |
{
|
1665 |
+
oCol = oSettings.aoColumns[i];
|
1666 |
+
|
1667 |
+
nTd = nTrIn ? anTds[i] : document.createElement( oCol.sCellType );
|
1668 |
+
cells.push( nTd );
|
1669 |
+
|
1670 |
+
// Need to create the HTML if new, or if a rendering function is defined
|
1671 |
+
if ( !nTrIn || oCol.mRender || oCol.mData !== i )
|
|
|
1672 |
{
|
1673 |
+
nTd.innerHTML = _fnGetCellData( oSettings, iRow, i, 'display' );
|
|
|
|
|
|
|
1674 |
}
|
1675 |
+
|
1676 |
+
/* Add user defined class */
|
1677 |
+
if ( oCol.sClass )
|
1678 |
{
|
1679 |
+
nTd.className += ' '+oCol.sClass;
|
1680 |
}
|
1681 |
+
|
1682 |
+
// Visibility - add or remove as required
|
1683 |
+
if ( oCol.bVisible && ! nTrIn )
|
1684 |
{
|
1685 |
+
nTr.appendChild( nTd );
|
1686 |
}
|
1687 |
+
else if ( ! oCol.bVisible && nTrIn )
|
1688 |
+
{
|
1689 |
+
nTd.parentNode.removeChild( nTd );
|
1690 |
+
}
|
1691 |
+
|
1692 |
+
if ( oCol.fnCreatedCell )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1693 |
{
|
1694 |
+
oCol.fnCreatedCell.call( oSettings.oInstance,
|
1695 |
+
nTd, _fnGetCellData( oSettings, iRow, i ), rowData, iRow, i
|
1696 |
+
);
|
1697 |
}
|
1698 |
}
|
1699 |
+
|
1700 |
+
_fnCallbackFire( oSettings, 'aoRowCreatedCallback', null, [nTr, rowData, iRow] );
|
1701 |
}
|
1702 |
+
|
1703 |
+
// Remove once webkit bug 131819 and Chromium bug 365619 have been resolved
|
1704 |
+
// and deployed
|
1705 |
+
row.nTr.setAttribute( 'role', 'row' );
|
1706 |
+
}
|
1707 |
+
|
1708 |
+
|
1709 |
+
/**
|
1710 |
+
* Add attributes to a row based on the special `DT_*` parameters in a data
|
1711 |
+
* source object.
|
1712 |
+
* @param {object} DataTables row object for the row to be modified
|
1713 |
+
* @memberof DataTable#oApi
|
1714 |
+
*/
|
1715 |
+
function _fnRowAttributes( row )
|
1716 |
+
{
|
1717 |
+
var tr = row.nTr;
|
1718 |
+
var data = row._aData;
|
1719 |
+
|
1720 |
+
if ( tr ) {
|
1721 |
+
if ( data.DT_RowId ) {
|
1722 |
+
tr.id = data.DT_RowId;
|
1723 |
}
|
1724 |
+
|
1725 |
+
if ( data.DT_RowClass ) {
|
1726 |
+
// Remove any classes added by DT_RowClass before
|
1727 |
+
var a = data.DT_RowClass.split(' ');
|
1728 |
+
row.__rowc = row.__rowc ?
|
1729 |
+
_unique( row.__rowc.concat( a ) ) :
|
1730 |
+
a;
|
1731 |
+
|
1732 |
+
$(tr)
|
1733 |
+
.removeClass( row.__rowc.join(' ') )
|
1734 |
+
.addClass( data.DT_RowClass );
|
1735 |
}
|
1736 |
+
|
1737 |
+
if ( data.DT_RowAttr ) {
|
1738 |
+
$(tr).attr( data.DT_RowAttr );
|
1739 |
+
}
|
1740 |
+
|
1741 |
+
if ( data.DT_RowData ) {
|
1742 |
+
$(tr).data( data.DT_RowData );
|
1743 |
}
|
1744 |
}
|
1745 |
+
}
|
1746 |
+
|
1747 |
+
|
1748 |
+
/**
|
1749 |
+
* Create the HTML header for the table
|
1750 |
+
* @param {object} oSettings dataTables settings object
|
1751 |
+
* @memberof DataTable#oApi
|
1752 |
+
*/
|
1753 |
+
function _fnBuildHead( oSettings )
|
1754 |
+
{
|
1755 |
+
var i, ien, cell, row, column;
|
1756 |
+
var thead = oSettings.nTHead;
|
1757 |
+
var tfoot = oSettings.nTFoot;
|
1758 |
+
var createHeader = $('th, td', thead).length === 0;
|
1759 |
+
var classes = oSettings.oClasses;
|
1760 |
+
var columns = oSettings.aoColumns;
|
1761 |
+
|
1762 |
+
if ( createHeader ) {
|
1763 |
+
row = $('<tr/>').appendTo( thead );
|
1764 |
+
}
|
1765 |
+
|
1766 |
+
for ( i=0, ien=columns.length ; i<ien ; i++ ) {
|
1767 |
+
column = columns[i];
|
1768 |
+
cell = $( column.nTh ).addClass( column.sClass );
|
1769 |
+
|
1770 |
+
if ( createHeader ) {
|
1771 |
+
cell.appendTo( row );
|
1772 |
+
}
|
1773 |
+
|
1774 |
+
// 1.11 move into sorting
|
1775 |
+
if ( oSettings.oFeatures.bSort ) {
|
1776 |
+
cell.addClass( column.sSortingClass );
|
1777 |
+
|
1778 |
+
if ( column.bSortable !== false ) {
|
1779 |
+
cell
|
1780 |
+
.attr( 'tabindex', oSettings.iTabIndex )
|
1781 |
+
.attr( 'aria-controls', oSettings.sTableId );
|
1782 |
+
|
1783 |
+
_fnSortAttachListener( oSettings, column.nTh, i );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1784 |
}
|
1785 |
+
}
|
1786 |
+
|
1787 |
+
if ( column.sTitle != cell.html() ) {
|
1788 |
+
cell.html( column.sTitle );
|
1789 |
+
}
|
1790 |
+
|
1791 |
+
_fnRenderer( oSettings, 'header' )(
|
1792 |
+
oSettings, cell, column, classes
|
1793 |
+
);
|
1794 |
+
}
|
1795 |
+
|
1796 |
+
if ( createHeader ) {
|
1797 |
+
_fnDetectHeader( oSettings.aoHeader, thead );
|
1798 |
+
}
|
1799 |
+
|
1800 |
+
/* ARIA role for the rows */
|
1801 |
+
$(thead).find('>tr').attr('role', 'row');
|
1802 |
+
|
1803 |
+
/* Deal with the footer - add classes if required */
|
1804 |
+
$(thead).find('>tr>th, >tr>td').addClass( classes.sHeaderTH );
|
1805 |
+
$(tfoot).find('>tr>th, >tr>td').addClass( classes.sFooterTH );
|
1806 |
+
|
1807 |
+
// Cache the footer cells. Note that we only take the cells from the first
|
1808 |
+
// row in the footer. If there is more than one row the user wants to
|
1809 |
+
// interact with, they need to use the table().foot() method. Note also this
|
1810 |
+
// allows cells to be used for multiple columns using colspan
|
1811 |
+
if ( tfoot !== null ) {
|
1812 |
+
var cells = oSettings.aoFooter[0];
|
1813 |
+
|
1814 |
+
for ( i=0, ien=cells.length ; i<ien ; i++ ) {
|
1815 |
+
column = columns[i];
|
1816 |
+
column.nTf = cells[i].cell;
|
1817 |
+
|
1818 |
+
if ( column.sClass ) {
|
1819 |
+
$(column.nTf).addClass( column.sClass );
|
1820 |
}
|
1821 |
+
}
|
1822 |
+
}
|
1823 |
+
}
|
1824 |
+
|
1825 |
+
|
1826 |
+
/**
|
1827 |
+
* Draw the header (or footer) element based on the column visibility states. The
|
1828 |
+
* methodology here is to use the layout array from _fnDetectHeader, modified for
|
1829 |
+
* the instantaneous column visibility, to construct the new layout. The grid is
|
1830 |
+
* traversed over cell at a time in a rows x columns grid fashion, although each
|
1831 |
+
* cell insert can cover multiple elements in the grid - which is tracks using the
|
1832 |
+
* aApplied array. Cell inserts in the grid will only occur where there isn't
|
1833 |
+
* already a cell in that position.
|
1834 |
+
* @param {object} oSettings dataTables settings object
|
1835 |
+
* @param array {objects} aoSource Layout array from _fnDetectHeader
|
1836 |
+
* @param {boolean} [bIncludeHidden=false] If true then include the hidden columns in the calc,
|
1837 |
+
* @memberof DataTable#oApi
|
1838 |
+
*/
|
1839 |
+
function _fnDrawHead( oSettings, aoSource, bIncludeHidden )
|
1840 |
+
{
|
1841 |
+
var i, iLen, j, jLen, k, kLen, n, nLocalTr;
|
1842 |
+
var aoLocal = [];
|
1843 |
+
var aApplied = [];
|
1844 |
+
var iColumns = oSettings.aoColumns.length;
|
1845 |
+
var iRowspan, iColspan;
|
1846 |
+
|
1847 |
+
if ( ! aoSource )
|
1848 |
+
{
|
1849 |
+
return;
|
1850 |
+
}
|
1851 |
+
|
1852 |
+
if ( bIncludeHidden === undefined )
|
1853 |
+
{
|
1854 |
+
bIncludeHidden = false;
|
1855 |
+
}
|
1856 |
+
|
1857 |
+
/* Make a copy of the master layout array, but without the visible columns in it */
|
1858 |
+
for ( i=0, iLen=aoSource.length ; i<iLen ; i++ )
|
1859 |
+
{
|
1860 |
+
aoLocal[i] = aoSource[i].slice();
|
1861 |
+
aoLocal[i].nTr = aoSource[i].nTr;
|
1862 |
+
|
1863 |
+
/* Remove any columns which are currently hidden */
|
1864 |
+
for ( j=iColumns-1 ; j>=0 ; j-- )
|
1865 |
+
{
|
1866 |
+
if ( !oSettings.aoColumns[j].bVisible && !bIncludeHidden )
|
1867 |
{
|
1868 |
+
aoLocal[i].splice( j, 1 );
|
|
|
|
|
1869 |
}
|
1870 |
+
}
|
1871 |
+
|
1872 |
+
/* Prep the applied array - it needs an element for each row */
|
1873 |
+
aApplied.push( [] );
|
1874 |
+
}
|
1875 |
+
|
1876 |
+
for ( i=0, iLen=aoLocal.length ; i<iLen ; i++ )
|
1877 |
+
{
|
1878 |
+
nLocalTr = aoLocal[i].nTr;
|
1879 |
+
|
1880 |
+
/* All cells are going to be replaced, so empty out the row */
|
1881 |
+
if ( nLocalTr )
|
1882 |
+
{
|
1883 |
+
while( (n = nLocalTr.firstChild) )
|
1884 |
{
|
1885 |
+
nLocalTr.removeChild( n );
|
|
|
|
|
1886 |
}
|
1887 |
+
}
|
1888 |
+
|
1889 |
+
for ( j=0, jLen=aoLocal[i].length ; j<jLen ; j++ )
|
1890 |
+
{
|
1891 |
+
iRowspan = 1;
|
1892 |
+
iColspan = 1;
|
1893 |
+
|
1894 |
+
/* Check to see if there is already a cell (row/colspan) covering our target
|
1895 |
+
* insert point. If there is, then there is nothing to do.
|
1896 |
+
*/
|
1897 |
+
if ( aApplied[i][j] === undefined )
|
1898 |
{
|
1899 |
+
nLocalTr.appendChild( aoLocal[i][j].cell );
|
1900 |
+
aApplied[i][j] = 1;
|
1901 |
+
|
1902 |
+
/* Expand the cell to cover as many rows as needed */
|
1903 |
+
while ( aoLocal[i+iRowspan] !== undefined &&
|
1904 |
+
aoLocal[i][j].cell == aoLocal[i+iRowspan][j].cell )
|
1905 |
+
{
|
1906 |
+
aApplied[i+iRowspan][j] = 1;
|
1907 |
+
iRowspan++;
|
1908 |
+
}
|
1909 |
+
|
1910 |
+
/* Expand the cell to cover as many columns as needed */
|
1911 |
+
while ( aoLocal[i][j+iColspan] !== undefined &&
|
1912 |
+
aoLocal[i][j].cell == aoLocal[i][j+iColspan].cell )
|
1913 |
{
|
1914 |
+
/* Must update the applied array over the rows for the columns */
|
1915 |
+
for ( k=0 ; k<iRowspan ; k++ )
|
1916 |
{
|
1917 |
+
aApplied[i+k][j+iColspan] = 1;
|
|
|
|
|
|
|
|
|
|
|
1918 |
}
|
1919 |
+
iColspan++;
|
1920 |
}
|
1921 |
+
|
1922 |
+
/* Do the actual expansion in the DOM */
|
1923 |
+
$(aoLocal[i][j].cell)
|
1924 |
+
.attr('rowspan', iRowspan)
|
1925 |
+
.attr('colspan', iColspan);
|
1926 |
+
}
|
1927 |
+
}
|
1928 |
+
}
|
1929 |
+
}
|
1930 |
+
|
1931 |
+
|
1932 |
+
/**
|
1933 |
+
* Insert the required TR nodes into the table for display
|
1934 |
+
* @param {object} oSettings dataTables settings object
|
1935 |
+
* @memberof DataTable#oApi
|
1936 |
+
*/
|
1937 |
+
function _fnDraw( oSettings )
|
1938 |
+
{
|
1939 |
+
/* Provide a pre-callback function which can be used to cancel the draw is false is returned */
|
1940 |
+
var aPreDraw = _fnCallbackFire( oSettings, 'aoPreDrawCallback', 'preDraw', [oSettings] );
|
1941 |
+
if ( $.inArray( false, aPreDraw ) !== -1 )
|
1942 |
+
{
|
1943 |
+
_fnProcessingDisplay( oSettings, false );
|
1944 |
+
return;
|
1945 |
+
}
|
1946 |
+
|
1947 |
+
var i, iLen, n;
|
1948 |
+
var anRows = [];
|
1949 |
+
var iRowCount = 0;
|
1950 |
+
var asStripeClasses = oSettings.asStripeClasses;
|
1951 |
+
var iStripes = asStripeClasses.length;
|
1952 |
+
var iOpenRows = oSettings.aoOpenRows.length;
|
1953 |
+
var oLang = oSettings.oLanguage;
|
1954 |
+
var iInitDisplayStart = oSettings.iInitDisplayStart;
|
1955 |
+
var bServerSide = _fnDataSource( oSettings ) == 'ssp';
|
1956 |
+
var aiDisplay = oSettings.aiDisplay;
|
1957 |
+
|
1958 |
+
oSettings.bDrawing = true;
|
1959 |
+
|
1960 |
+
/* Check and see if we have an initial draw position from state saving */
|
1961 |
+
if ( iInitDisplayStart !== undefined && iInitDisplayStart !== -1 )
|
1962 |
+
{
|
1963 |
+
oSettings._iDisplayStart = bServerSide ?
|
1964 |
+
iInitDisplayStart :
|
1965 |
+
iInitDisplayStart >= oSettings.fnRecordsDisplay() ?
|
1966 |
+
0 :
|
1967 |
+
iInitDisplayStart;
|
1968 |
+
|
1969 |
+
oSettings.iInitDisplayStart = -1;
|
1970 |
+
}
|
1971 |
+
|
1972 |
+
var iDisplayStart = oSettings._iDisplayStart;
|
1973 |
+
var iDisplayEnd = oSettings.fnDisplayEnd();
|
1974 |
+
|
1975 |
+
/* Server-side processing draw intercept */
|
1976 |
+
if ( oSettings.bDeferLoading )
|
1977 |
+
{
|
1978 |
+
oSettings.bDeferLoading = false;
|
1979 |
+
oSettings.iDraw++;
|
1980 |
+
_fnProcessingDisplay( oSettings, false );
|
1981 |
+
}
|
1982 |
+
else if ( !bServerSide )
|
1983 |
+
{
|
1984 |
+
oSettings.iDraw++;
|
1985 |
+
}
|
1986 |
+
else if ( !oSettings.bDestroying && !_fnAjaxUpdate( oSettings ) )
|
1987 |
+
{
|
1988 |
+
return;
|
1989 |
+
}
|
1990 |
+
|
1991 |
+
if ( aiDisplay.length !== 0 )
|
1992 |
+
{
|
1993 |
+
var iStart = bServerSide ? 0 : iDisplayStart;
|
1994 |
+
var iEnd = bServerSide ? oSettings.aoData.length : iDisplayEnd;
|
1995 |
+
|
1996 |
+
for ( var j=iStart ; j<iEnd ; j++ )
|
1997 |
+
{
|
1998 |
+
var iDataIndex = aiDisplay[j];
|
1999 |
+
var aoData = oSettings.aoData[ iDataIndex ];
|
2000 |
+
if ( aoData.nTr === null )
|
2001 |
+
{
|
2002 |
+
_fnCreateTr( oSettings, iDataIndex );
|
2003 |
}
|
2004 |
+
|
2005 |
+
var nRow = aoData.nTr;
|
2006 |
+
|
2007 |
+
/* Remove the old striping classes and then add the new one */
|
2008 |
+
if ( iStripes !== 0 )
|
2009 |
{
|
2010 |
+
var sStripe = asStripeClasses[ iRowCount % iStripes ];
|
2011 |
+
if ( aoData._sRowStripe != sStripe )
|
2012 |
{
|
2013 |
+
$(nRow).removeClass( aoData._sRowStripe ).addClass( sStripe );
|
2014 |
+
aoData._sRowStripe = sStripe;
|
2015 |
}
|
|
|
|
|
2016 |
}
|
2017 |
+
|
2018 |
+
// Row callback functions - might want to manipulate the row
|
2019 |
+
// iRowCount and j are not currently documented. Are they at all
|
2020 |
+
// useful?
|
2021 |
+
_fnCallbackFire( oSettings, 'aoRowCallback', null,
|
2022 |
+
[nRow, aoData._aData, iRowCount, j] );
|
2023 |
+
|
2024 |
+
anRows.push( nRow );
|
2025 |
+
iRowCount++;
|
2026 |
}
|
|
|
|
|
|
|
2027 |
}
|
2028 |
+
else
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2029 |
{
|
2030 |
+
/* Table is empty - create a row with an empty message in it */
|
2031 |
+
var sZero = oLang.sZeroRecords;
|
2032 |
+
if ( oSettings.iDraw == 1 && _fnDataSource( oSettings ) == 'ajax' )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2033 |
{
|
2034 |
+
sZero = oLang.sLoadingRecords;
|
2035 |
}
|
2036 |
+
else if ( oLang.sEmptyTable && oSettings.fnRecordsTotal() === 0 )
|
|
|
|
|
2037 |
{
|
2038 |
+
sZero = oLang.sEmptyTable;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2039 |
}
|
2040 |
+
|
2041 |
+
anRows[ 0 ] = $( '<tr/>', { 'class': iStripes ? asStripeClasses[0] : '' } )
|
2042 |
+
.append( $('<td />', {
|
2043 |
+
'valign': 'top',
|
2044 |
+
'colSpan': _fnVisbleColumns( oSettings ),
|
2045 |
+
'class': oSettings.oClasses.sRowEmpty
|
2046 |
+
} ).html( sZero ) )[0];
|
2047 |
}
|
2048 |
+
|
2049 |
+
/* Header and footer callbacks */
|
2050 |
+
_fnCallbackFire( oSettings, 'aoHeaderCallback', 'header', [ $(oSettings.nTHead).children('tr')[0],
|
2051 |
+
_fnGetDataMaster( oSettings ), iDisplayStart, iDisplayEnd, aiDisplay ] );
|
2052 |
+
|
2053 |
+
_fnCallbackFire( oSettings, 'aoFooterCallback', 'footer', [ $(oSettings.nTFoot).children('tr')[0],
|
2054 |
+
_fnGetDataMaster( oSettings ), iDisplayStart, iDisplayEnd, aiDisplay ] );
|
2055 |
+
|
2056 |
+
var body = $(oSettings.nTBody);
|
2057 |
+
|
2058 |
+
body.children().detach();
|
2059 |
+
body.append( $(anRows) );
|
2060 |
+
|
2061 |
+
/* Call all required callback functions for the end of a draw */
|
2062 |
+
_fnCallbackFire( oSettings, 'aoDrawCallback', 'draw', [oSettings] );
|
2063 |
+
|
2064 |
+
/* Draw is complete, sorting and filtering must be as well */
|
2065 |
+
oSettings.bSorted = false;
|
2066 |
+
oSettings.bFiltered = false;
|
2067 |
+
oSettings.bDrawing = false;
|
2068 |
+
}
|
2069 |
+
|
2070 |
+
|
2071 |
+
/**
|
2072 |
+
* Redraw the table - taking account of the various features which are enabled
|
2073 |
+
* @param {object} oSettings dataTables settings object
|
2074 |
+
* @param {boolean} [holdPosition] Keep the current paging position. By default
|
2075 |
+
* the paging is reset to the first page
|
2076 |
+
* @memberof DataTable#oApi
|
2077 |
+
*/
|
2078 |
+
function _fnReDraw( settings, holdPosition )
|
2079 |
+
{
|
2080 |
+
var
|
2081 |
+
features = settings.oFeatures,
|
2082 |
+
sort = features.bSort,
|
2083 |
+
filter = features.bFilter;
|
2084 |
+
|
2085 |
+
if ( sort ) {
|
2086 |
+
_fnSort( settings );
|
2087 |
+
}
|
2088 |
+
|
2089 |
+
if ( filter ) {
|
2090 |
+
_fnFilterComplete( settings, settings.oPreviousSearch );
|
2091 |
+
}
|
2092 |
+
else {
|
2093 |
+
// No filtering, so we want to just use the display master
|
2094 |
+
settings.aiDisplay = settings.aiDisplayMaster.slice();
|
2095 |
+
}
|
2096 |
+
|
2097 |
+
if ( holdPosition !== true ) {
|
2098 |
+
settings._iDisplayStart = 0;
|
2099 |
+
}
|
2100 |
+
|
2101 |
+
// Let any modules know about the draw hold position state (used by
|
2102 |
+
// scrolling internally)
|
2103 |
+
settings._drawHold = holdPosition;
|
2104 |
+
|
2105 |
+
_fnDraw( settings );
|
2106 |
+
|
2107 |
+
settings._drawHold = false;
|
2108 |
+
}
|
2109 |
+
|
2110 |
+
|
2111 |
+
/**
|
2112 |
+
* Add the options to the page HTML for the table
|
2113 |
+
* @param {object} oSettings dataTables settings object
|
2114 |
+
* @memberof DataTable#oApi
|
2115 |
+
*/
|
2116 |
+
function _fnAddOptionsHtml ( oSettings )
|
2117 |
+
{
|
2118 |
+
var classes = oSettings.oClasses;
|
2119 |
+
var table = $(oSettings.nTable);
|
2120 |
+
var holding = $('<div/>').insertBefore( table ); // Holding element for speed
|
2121 |
+
var features = oSettings.oFeatures;
|
2122 |
+
|
2123 |
+
// All DataTables are wrapped in a div
|
2124 |
+
var insert = $('<div/>', {
|
2125 |
+
id: oSettings.sTableId+'_wrapper',
|
2126 |
+
'class': classes.sWrapper + (oSettings.nTFoot ? '' : ' '+classes.sNoFooter)
|
2127 |
+
} );
|
2128 |
+
|
2129 |
+
oSettings.nHolding = holding[0];
|
2130 |
+
oSettings.nTableWrapper = insert[0];
|
2131 |
+
oSettings.nTableReinsertBefore = oSettings.nTable.nextSibling;
|
2132 |
+
|
2133 |
+
/* Loop over the user set positioning and place the elements as needed */
|
2134 |
+
var aDom = oSettings.sDom.split('');
|
2135 |
+
var featureNode, cOption, nNewNode, cNext, sAttr, j;
|
2136 |
+
for ( var i=0 ; i<aDom.length ; i++ )
|
2137 |
{
|
2138 |
+
featureNode = null;
|
2139 |
+
cOption = aDom[i];
|
2140 |
+
|
2141 |
+
if ( cOption == '<' )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2142 |
{
|
2143 |
+
/* New container div */
|
2144 |
+
nNewNode = $('<div/>')[0];
|
2145 |
+
|
2146 |
+
/* Check to see if we should append an id and/or a class name to the container */
|
2147 |
+
cNext = aDom[i+1];
|
2148 |
+
if ( cNext == "'" || cNext == '"' )
|
2149 |
{
|
2150 |
+
sAttr = "";
|
2151 |
+
j = 2;
|
2152 |
+
while ( aDom[i+j] != cNext )
|
2153 |
+
{
|
2154 |
+
sAttr += aDom[i+j];
|
2155 |
+
j++;
|
2156 |
+
}
|
2157 |
+
|
2158 |
+
/* Replace jQuery UI constants @todo depreciated */
|
2159 |
+
if ( sAttr == "H" )
|
2160 |
+
{
|
2161 |
+
sAttr = classes.sJUIHeader;
|
2162 |
+
}
|
2163 |
+
else if ( sAttr == "F" )
|
2164 |
+
{
|
2165 |
+
sAttr = classes.sJUIFooter;
|
2166 |
+
}
|
2167 |
+
|
2168 |
+
/* The attribute can be in the format of "#id.class", "#id" or "class" This logic
|
2169 |
+
* breaks the string into parts and applies them as needed
|
2170 |
+
*/
|
2171 |
+
if ( sAttr.indexOf('.') != -1 )
|
2172 |
{
|
2173 |
+
var aSplit = sAttr.split('.');
|
2174 |
+
nNewNode.id = aSplit[0].substr(1, aSplit[0].length-1);
|
2175 |
+
nNewNode.className = aSplit[1];
|
2176 |
}
|
2177 |
+
else if ( sAttr.charAt(0) == "#" )
|
2178 |
+
{
|
2179 |
+
nNewNode.id = sAttr.substr(1, sAttr.length-1);
|
2180 |
+
}
|
2181 |
+
else
|
2182 |
+
{
|
2183 |
+
nNewNode.className = sAttr;
|
2184 |
+
}
|
2185 |
+
|
2186 |
+
i += j; /* Move along the position array */
|
2187 |
}
|
2188 |
+
|
2189 |
+
insert.append( nNewNode );
|
2190 |
+
insert = $(nNewNode);
|
2191 |
}
|
2192 |
+
else if ( cOption == '>' )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2193 |
{
|
2194 |
+
/* End container div */
|
2195 |
+
insert = insert.parent();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2196 |
}
|
2197 |
+
// @todo Move options into their own plugins?
|
2198 |
+
else if ( cOption == 'l' && features.bPaginate && features.bLengthChange )
|
2199 |
{
|
2200 |
+
/* Length */
|
2201 |
+
featureNode = _fnFeatureHtmlLength( oSettings );
|
2202 |
}
|
2203 |
+
else if ( cOption == 'f' && features.bFilter )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2204 |
{
|
2205 |
+
/* Filter */
|
2206 |
+
featureNode = _fnFeatureHtmlFilter( oSettings );
|
2207 |
}
|
2208 |
+
else if ( cOption == 'r' && features.bProcessing )
|
|
|
|
|
2209 |
{
|
2210 |
+
/* pRocessing */
|
2211 |
+
featureNode = _fnFeatureHtmlProcessing( oSettings );
|
|
|
|
|
|
|
|
|
|
|
|
|
2212 |
}
|
2213 |
+
else if ( cOption == 't' )
|
|
|
|
|
2214 |
{
|
2215 |
+
/* Table */
|
2216 |
+
featureNode = _fnFeatureHtmlTable( oSettings );
|
2217 |
+
}
|
2218 |
+
else if ( cOption == 'i' && features.bInfo )
|
2219 |
+
{
|
2220 |
+
/* Info */
|
2221 |
+
featureNode = _fnFeatureHtmlInfo( oSettings );
|
2222 |
+
}
|
2223 |
+
else if ( cOption == 'p' && features.bPaginate )
|
2224 |
+
{
|
2225 |
+
/* Pagination */
|
2226 |
+
featureNode = _fnFeatureHtmlPaginate( oSettings );
|
2227 |
+
}
|
2228 |
+
else if ( DataTable.ext.feature.length !== 0 )
|
2229 |
+
{
|
2230 |
+
/* Plug-in features */
|
2231 |
+
var aoFeatures = DataTable.ext.feature;
|
2232 |
+
for ( var k=0, kLen=aoFeatures.length ; k<kLen ; k++ )
|
2233 |
{
|
2234 |
+
if ( cOption == aoFeatures[k].cFeature )
|
|
|
|
|
2235 |
{
|
2236 |
+
featureNode = aoFeatures[k].fnInit( oSettings );
|
2237 |
+
break;
|
|
|
2238 |
}
|
2239 |
}
|
2240 |
+
}
|
2241 |
+
|
2242 |
+
/* Add to the 2D features array */
|
2243 |
+
if ( featureNode )
|
2244 |
+
{
|
2245 |
+
var aanFeatures = oSettings.aanFeatures;
|
2246 |
+
|
2247 |
+
if ( ! aanFeatures[cOption] )
|
2248 |
{
|
2249 |
+
aanFeatures[cOption] = [];
|
2250 |
}
|
2251 |
+
|
2252 |
+
aanFeatures[cOption].push( featureNode );
|
2253 |
+
insert.append( featureNode );
|
2254 |
}
|
|
|
|
|
2255 |
}
|
2256 |
+
|
2257 |
+
/* Built our DOM structure - replace the holding div with what we want */
|
2258 |
+
holding.replaceWith( insert );
|
2259 |
+
}
|
2260 |
+
|
2261 |
+
|
2262 |
+
/**
|
2263 |
+
* Use the DOM source to create up an array of header cells. The idea here is to
|
2264 |
+
* create a layout grid (array) of rows x columns, which contains a reference
|
2265 |
+
* to the cell that that point in the grid (regardless of col/rowspan), such that
|
2266 |
+
* any column / row could be removed and the new grid constructed
|
2267 |
+
* @param array {object} aLayout Array to store the calculated layout in
|
2268 |
+
* @param {node} nThead The header/footer element for the table
|
2269 |
+
* @memberof DataTable#oApi
|
2270 |
+
*/
|
2271 |
+
function _fnDetectHeader ( aLayout, nThead )
|
2272 |
+
{
|
2273 |
+
var nTrs = $(nThead).children('tr');
|
2274 |
+
var nTr, nCell;
|
2275 |
+
var i, k, l, iLen, jLen, iColShifted, iColumn, iColspan, iRowspan;
|
2276 |
+
var bUnique;
|
2277 |
+
var fnShiftCol = function ( a, i, j ) {
|
2278 |
+
var k = a[i];
|
2279 |
+
while ( k[j] ) {
|
2280 |
+
j++;
|
2281 |
+
}
|
2282 |
+
return j;
|
2283 |
+
};
|
2284 |
+
|
2285 |
+
aLayout.splice( 0, aLayout.length );
|
2286 |
+
|
2287 |
+
/* We know how many rows there are in the layout - so prep it */
|
2288 |
+
for ( i=0, iLen=nTrs.length ; i<iLen ; i++ )
|
2289 |
{
|
2290 |
+
aLayout.push( [] );
|
2291 |
}
|
2292 |
+
|
2293 |
+
/* Calculate a layout array */
|
2294 |
+
for ( i=0, iLen=nTrs.length ; i<iLen ; i++ )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2295 |
{
|
2296 |
+
nTr = nTrs[i];
|
2297 |
+
iColumn = 0;
|
2298 |
+
|
2299 |
+
/* For every cell in the row... */
|
2300 |
+
nCell = nTr.firstChild;
|
2301 |
+
while ( nCell ) {
|
2302 |
+
if ( nCell.nodeName.toUpperCase() == "TD" ||
|
2303 |
+
nCell.nodeName.toUpperCase() == "TH" )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2304 |
{
|
2305 |
+
/* Get the col and rowspan attributes from the DOM and sanitise them */
|
2306 |
+
iColspan = nCell.getAttribute('colspan') * 1;
|
2307 |
+
iRowspan = nCell.getAttribute('rowspan') * 1;
|
2308 |
+
iColspan = (!iColspan || iColspan===0 || iColspan===1) ? 1 : iColspan;
|
2309 |
+
iRowspan = (!iRowspan || iRowspan===0 || iRowspan===1) ? 1 : iRowspan;
|
2310 |
+
|
2311 |
+
/* There might be colspan cells already in this row, so shift our target
|
2312 |
+
* accordingly
|
2313 |
+
*/
|
2314 |
+
iColShifted = fnShiftCol( aLayout, i, iColumn );
|
2315 |
+
|
2316 |
+
/* Cache calculation for unique columns */
|
2317 |
+
bUnique = iColspan === 1 ? true : false;
|
2318 |
+
|
2319 |
+
/* If there is col / rowspan, copy the information into the layout grid */
|
2320 |
+
for ( l=0 ; l<iColspan ; l++ )
|
2321 |
{
|
2322 |
+
for ( k=0 ; k<iRowspan ; k++ )
|
2323 |
+
{
|
2324 |
+
aLayout[i+k][iColShifted+l] = {
|
2325 |
+
"cell": nCell,
|
2326 |
+
"unique": bUnique
|
2327 |
+
};
|
2328 |
+
aLayout[i+k].nTr = nTr;
|
2329 |
+
}
|
2330 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2331 |
}
|
2332 |
+
nCell = nCell.nextSibling;
|
2333 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2334 |
}
|
2335 |
+
}
|
2336 |
+
|
2337 |
+
|
2338 |
+
/**
|
2339 |
+
* Get an array of unique th elements, one for each column
|
2340 |
+
* @param {object} oSettings dataTables settings object
|
2341 |
+
* @param {node} nHeader automatically detect the layout from this node - optional
|
2342 |
+
* @param {array} aLayout thead/tfoot layout from _fnDetectHeader - optional
|
2343 |
+
* @returns array {node} aReturn list of unique th's
|
2344 |
+
* @memberof DataTable#oApi
|
2345 |
+
*/
|
2346 |
+
function _fnGetUniqueThs ( oSettings, nHeader, aLayout )
|
2347 |
+
{
|
2348 |
+
var aReturn = [];
|
2349 |
+
if ( !aLayout )
|
2350 |
{
|
2351 |
+
aLayout = oSettings.aoHeader;
|
2352 |
+
if ( nHeader )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2353 |
{
|
2354 |
+
aLayout = [];
|
2355 |
+
_fnDetectHeader( aLayout, nHeader );
|
2356 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2357 |
}
|
2358 |
+
|
2359 |
+
for ( var i=0, iLen=aLayout.length ; i<iLen ; i++ )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2360 |
{
|
2361 |
+
for ( var j=0, jLen=aLayout[i].length ; j<jLen ; j++ )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2362 |
{
|
2363 |
+
if ( aLayout[i][j].unique &&
|
2364 |
+
(!aReturn[j] || !oSettings.bSortCellsTop) )
|
|
|
|
|
|
|
|
|
2365 |
{
|
2366 |
+
aReturn[j] = aLayout[i][j].cell;
|
|
|
2367 |
}
|
|
|
|
|
|
|
2368 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2369 |
}
|
2370 |
+
|
2371 |
+
return aReturn;
|
2372 |
+
}
|
2373 |
+
|
2374 |
+
|
2375 |
+
|
2376 |
+
/**
|
2377 |
+
* Create an Ajax call based on the table's settings, taking into account that
|
2378 |
+
* parameters can have multiple forms, and backwards compatibility.
|
2379 |
+
*
|
2380 |
+
* @param {object} oSettings dataTables settings object
|
2381 |
+
* @param {array} data Data to send to the server, required by
|
2382 |
+
* DataTables - may be augmented by developer callbacks
|
2383 |
+
* @param {function} fn Callback function to run when data is obtained
|
2384 |
+
*/
|
2385 |
+
function _fnBuildAjax( oSettings, data, fn )
|
2386 |
+
{
|
2387 |
+
// Compatibility with 1.9-, allow fnServerData and event to manipulate
|
2388 |
+
_fnCallbackFire( oSettings, 'aoServerParams', 'serverParams', [data] );
|
2389 |
+
|
2390 |
+
// Convert to object based for 1.10+ if using the old array scheme which can
|
2391 |
+
// come from server-side processing or serverParams
|
2392 |
+
if ( data && $.isArray(data) ) {
|
2393 |
+
var tmp = {};
|
2394 |
+
var rbracket = /(.*?)\[\]$/;
|
2395 |
+
|
2396 |
+
$.each( data, function (key, val) {
|
2397 |
+
var match = val.name.match(rbracket);
|
2398 |
+
|
2399 |
+
if ( match ) {
|
2400 |
+
// Support for arrays
|
2401 |
+
var name = match[0];
|
2402 |
+
|
2403 |
+
if ( ! tmp[ name ] ) {
|
2404 |
+
tmp[ name ] = [];
|
2405 |
}
|
2406 |
+
tmp[ name ].push( val.value );
|
2407 |
}
|
2408 |
+
else {
|
2409 |
+
tmp[val.name] = val.value;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2410 |
}
|
2411 |
+
} );
|
2412 |
+
data = tmp;
|
2413 |
}
|
2414 |
+
|
2415 |
+
var ajaxData;
|
2416 |
+
var ajax = oSettings.ajax;
|
2417 |
+
var instance = oSettings.oInstance;
|
2418 |
+
|
2419 |
+
if ( $.isPlainObject( ajax ) && ajax.data )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2420 |
{
|
2421 |
+
ajaxData = ajax.data;
|
2422 |
+
|
2423 |
+
var newData = $.isFunction( ajaxData ) ?
|
2424 |
+
ajaxData( data ) : // fn can manipulate data or return an object
|
2425 |
+
ajaxData; // object or array to merge
|
2426 |
+
|
2427 |
+
// If the function returned something, use that alone
|
2428 |
+
data = $.isFunction( ajaxData ) && newData ?
|
2429 |
+
newData :
|
2430 |
+
$.extend( true, data, newData );
|
2431 |
+
|
2432 |
+
// Remove the data property as we've resolved it already and don't want
|
2433 |
+
// jQuery to do it again (it is restored at the end of the function)
|
2434 |
+
delete ajax.data;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2435 |
}
|
2436 |
+
|
2437 |
+
var baseAjax = {
|
2438 |
+
"data": data,
|
2439 |
+
"success": function (json) {
|
2440 |
+
var error = json.error || json.sError;
|
2441 |
+
if ( error ) {
|
2442 |
+
oSettings.oApi._fnLog( oSettings, 0, error );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2443 |
}
|
2444 |
+
|
2445 |
+
oSettings.json = json;
|
2446 |
+
_fnCallbackFire( oSettings, null, 'xhr', [oSettings, json] );
|
2447 |
+
fn( json );
|
2448 |
+
},
|
2449 |
+
"dataType": "json",
|
2450 |
+
"cache": false,
|
2451 |
+
"type": oSettings.sServerMethod,
|
2452 |
+
"error": function (xhr, error, thrown) {
|
2453 |
+
var log = oSettings.oApi._fnLog;
|
2454 |
+
|
2455 |
+
if ( error == "parsererror" ) {
|
2456 |
+
log( oSettings, 0, 'Invalid JSON response', 1 );
|
2457 |
+
}
|
2458 |
+
else if ( xhr.readyState === 4 ) {
|
2459 |
+
log( oSettings, 0, 'Ajax error', 7 );
|
2460 |
+
}
|
2461 |
+
|
2462 |
+
_fnProcessingDisplay( oSettings, false );
|
2463 |
}
|
2464 |
+
};
|
2465 |
+
|
2466 |
+
// Store the data submitted for the API
|
2467 |
+
oSettings.oAjaxData = data;
|
2468 |
+
|
2469 |
+
// Allow plug-ins and external processes to modify the data
|
2470 |
+
_fnCallbackFire( oSettings, null, 'preXhr', [oSettings, data] );
|
2471 |
+
|
2472 |
+
if ( oSettings.fnServerData )
|
2473 |
+
{
|
2474 |
+
// DataTables 1.9- compatibility
|
2475 |
+
oSettings.fnServerData.call( instance,
|
2476 |
+
oSettings.sAjaxSource,
|
2477 |
+
$.map( data, function (val, key) { // Need to convert back to 1.9 trad format
|
2478 |
+
return { name: key, value: val };
|
2479 |
+
} ),
|
2480 |
+
fn,
|
2481 |
+
oSettings
|
2482 |
+
);
|
2483 |
}
|
2484 |
+
else if ( oSettings.sAjaxSource || typeof ajax === 'string' )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2485 |
{
|
2486 |
+
// DataTables 1.9- compatibility
|
2487 |
+
oSettings.jqXHR = $.ajax( $.extend( baseAjax, {
|
2488 |
+
url: ajax || oSettings.sAjaxSource
|
2489 |
+
} ) );
|
|
|
|
|
|
|
|
|
|
|
|
|
2490 |
}
|
2491 |
+
else if ( $.isFunction( ajax ) )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2492 |
{
|
2493 |
+
// Is a function - let the caller define what needs to be done
|
2494 |
+
oSettings.jqXHR = ajax.call( instance, data, fn, oSettings );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2495 |
}
|
2496 |
+
else
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2497 |
{
|
2498 |
+
// Object to extend the base settings
|
2499 |
+
oSettings.jqXHR = $.ajax( $.extend( baseAjax, ajax ) );
|
2500 |
+
|
2501 |
+
// Restore for next time around
|
2502 |
+
ajax.data = ajaxData;
|
2503 |
+
}
|
2504 |
+
}
|
2505 |
+
|
2506 |
+
|
2507 |
+
/**
|
2508 |
+
* Update the table using an Ajax call
|
2509 |
+
* @param {object} settings dataTables settings object
|
2510 |
+
* @returns {boolean} Block the table drawing or not
|
2511 |
+
* @memberof DataTable#oApi
|
2512 |
+
*/
|
2513 |
+
function _fnAjaxUpdate( settings )
|
2514 |
+
{
|
2515 |
+
if ( settings.bAjaxDataGet ) {
|
2516 |
+
settings.iDraw++;
|
2517 |
+
_fnProcessingDisplay( settings, true );
|
2518 |
+
|
2519 |
+
_fnBuildAjax(
|
2520 |
+
settings,
|
2521 |
+
_fnAjaxParameters( settings ),
|
2522 |
+
function(json) {
|
2523 |
+
_fnAjaxUpdateDraw( settings, json );
|
2524 |
+
}
|
2525 |
+
);
|
2526 |
+
|
2527 |
+
return false;
|
2528 |
+
}
|
2529 |
+
return true;
|
2530 |
+
}
|
2531 |
+
|
2532 |
+
|
2533 |
+
/**
|
2534 |
+
* Build up the parameters in an object needed for a server-side processing
|
2535 |
+
* request. Note that this is basically done twice, is different ways - a modern
|
2536 |
+
* method which is used by default in DataTables 1.10 which uses objects and
|
2537 |
+
* arrays, or the 1.9- method with is name / value pairs. 1.9 method is used if
|
2538 |
+
* the sAjaxSource option is used in the initialisation, or the legacyAjax
|
2539 |
+
* option is set.
|
2540 |
+
* @param {object} oSettings dataTables settings object
|
2541 |
+
* @returns {bool} block the table drawing or not
|
2542 |
+
* @memberof DataTable#oApi
|
2543 |
+
*/
|
2544 |
+
function _fnAjaxParameters( settings )
|
2545 |
+
{
|
2546 |
+
var
|
2547 |
+
columns = settings.aoColumns,
|
2548 |
+
columnCount = columns.length,
|
2549 |
+
features = settings.oFeatures,
|
2550 |
+
preSearch = settings.oPreviousSearch,
|
2551 |
+
preColSearch = settings.aoPreSearchCols,
|
2552 |
+
i, data = [], dataProp, column, columnSearch,
|
2553 |
+
sort = _fnSortFlatten( settings ),
|
2554 |
+
displayStart = settings._iDisplayStart,
|
2555 |
+
displayLength = features.bPaginate !== false ?
|
2556 |
+
settings._iDisplayLength :
|
2557 |
+
-1;
|
2558 |
+
|
2559 |
+
var param = function ( name, value ) {
|
2560 |
+
data.push( { 'name': name, 'value': value } );
|
2561 |
+
};
|
2562 |
+
|
2563 |
+
// DataTables 1.9- compatible method
|
2564 |
+
param( 'sEcho', settings.iDraw );
|
2565 |
+
param( 'iColumns', columnCount );
|
2566 |
+
param( 'sColumns', _pluck( columns, 'sName' ).join(',') );
|
2567 |
+
param( 'iDisplayStart', displayStart );
|
2568 |
+
param( 'iDisplayLength', displayLength );
|
2569 |
+
|
2570 |
+
// DataTables 1.10+ method
|
2571 |
+
var d = {
|
2572 |
+
draw: settings.iDraw,
|
2573 |
+
columns: [],
|
2574 |
+
order: [],
|
2575 |
+
start: displayStart,
|
2576 |
+
length: displayLength,
|
2577 |
+
search: {
|
2578 |
+
value: preSearch.sSearch,
|
2579 |
+
regex: preSearch.bRegex
|
2580 |
}
|
2581 |
+
};
|
2582 |
+
|
2583 |
+
for ( i=0 ; i<columnCount ; i++ ) {
|
2584 |
+
column = columns[i];
|
2585 |
+
columnSearch = preColSearch[i];
|
2586 |
+
dataProp = typeof column.mData=="function" ? 'function' : column.mData ;
|
2587 |
+
|
2588 |
+
d.columns.push( {
|
2589 |
+
data: dataProp,
|
2590 |
+
name: column.sName,
|
2591 |
+
searchable: column.bSearchable,
|
2592 |
+
orderable: column.bSortable,
|
2593 |
+
search: {
|
2594 |
+
value: columnSearch.sSearch,
|
2595 |
+
regex: columnSearch.bRegex
|
2596 |
+
}
|
2597 |
+
} );
|
2598 |
+
|
2599 |
+
param( "mDataProp_"+i, dataProp );
|
2600 |
+
|
2601 |
+
if ( features.bFilter ) {
|
2602 |
+
param( 'sSearch_'+i, columnSearch.sSearch );
|
2603 |
+
param( 'bRegex_'+i, columnSearch.bRegex );
|
2604 |
+
param( 'bSearchable_'+i, column.bSearchable );
|
2605 |
}
|
2606 |
+
|
2607 |
+
if ( features.bSort ) {
|
2608 |
+
param( 'bSortable_'+i, column.bSortable );
|
2609 |
}
|
|
|
2610 |
}
|
2611 |
+
|
2612 |
+
if ( features.bFilter ) {
|
2613 |
+
param( 'sSearch', preSearch.sSearch );
|
2614 |
+
param( 'bRegex', preSearch.bRegex );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2615 |
}
|
2616 |
+
|
2617 |
+
if ( features.bSort ) {
|
2618 |
+
$.each( sort, function ( i, val ) {
|
2619 |
+
d.order.push( { column: val.col, dir: val.dir } );
|
2620 |
+
|
2621 |
+
param( 'iSortCol_'+i, val.col );
|
2622 |
+
param( 'sSortDir_'+i, val.dir );
|
2623 |
+
} );
|
2624 |
+
|
2625 |
+
param( 'iSortingCols', sort.length );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2626 |
}
|
2627 |
+
|
2628 |
+
// If the legacy.ajax parameter is null, then we automatically decide which
|
2629 |
+
// form to use, based on sAjaxSource
|
2630 |
+
var legacy = DataTable.ext.legacy.ajax;
|
2631 |
+
if ( legacy === null ) {
|
2632 |
+
return settings.sAjaxSource ? data : d;
|
2633 |
+
}
|
2634 |
+
|
2635 |
+
// Otherwise, if legacy has been specified then we use that to decide on the
|
2636 |
+
// form
|
2637 |
+
return legacy ? data : d;
|
2638 |
+
}
|
2639 |
+
|
2640 |
+
|
2641 |
+
/**
|
2642 |
+
* Data the data from the server (nuking the old) and redraw the table
|
2643 |
+
* @param {object} oSettings dataTables settings object
|
2644 |
+
* @param {object} json json data return from the server.
|
2645 |
+
* @param {string} json.sEcho Tracking flag for DataTables to match requests
|
2646 |
+
* @param {int} json.iTotalRecords Number of records in the data set, not accounting for filtering
|
2647 |
+
* @param {int} json.iTotalDisplayRecords Number of records in the data set, accounting for filtering
|
2648 |
+
* @param {array} json.aaData The data to display on this page
|
2649 |
+
* @param {string} [json.sColumns] Column ordering (sName, comma separated)
|
2650 |
+
* @memberof DataTable#oApi
|
2651 |
+
*/
|
2652 |
+
function _fnAjaxUpdateDraw ( settings, json )
|
2653 |
+
{
|
2654 |
+
// v1.10 uses camelCase variables, while 1.9 uses Hungarian notation.
|
2655 |
+
// Support both
|
2656 |
+
var compat = function ( old, modern ) {
|
2657 |
+
return json[old] !== undefined ? json[old] : json[modern];
|
2658 |
+
};
|
2659 |
+
|
2660 |
+
var draw = compat( 'sEcho', 'draw' );
|
2661 |
+
var recordsTotal = compat( 'iTotalRecords', 'recordsTotal' );
|
2662 |
+
var recordsFiltered = compat( 'iTotalDisplayRecords', 'recordsFiltered' );
|
2663 |
+
|
2664 |
+
if ( draw ) {
|
2665 |
+
// Protect against out of sequence returns
|
2666 |
+
if ( draw*1 < settings.iDraw ) {
|
2667 |
return;
|
2668 |
}
|
2669 |
+
settings.iDraw = draw * 1;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2670 |
}
|
2671 |
+
|
2672 |
+
_fnClearTable( settings );
|
2673 |
+
settings._iRecordsTotal = parseInt(recordsTotal, 10);
|
2674 |
+
settings._iRecordsDisplay = parseInt(recordsFiltered, 10);
|
2675 |
+
|
2676 |
+
var data = _fnAjaxDataSrc( settings, json );
|
2677 |
+
for ( var i=0, ien=data.length ; i<ien ; i++ ) {
|
2678 |
+
_fnAddData( settings, data[i] );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2679 |
}
|
2680 |
+
settings.aiDisplay = settings.aiDisplayMaster.slice();
|
2681 |
+
|
2682 |
+
settings.bAjaxDataGet = false;
|
2683 |
+
_fnDraw( settings );
|
2684 |
+
|
2685 |
+
if ( ! settings._bInitComplete ) {
|
2686 |
+
_fnInitComplete( settings, json );
|
2687 |
+
}
|
2688 |
+
|
2689 |
+
settings.bAjaxDataGet = true;
|
2690 |
+
_fnProcessingDisplay( settings, false );
|
2691 |
+
}
|
2692 |
+
|
2693 |
+
|
2694 |
+
/**
|
2695 |
+
* Get the data from the JSON data source to use for drawing a table. Using
|
2696 |
+
* `_fnGetObjectDataFn` allows the data to be sourced from a property of the
|
2697 |
+
* source object, or from a processing function.
|
2698 |
+
* @param {object} oSettings dataTables settings object
|
2699 |
+
* @param {object} json Data source object / array from the server
|
2700 |
+
* @return {array} Array of data to use
|
2701 |
+
*/
|
2702 |
+
function _fnAjaxDataSrc ( oSettings, json )
|
2703 |
+
{
|
2704 |
+
var dataSrc = $.isPlainObject( oSettings.ajax ) && oSettings.ajax.dataSrc !== undefined ?
|
2705 |
+
oSettings.ajax.dataSrc :
|
2706 |
+
oSettings.sAjaxDataProp; // Compatibility with 1.9-.
|
2707 |
+
|
2708 |
+
// Compatibility with 1.9-. In order to read from aaData, check if the
|
2709 |
+
// default has been changed, if not, check for aaData
|
2710 |
+
if ( dataSrc === 'data' ) {
|
2711 |
+
return json.aaData || json[dataSrc];
|
2712 |
+
}
|
2713 |
+
|
2714 |
+
return dataSrc !== "" ?
|
2715 |
+
_fnGetObjectDataFn( dataSrc )( json ) :
|
2716 |
+
json;
|
2717 |
+
}
|
2718 |
+
|
2719 |
+
|
2720 |
+
/**
|
2721 |
+
* Generate the node required for filtering text
|
2722 |
+
* @returns {node} Filter control element
|
2723 |
+
* @param {object} oSettings dataTables settings object
|
2724 |
+
* @memberof DataTable#oApi
|
2725 |
+
*/
|
2726 |
+
function _fnFeatureHtmlFilter ( settings )
|
2727 |
+
{
|
2728 |
+
var classes = settings.oClasses;
|
2729 |
+
var tableId = settings.sTableId;
|
2730 |
+
var language = settings.oLanguage;
|
2731 |
+
var previousSearch = settings.oPreviousSearch;
|
2732 |
+
var features = settings.aanFeatures;
|
2733 |
+
var input = '<input type="search" class="'+classes.sFilterInput+'"/>';
|
2734 |
+
|
2735 |
+
var str = language.sSearch;
|
2736 |
+
str = str.match(/_INPUT_/) ?
|
2737 |
+
str.replace('_INPUT_', input) :
|
2738 |
+
str+input;
|
2739 |
+
|
2740 |
+
var filter = $('<div/>', {
|
2741 |
+
'id': ! features.f ? tableId+'_filter' : null,
|
2742 |
+
'class': classes.sFilter
|
2743 |
+
} )
|
2744 |
+
.append( $('<label/>' ).append( str ) );
|
2745 |
+
|
2746 |
+
var searchFn = function() {
|
2747 |
+
/* Update all other filter input elements for the new display */
|
2748 |
+
var n = features.f;
|
2749 |
+
var val = !this.value ? "" : this.value; // mental IE8 fix :-(
|
2750 |
+
|
2751 |
+
/* Now do the filter */
|
2752 |
+
if ( val != previousSearch.sSearch ) {
|
2753 |
+
_fnFilterComplete( settings, {
|
2754 |
+
"sSearch": val,
|
2755 |
+
"bRegex": previousSearch.bRegex,
|
2756 |
+
"bSmart": previousSearch.bSmart ,
|
2757 |
+
"bCaseInsensitive": previousSearch.bCaseInsensitive
|
2758 |
+
} );
|
2759 |
+
|
2760 |
+
// Need to redraw, without resorting
|
2761 |
+
settings._iDisplayStart = 0;
|
2762 |
+
_fnDraw( settings );
|
2763 |
}
|
2764 |
+
};
|
2765 |
+
|
2766 |
+
var searchDelay = settings.searchDelay !== null ?
|
2767 |
+
settings.searchDelay :
|
2768 |
+
_fnDataSource( settings ) === 'ssp' ?
|
2769 |
+
400 :
|
2770 |
+
0;
|
2771 |
+
|
2772 |
+
var jqFilter = $('input', filter)
|
2773 |
+
.val( previousSearch.sSearch )
|
2774 |
+
.attr( 'placeholder', language.sSearchPlaceholder )
|
2775 |
+
.bind(
|
2776 |
+
'keyup.DT search.DT input.DT paste.DT cut.DT',
|
2777 |
+
searchDelay ?
|
2778 |
+
_fnThrottle( searchFn, searchDelay ) :
|
2779 |
+
searchFn
|
2780 |
+
)
|
2781 |
+
.bind( 'keypress.DT', function(e) {
|
2782 |
+
/* Prevent form submission */
|
2783 |
+
if ( e.keyCode == 13 ) {
|
2784 |
+
return false;
|
2785 |
}
|
2786 |
+
} )
|
2787 |
+
.attr('aria-controls', tableId);
|
2788 |
+
|
2789 |
+
// Update the input elements whenever the table is filtered
|
2790 |
+
$(settings.nTable).on( 'search.dt.DT', function ( ev, s ) {
|
2791 |
+
if ( settings === s ) {
|
2792 |
+
// IE9 throws an 'unknown error' if document.activeElement is used
|
2793 |
+
// inside an iframe or frame...
|
2794 |
+
try {
|
2795 |
+
if ( jqFilter[0] !== document.activeElement ) {
|
2796 |
+
jqFilter.val( previousSearch.sSearch );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2797 |
}
|
2798 |
+
}
|
2799 |
+
catch ( e ) {}
|
|
|
|
|
|
|
2800 |
}
|
2801 |
+
} );
|
2802 |
+
|
2803 |
+
return filter[0];
|
2804 |
+
}
|
2805 |
+
|
2806 |
+
|
2807 |
+
/**
|
2808 |
+
* Filter the table using both the global filter and column based filtering
|
2809 |
+
* @param {object} oSettings dataTables settings object
|
2810 |
+
* @param {object} oSearch search information
|
2811 |
+
* @param {int} [iForce] force a research of the master array (1) or not (undefined or 0)
|
2812 |
+
* @memberof DataTable#oApi
|
2813 |
+
*/
|
2814 |
+
function _fnFilterComplete ( oSettings, oInput, iForce )
|
2815 |
+
{
|
2816 |
+
var oPrevSearch = oSettings.oPreviousSearch;
|
2817 |
+
var aoPrevSearch = oSettings.aoPreSearchCols;
|
2818 |
+
var fnSaveFilter = function ( oFilter ) {
|
2819 |
+
/* Save the filtering values */
|
2820 |
+
oPrevSearch.sSearch = oFilter.sSearch;
|
2821 |
+
oPrevSearch.bRegex = oFilter.bRegex;
|
2822 |
+
oPrevSearch.bSmart = oFilter.bSmart;
|
2823 |
+
oPrevSearch.bCaseInsensitive = oFilter.bCaseInsensitive;
|
2824 |
+
};
|
2825 |
+
var fnRegex = function ( o ) {
|
2826 |
+
// Backwards compatibility with the bEscapeRegex option
|
2827 |
+
return o.bEscapeRegex !== undefined ? !o.bEscapeRegex : o.bRegex;
|
2828 |
+
};
|
2829 |
+
|
2830 |
+
// Resolve any column types that are unknown due to addition or invalidation
|
2831 |
+
// @todo As per sort - can this be moved into an event handler?
|
2832 |
+
_fnColumnTypes( oSettings );
|
2833 |
+
|
2834 |
+
/* In server-side processing all filtering is done by the server, so no point hanging around here */
|
2835 |
+
if ( _fnDataSource( oSettings ) != 'ssp' )
|
2836 |
+
{
|
2837 |
+
/* Global filter */
|
2838 |
+
_fnFilter( oSettings, oInput.sSearch, iForce, fnRegex(oInput), oInput.bSmart, oInput.bCaseInsensitive );
|
2839 |
+
fnSaveFilter( oInput );
|
2840 |
+
|
2841 |
+
/* Now do the individual column filter */
|
2842 |
+
for ( var i=0 ; i<aoPrevSearch.length ; i++ )
|
2843 |
{
|
2844 |
+
_fnFilterColumn( oSettings, aoPrevSearch[i].sSearch, i, fnRegex(aoPrevSearch[i]),
|
2845 |
+
aoPrevSearch[i].bSmart, aoPrevSearch[i].bCaseInsensitive );
|
2846 |
}
|
2847 |
+
|
2848 |
+
/* Custom filtering */
|
2849 |
+
_fnFilterCustom( oSettings );
|
2850 |
}
|
2851 |
+
else
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2852 |
{
|
2853 |
+
fnSaveFilter( oInput );
|
|
|
2854 |
}
|
2855 |
+
|
2856 |
+
/* Tell the draw function we have been filtering */
|
2857 |
+
oSettings.bFiltered = true;
|
2858 |
+
_fnCallbackFire( oSettings, null, 'search', [oSettings] );
|
2859 |
+
}
|
2860 |
+
|
2861 |
+
|
2862 |
+
/**
|
2863 |
+
* Apply custom filtering functions
|
2864 |
+
* @param {object} oSettings dataTables settings object
|
2865 |
+
* @memberof DataTable#oApi
|
2866 |
+
*/
|
2867 |
+
function _fnFilterCustom( settings )
|
2868 |
+
{
|
2869 |
+
var filters = DataTable.ext.search;
|
2870 |
+
var displayRows = settings.aiDisplay;
|
2871 |
+
var row, rowIdx;
|
2872 |
+
|
2873 |
+
for ( var i=0, ien=filters.length ; i<ien ; i++ ) {
|
2874 |
+
var rows = [];
|
2875 |
+
|
2876 |
+
// Loop over each row and see if it should be included
|
2877 |
+
for ( var j=0, jen=displayRows.length ; j<jen ; j++ ) {
|
2878 |
+
rowIdx = displayRows[ j ];
|
2879 |
+
row = settings.aoData[ rowIdx ];
|
2880 |
+
|
2881 |
+
if ( filters[i]( settings, row._aFilterData, rowIdx, row._aData, j ) ) {
|
2882 |
+
rows.push( rowIdx );
|
2883 |
+
}
|
2884 |
}
|
2885 |
+
|
2886 |
+
// So the array reference doesn't break set the results into the
|
2887 |
+
// existing array
|
2888 |
+
displayRows.length = 0;
|
2889 |
+
displayRows.push.apply( displayRows, rows );
|
2890 |
}
|
2891 |
+
}
|
2892 |
+
|
2893 |
+
|
2894 |
+
/**
|
2895 |
+
* Filter the table on a per-column basis
|
2896 |
+
* @param {object} oSettings dataTables settings object
|
2897 |
+
* @param {string} sInput string to filter on
|
2898 |
+
* @param {int} iColumn column to filter
|
2899 |
+
* @param {bool} bRegex treat search string as a regular expression or not
|
2900 |
+
* @param {bool} bSmart use smart filtering or not
|
2901 |
+
* @param {bool} bCaseInsensitive Do case insenstive matching or not
|
2902 |
+
* @memberof DataTable#oApi
|
2903 |
+
*/
|
2904 |
+
function _fnFilterColumn ( settings, searchStr, colIdx, regex, smart, caseInsensitive )
|
2905 |
+
{
|
2906 |
+
if ( searchStr === '' ) {
|
2907 |
+
return;
|
2908 |
+
}
|
2909 |
+
|
2910 |
+
var data;
|
2911 |
+
var display = settings.aiDisplay;
|
2912 |
+
var rpSearch = _fnFilterCreateSearch( searchStr, regex, smart, caseInsensitive );
|
2913 |
+
|
2914 |
+
for ( var i=display.length-1 ; i>=0 ; i-- ) {
|
2915 |
+
data = settings.aoData[ display[i] ]._aFilterData[ colIdx ];
|
2916 |
+
|
2917 |
+
if ( ! rpSearch.test( data ) ) {
|
2918 |
+
display.splice( i, 1 );
|
2919 |
}
|
2920 |
+
}
|
2921 |
+
}
|
2922 |
+
|
2923 |
+
|
2924 |
+
/**
|
2925 |
+
* Filter the data table based on user input and draw the table
|
2926 |
+
* @param {object} settings dataTables settings object
|
2927 |
+
* @param {string} input string to filter on
|
2928 |
+
* @param {int} force optional - force a research of the master array (1) or not (undefined or 0)
|
2929 |
+
* @param {bool} regex treat as a regular expression or not
|
2930 |
+
* @param {bool} smart perform smart filtering or not
|
2931 |
+
* @param {bool} caseInsensitive Do case insenstive matching or not
|
2932 |
+
* @memberof DataTable#oApi
|
2933 |
+
*/
|
2934 |
+
function _fnFilter( settings, input, force, regex, smart, caseInsensitive )
|
2935 |
+
{
|
2936 |
+
var rpSearch = _fnFilterCreateSearch( input, regex, smart, caseInsensitive );
|
2937 |
+
var prevSearch = settings.oPreviousSearch.sSearch;
|
2938 |
+
var displayMaster = settings.aiDisplayMaster;
|
2939 |
+
var display, invalidated, i;
|
2940 |
+
|
2941 |
+
// Need to take account of custom filtering functions - always filter
|
2942 |
+
if ( DataTable.ext.search.length !== 0 ) {
|
2943 |
+
force = true;
|
2944 |
+
}
|
2945 |
+
|
2946 |
+
// Check if any of the rows were invalidated
|
2947 |
+
invalidated = _fnFilterData( settings );
|
2948 |
+
|
2949 |
+
// If the input is blank - we just want the full data set
|
2950 |
+
if ( input.length <= 0 ) {
|
2951 |
+
settings.aiDisplay = displayMaster.slice();
|
2952 |
+
}
|
2953 |
+
else {
|
2954 |
+
// New search - start from the master array
|
2955 |
+
if ( invalidated ||
|
2956 |
+
force ||
|
2957 |
+
prevSearch.length > input.length ||
|
2958 |
+
input.indexOf(prevSearch) !== 0 ||
|
2959 |
+
settings.bSorted // On resort, the display master needs to be
|
2960 |
+
// re-filtered since indexes will have changed
|
2961 |
+
) {
|
2962 |
+
settings.aiDisplay = displayMaster.slice();
|
2963 |
}
|
2964 |
+
|
2965 |
+
// Search the display array
|
2966 |
+
display = settings.aiDisplay;
|
2967 |
+
|
2968 |
+
for ( i=display.length-1 ; i>=0 ; i-- ) {
|
2969 |
+
if ( ! rpSearch.test( settings.aoData[ display[i] ]._sFilterRow ) ) {
|
2970 |
+
display.splice( i, 1 );
|
2971 |
}
|
2972 |
}
|
2973 |
+
}
|
2974 |
+
}
|
2975 |
+
|
2976 |
+
|
2977 |
+
/**
|
2978 |
+
* Build a regular expression object suitable for searching a table
|
2979 |
+
* @param {string} sSearch string to search for
|
2980 |
+
* @param {bool} bRegex treat as a regular expression or not
|
2981 |
+
* @param {bool} bSmart perform smart filtering or not
|
2982 |
+
* @param {bool} bCaseInsensitive Do case insensitive matching or not
|
2983 |
+
* @returns {RegExp} constructed object
|
2984 |
+
* @memberof DataTable#oApi
|
2985 |
+
*/
|
2986 |
+
function _fnFilterCreateSearch( search, regex, smart, caseInsensitive )
|
2987 |
+
{
|
2988 |
+
search = regex ?
|
2989 |
+
search :
|
2990 |
+
_fnEscapeRegex( search );
|
2991 |
+
|
2992 |
+
if ( smart ) {
|
2993 |
+
/* For smart filtering we want to allow the search to work regardless of
|
2994 |
+
* word order. We also want double quoted text to be preserved, so word
|
2995 |
+
* order is important - a la google. So this is what we want to
|
2996 |
+
* generate:
|
2997 |
+
*
|
2998 |
+
* ^(?=.*?\bone\b)(?=.*?\btwo three\b)(?=.*?\bfour\b).*$
|
2999 |
*/
|
3000 |
+
var a = $.map( search.match( /"[^"]+"|[^ ]+/g ) || '', function ( word ) {
|
3001 |
+
if ( word.charAt(0) === '"' ) {
|
3002 |
+
var m = word.match( /^"(.*)"$/ );
|
3003 |
+
word = m ? m[1] : word;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3004 |
}
|
3005 |
+
|
3006 |
+
return word.replace('"', '');
|
3007 |
} );
|
3008 |
+
|
3009 |
+
search = '^(?=.*?'+a.join( ')(?=.*?' )+').*$';
|
|
|
|
|
|
|
3010 |
}
|
3011 |
+
|
3012 |
+
return new RegExp( search, caseInsensitive ? 'i' : '' );
|
3013 |
+
}
|
3014 |
+
|
3015 |
+
|
3016 |
+
/**
|
3017 |
+
* Escape a string such that it can be used in a regular expression
|
3018 |
+
* @param {string} sVal string to escape
|
3019 |
+
* @returns {string} escaped string
|
3020 |
+
* @memberof DataTable#oApi
|
3021 |
+
*/
|
3022 |
+
function _fnEscapeRegex ( sVal )
|
3023 |
+
{
|
3024 |
+
return sVal.replace( _re_escape_regex, '\\$1' );
|
3025 |
+
}
|
3026 |
+
|
3027 |
+
|
3028 |
+
|
3029 |
+
var __filter_div = $('<div>')[0];
|
3030 |
+
var __filter_div_textContent = __filter_div.textContent !== undefined;
|
3031 |
+
|
3032 |
+
// Update the filtering data for each row if needed (by invalidation or first run)
|
3033 |
+
function _fnFilterData ( settings )
|
3034 |
+
{
|
3035 |
+
var columns = settings.aoColumns;
|
3036 |
+
var column;
|
3037 |
+
var i, j, ien, jen, filterData, cellData, row;
|
3038 |
+
var fomatters = DataTable.ext.type.search;
|
3039 |
+
var wasInvalidated = false;
|
3040 |
+
|
3041 |
+
for ( i=0, ien=settings.aoData.length ; i<ien ; i++ ) {
|
3042 |
+
row = settings.aoData[i];
|
3043 |
+
|
3044 |
+
if ( ! row._aFilterData ) {
|
3045 |
+
filterData = [];
|
3046 |
+
|
3047 |
+
for ( j=0, jen=columns.length ; j<jen ; j++ ) {
|
3048 |
+
column = columns[j];
|
3049 |
+
|
3050 |
+
if ( column.bSearchable ) {
|
3051 |
+
cellData = _fnGetCellData( settings, i, j, 'filter' );
|
3052 |
+
|
3053 |
+
if ( fomatters[ column.sType ] ) {
|
3054 |
+
cellData = fomatters[ column.sType ]( cellData );
|
3055 |
+
}
|
3056 |
+
|
3057 |
+
// Search in DataTables 1.10 is string based. In 1.11 this
|
3058 |
+
// should be altered to also allow strict type checking.
|
3059 |
+
if ( cellData === null ) {
|
3060 |
+
cellData = '';
|
3061 |
+
}
|
3062 |
+
|
3063 |
+
if ( typeof cellData !== 'string' && cellData.toString ) {
|
3064 |
+
cellData = cellData.toString();
|
3065 |
+
}
|
3066 |
+
}
|
3067 |
+
else {
|
3068 |
+
cellData = '';
|
3069 |
+
}
|
3070 |
+
|
3071 |
+
// If it looks like there is an HTML entity in the string,
|
3072 |
+
// attempt to decode it so sorting works as expected. Note that
|
3073 |
+
// we could use a single line of jQuery to do this, but the DOM
|
3074 |
+
// method used here is much faster http://jsperf.com/html-decode
|
3075 |
+
if ( cellData.indexOf && cellData.indexOf('&') !== -1 ) {
|
3076 |
+
__filter_div.innerHTML = cellData;
|
3077 |
+
cellData = __filter_div_textContent ?
|
3078 |
+
__filter_div.textContent :
|
3079 |
+
__filter_div.innerText;
|
3080 |
+
}
|
3081 |
+
|
3082 |
+
if ( cellData.replace ) {
|
3083 |
+
cellData = cellData.replace(/[\r\n]/g, '');
|
3084 |
+
}
|
3085 |
+
|
3086 |
+
filterData.push( cellData );
|
3087 |
+
}
|
3088 |
+
|
3089 |
+
row._aFilterData = filterData;
|
3090 |
+
row._sFilterRow = filterData.join(' ');
|
3091 |
+
wasInvalidated = true;
|
3092 |
}
|
3093 |
}
|
3094 |
+
|
3095 |
+
return wasInvalidated;
|
3096 |
+
}
|
3097 |
+
|
3098 |
+
|
3099 |
+
/**
|
3100 |
+
* Convert from the internal Hungarian notation to camelCase for external
|
3101 |
+
* interaction
|
3102 |
+
* @param {object} obj Object to convert
|
3103 |
+
* @returns {object} Inverted object
|
3104 |
+
* @memberof DataTable#oApi
|
3105 |
+
*/
|
3106 |
+
function _fnSearchToCamel ( obj )
|
3107 |
+
{
|
3108 |
+
return {
|
3109 |
+
search: obj.sSearch,
|
3110 |
+
smart: obj.bSmart,
|
3111 |
+
regex: obj.bRegex,
|
3112 |
+
caseInsensitive: obj.bCaseInsensitive
|
3113 |
+
};
|
3114 |
+
}
|
3115 |
+
|
3116 |
+
|
3117 |
+
|
3118 |
+
/**
|
3119 |
+
* Convert from camelCase notation to the internal Hungarian. We could use the
|
3120 |
+
* Hungarian convert function here, but this is cleaner
|
3121 |
+
* @param {object} obj Object to convert
|
3122 |
+
* @returns {object} Inverted object
|
3123 |
+
* @memberof DataTable#oApi
|
3124 |
+
*/
|
3125 |
+
function _fnSearchToHung ( obj )
|
3126 |
+
{
|
3127 |
+
return {
|
3128 |
+
sSearch: obj.search,
|
3129 |
+
bSmart: obj.smart,
|
3130 |
+
bRegex: obj.regex,
|
3131 |
+
bCaseInsensitive: obj.caseInsensitive
|
3132 |
+
};
|
3133 |
+
}
|
3134 |
+
|
3135 |
+
/**
|
3136 |
+
* Generate the node required for the info display
|
3137 |
+
* @param {object} oSettings dataTables settings object
|
3138 |
+
* @returns {node} Information element
|
3139 |
+
* @memberof DataTable#oApi
|
3140 |
+
*/
|
3141 |
+
function _fnFeatureHtmlInfo ( settings )
|
3142 |
+
{
|
3143 |
+
var
|
3144 |
+
tid = settings.sTableId,
|
3145 |
+
nodes = settings.aanFeatures.i,
|
3146 |
+
n = $('<div/>', {
|
3147 |
+
'class': settings.oClasses.sInfo,
|
3148 |
+
'id': ! nodes ? tid+'_info' : null
|
3149 |
+
} );
|
3150 |
+
|
3151 |
+
if ( ! nodes ) {
|
3152 |
+
// Update display on each draw
|
3153 |
+
settings.aoDrawCallback.push( {
|
3154 |
+
"fn": _fnUpdateInfo,
|
3155 |
+
"sName": "information"
|
3156 |
+
} );
|
3157 |
+
|
3158 |
+
n
|
3159 |
+
.attr( 'role', 'status' )
|
3160 |
+
.attr( 'aria-live', 'polite' );
|
3161 |
+
|
3162 |
+
// Table is described by our info div
|
3163 |
+
$(settings.nTable).attr( 'aria-describedby', tid+'_info' );
|
3164 |
+
}
|
3165 |
+
|
3166 |
+
return n[0];
|
3167 |
+
}
|
3168 |
+
|
3169 |
+
|
3170 |
+
/**
|
3171 |
+
* Update the information elements in the display
|
3172 |
+
* @param {object} settings dataTables settings object
|
3173 |
+
* @memberof DataTable#oApi
|
3174 |
+
*/
|
3175 |
+
function _fnUpdateInfo ( settings )
|
3176 |
+
{
|
3177 |
+
/* Show information about the table */
|
3178 |
+
var nodes = settings.aanFeatures.i;
|
3179 |
+
if ( nodes.length === 0 ) {
|
3180 |
+
return;
|
3181 |
+
}
|
3182 |
+
|
3183 |
+
var
|
3184 |
+
lang = settings.oLanguage,
|
3185 |
+
start = settings._iDisplayStart+1,
|
3186 |
+
end = settings.fnDisplayEnd(),
|
3187 |
+
max = settings.fnRecordsTotal(),
|
3188 |
+
total = settings.fnRecordsDisplay(),
|
3189 |
+
out = total ?
|
3190 |
+
lang.sInfo :
|
3191 |
+
lang.sInfoEmpty;
|
3192 |
+
|
3193 |
+
if ( total !== max ) {
|
3194 |
+
/* Record set after filtering */
|
3195 |
+
out += ' ' + lang.sInfoFiltered;
|
3196 |
+
}
|
3197 |
+
|
3198 |
+
// Convert the macros
|
3199 |
+
out += lang.sInfoPostFix;
|
3200 |
+
out = _fnInfoMacros( settings, out );
|
3201 |
+
|
3202 |
+
var callback = lang.fnInfoCallback;
|
3203 |
+
if ( callback !== null ) {
|
3204 |
+
out = callback.call( settings.oInstance,
|
3205 |
+
settings, start, end, max, total, out
|
3206 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3207 |
}
|
3208 |
+
|
3209 |
+
$(nodes).html( out );
|
3210 |
+
}
|
3211 |
+
|
3212 |
+
|
3213 |
+
function _fnInfoMacros ( settings, str )
|
3214 |
+
{
|
3215 |
+
// When infinite scrolling, we are always starting at 1. _iDisplayStart is used only
|
3216 |
+
// internally
|
3217 |
+
var
|
3218 |
+
formatter = settings.fnFormatNumber,
|
3219 |
+
start = settings._iDisplayStart+1,
|
3220 |
+
len = settings._iDisplayLength,
|
3221 |
+
vis = settings.fnRecordsDisplay(),
|
3222 |
+
all = len === -1;
|
3223 |
+
|
3224 |
+
return str.
|
3225 |
+
replace(/_START_/g, formatter.call( settings, start ) ).
|
3226 |
+
replace(/_END_/g, formatter.call( settings, settings.fnDisplayEnd() ) ).
|
3227 |
+
replace(/_MAX_/g, formatter.call( settings, settings.fnRecordsTotal() ) ).
|
3228 |
+
replace(/_TOTAL_/g, formatter.call( settings, vis ) ).
|
3229 |
+
replace(/_PAGE_/g, formatter.call( settings, all ? 1 : Math.ceil( start / len ) ) ).
|
3230 |
+
replace(/_PAGES_/g, formatter.call( settings, all ? 1 : Math.ceil( vis / len ) ) );
|
3231 |
+
}
|
3232 |
+
|
3233 |
+
|
3234 |
+
|
3235 |
+
/**
|
3236 |
+
* Draw the table for the first time, adding all required features
|
3237 |
+
* @param {object} settings dataTables settings object
|
3238 |
+
* @memberof DataTable#oApi
|
3239 |
+
*/
|
3240 |
+
function _fnInitialise ( settings )
|
3241 |
+
{
|
3242 |
+
var i, iLen, iAjaxStart=settings.iInitDisplayStart;
|
3243 |
+
var columns = settings.aoColumns, column;
|
3244 |
+
var features = settings.oFeatures;
|
3245 |
+
|
3246 |
+
/* Ensure that the table data is fully initialised */
|
3247 |
+
if ( ! settings.bInitialised ) {
|
3248 |
+
setTimeout( function(){ _fnInitialise( settings ); }, 200 );
|
3249 |
+
return;
|
3250 |
+
}
|
3251 |
+
|
3252 |
+
/* Show the display HTML options */
|
3253 |
+
_fnAddOptionsHtml( settings );
|
3254 |
+
|
3255 |
+
/* Build and draw the header / footer for the table */
|
3256 |
+
_fnBuildHead( settings );
|
3257 |
+
_fnDrawHead( settings, settings.aoHeader );
|
3258 |
+
_fnDrawHead( settings, settings.aoFooter );
|
3259 |
+
|
3260 |
+
/* Okay to show that something is going on now */
|
3261 |
+
_fnProcessingDisplay( settings, true );
|
3262 |
+
|
3263 |
+
/* Calculate sizes for columns */
|
3264 |
+
if ( features.bAutoWidth ) {
|
3265 |
+
_fnCalculateColumnWidths( settings );
|
3266 |
+
}
|
3267 |
+
|
3268 |
+
for ( i=0, iLen=columns.length ; i<iLen ; i++ ) {
|
3269 |
+
column = columns[i];
|
3270 |
+
|
3271 |
+
if ( column.sWidth ) {
|
3272 |
+
column.nTh.style.width = _fnStringToCss( column.sWidth );
|
3273 |
}
|
3274 |
+
}
|
3275 |
+
|
3276 |
+
// If there is default sorting required - let's do it. The sort function
|
3277 |
+
// will do the drawing for us. Otherwise we draw the table regardless of the
|
3278 |
+
// Ajax source - this allows the table to look initialised for Ajax sourcing
|
3279 |
+
// data (show 'loading' message possibly)
|
3280 |
+
_fnReDraw( settings );
|
3281 |
+
|
3282 |
+
// Server-side processing init complete is done by _fnAjaxUpdateDraw
|
3283 |
+
var dataSrc = _fnDataSource( settings );
|
3284 |
+
if ( dataSrc != 'ssp' ) {
|
3285 |
+
// if there is an ajax source load the data
|
3286 |
+
if ( dataSrc == 'ajax' ) {
|
3287 |
+
_fnBuildAjax( settings, [], function(json) {
|
3288 |
+
var aData = _fnAjaxDataSrc( settings, json );
|
3289 |
+
|
3290 |
+
// Got the data - add it to the table
|
3291 |
+
for ( i=0 ; i<aData.length ; i++ ) {
|
3292 |
+
_fnAddData( settings, aData[i] );
|
3293 |
}
|
3294 |
+
|
3295 |
+
// Reset the init display for cookie saving. We've already done
|
3296 |
+
// a filter, and therefore cleared it before. So we need to make
|
3297 |
+
// it appear 'fresh'
|
3298 |
+
settings.iInitDisplayStart = iAjaxStart;
|
3299 |
+
|
3300 |
+
_fnReDraw( settings );
|
3301 |
+
|
3302 |
+
_fnProcessingDisplay( settings, false );
|
3303 |
+
_fnInitComplete( settings, json );
|
3304 |
+
}, settings );
|
3305 |
}
|
3306 |
+
else {
|
3307 |
+
_fnProcessingDisplay( settings, false );
|
3308 |
+
_fnInitComplete( settings );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3309 |
}
|
3310 |
+
}
|
3311 |
+
}
|
3312 |
+
|
3313 |
+
|
3314 |
+
/**
|
3315 |
+
* Draw the table for the first time, adding all required features
|
3316 |
+
* @param {object} oSettings dataTables settings object
|
3317 |
+
* @param {object} [json] JSON from the server that completed the table, if using Ajax source
|
3318 |
+
* with client-side processing (optional)
|
3319 |
+
* @memberof DataTable#oApi
|
3320 |
+
*/
|
3321 |
+
function _fnInitComplete ( settings, json )
|
3322 |
+
{
|
3323 |
+
settings._bInitComplete = true;
|
3324 |
+
|
3325 |
+
// On an Ajax load we now have data and therefore want to apply the column
|
3326 |
+
// sizing
|
3327 |
+
if ( json ) {
|
3328 |
+
_fnAdjustColumnSizing( settings );
|
3329 |
+
}
|
3330 |
+
|
3331 |
+
_fnCallbackFire( settings, 'aoInitComplete', 'init', [settings, json] );
|
3332 |
+
}
|
3333 |
+
|
3334 |
+
|
3335 |
+
function _fnLengthChange ( settings, val )
|
3336 |
+
{
|
3337 |
+
var len = parseInt( val, 10 );
|
3338 |
+
settings._iDisplayLength = len;
|
3339 |
+
|
3340 |
+
_fnLengthOverflow( settings );
|
3341 |
+
|
3342 |
+
// Fire length change event
|
3343 |
+
_fnCallbackFire( settings, null, 'length', [settings, len] );
|
3344 |
+
}
|
3345 |
+
|
3346 |
+
|
3347 |
+
/**
|
3348 |
+
* Generate the node required for user display length changing
|
3349 |
+
* @param {object} settings dataTables settings object
|
3350 |
+
* @returns {node} Display length feature node
|
3351 |
+
* @memberof DataTable#oApi
|
3352 |
+
*/
|
3353 |
+
function _fnFeatureHtmlLength ( settings )
|
3354 |
+
{
|
3355 |
+
var
|
3356 |
+
classes = settings.oClasses,
|
3357 |
+
tableId = settings.sTableId,
|
3358 |
+
menu = settings.aLengthMenu,
|
3359 |
+
d2 = $.isArray( menu[0] ),
|
3360 |
+
lengths = d2 ? menu[0] : menu,
|
3361 |
+
language = d2 ? menu[1] : menu;
|
3362 |
+
|
3363 |
+
var select = $('<select/>', {
|
3364 |
+
'name': tableId+'_length',
|
3365 |
+
'aria-controls': tableId,
|
3366 |
+
'class': classes.sLengthSelect
|
3367 |
+
} );
|
3368 |
+
|
3369 |
+
for ( var i=0, ien=lengths.length ; i<ien ; i++ ) {
|
3370 |
+
select[0][ i ] = new Option( language[i], lengths[i] );
|
3371 |
+
}
|
3372 |
+
|
3373 |
+
var div = $('<div><label/></div>').addClass( classes.sLength );
|
3374 |
+
if ( ! settings.aanFeatures.l ) {
|
3375 |
+
div[0].id = tableId+'_length';
|
3376 |
+
}
|
3377 |
+
|
3378 |
+
div.children().append(
|
3379 |
+
settings.oLanguage.sLengthMenu.replace( '_MENU_', select[0].outerHTML )
|
3380 |
+
);
|
3381 |
+
|
3382 |
+
// Can't use `select` variable as user might provide their own and the
|
3383 |
+
// reference is broken by the use of outerHTML
|
3384 |
+
$('select', div)
|
3385 |
+
.val( settings._iDisplayLength )
|
3386 |
+
.bind( 'change.DT', function(e) {
|
3387 |
+
_fnLengthChange( settings, $(this).val() );
|
3388 |
+
_fnDraw( settings );
|
3389 |
+
} );
|
3390 |
+
|
3391 |
+
// Update node value whenever anything changes the table's length
|
3392 |
+
$(settings.nTable).bind( 'length.dt.DT', function (e, s, len) {
|
3393 |
+
if ( settings === s ) {
|
3394 |
+
$('select', div).val( len );
|
3395 |
}
|
3396 |
+
} );
|
3397 |
+
|
3398 |
+
return div[0];
|
3399 |
+
}
|
3400 |
+
|
3401 |
+
|
3402 |
+
|
3403 |
+
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
3404 |
+
* Note that most of the paging logic is done in
|
3405 |
+
* DataTable.ext.pager
|
3406 |
+
*/
|
3407 |
+
|
3408 |
+
/**
|
3409 |
+
* Generate the node required for default pagination
|
3410 |
+
* @param {object} oSettings dataTables settings object
|
3411 |
+
* @returns {node} Pagination feature node
|
3412 |
+
* @memberof DataTable#oApi
|
3413 |
+
*/
|
3414 |
+
function _fnFeatureHtmlPaginate ( settings )
|
3415 |
+
{
|
3416 |
+
var
|
3417 |
+
type = settings.sPaginationType,
|
3418 |
+
plugin = DataTable.ext.pager[ type ],
|
3419 |
+
modern = typeof plugin === 'function',
|
3420 |
+
redraw = function( settings ) {
|
3421 |
+
_fnDraw( settings );
|
3422 |
+
},
|
3423 |
+
node = $('<div/>').addClass( settings.oClasses.sPaging + type )[0],
|
3424 |
+
features = settings.aanFeatures;
|
3425 |
+
|
3426 |
+
if ( ! modern ) {
|
3427 |
+
plugin.fnInit( settings, node, redraw );
|
3428 |
}
|
3429 |
+
|
3430 |
+
/* Add a draw callback for the pagination on first instance, to update the paging display */
|
3431 |
+
if ( ! features.p )
|
3432 |
+
{
|
3433 |
+
node.id = settings.sTableId+'_paginate';
|
3434 |
+
|
3435 |
+
settings.aoDrawCallback.push( {
|
3436 |
+
"fn": function( settings ) {
|
3437 |
+
if ( modern ) {
|
3438 |
+
var
|
3439 |
+
start = settings._iDisplayStart,
|
3440 |
+
len = settings._iDisplayLength,
|
3441 |
+
visRecords = settings.fnRecordsDisplay(),
|
3442 |
+
all = len === -1,
|
3443 |
+
page = all ? 0 : Math.ceil( start / len ),
|
3444 |
+
pages = all ? 1 : Math.ceil( visRecords / len ),
|
3445 |
+
buttons = plugin(page, pages),
|
3446 |
+
i, ien;
|
3447 |
+
|
3448 |
+
for ( i=0, ien=features.p.length ; i<ien ; i++ ) {
|
3449 |
+
_fnRenderer( settings, 'pageButton' )(
|
3450 |
+
settings, features.p[i], i, buttons, page, pages
|
3451 |
+
);
|
3452 |
+
}
|
3453 |
+
}
|
3454 |
+
else {
|
3455 |
+
plugin.fnUpdate( settings, redraw );
|
3456 |
+
}
|
3457 |
+
},
|
3458 |
+
"sName": "pagination"
|
3459 |
+
} );
|
3460 |
+
}
|
3461 |
+
|
3462 |
+
return node;
|
3463 |
+
}
|
3464 |
+
|
3465 |
+
|
3466 |
+
/**
|
3467 |
+
* Alter the display settings to change the page
|
3468 |
+
* @param {object} settings DataTables settings object
|
3469 |
+
* @param {string|int} action Paging action to take: "first", "previous",
|
3470 |
+
* "next" or "last" or page number to jump to (integer)
|
3471 |
+
* @param [bool] redraw Automatically draw the update or not
|
3472 |
+
* @returns {bool} true page has changed, false - no change
|
3473 |
+
* @memberof DataTable#oApi
|
3474 |
+
*/
|
3475 |
+
function _fnPageChange ( settings, action, redraw )
|
3476 |
+
{
|
3477 |
+
var
|
3478 |
+
start = settings._iDisplayStart,
|
3479 |
+
len = settings._iDisplayLength,
|
3480 |
+
records = settings.fnRecordsDisplay();
|
3481 |
+
|
3482 |
+
if ( records === 0 || len === -1 )
|
3483 |
{
|
3484 |
+
start = 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3485 |
}
|
3486 |
+
else if ( typeof action === "number" )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3487 |
{
|
3488 |
+
start = action * len;
|
3489 |
+
|
3490 |
+
if ( start > records )
|
3491 |
{
|
3492 |
+
start = 0;
|
|
|
|
|
|
|
|
|
3493 |
}
|
|
|
|
|
3494 |
}
|
3495 |
+
else if ( action == "first" )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3496 |
{
|
3497 |
+
start = 0;
|
3498 |
+
}
|
3499 |
+
else if ( action == "previous" )
|
3500 |
+
{
|
3501 |
+
start = len >= 0 ?
|
3502 |
+
start - len :
|
3503 |
+
0;
|
3504 |
+
|
3505 |
+
if ( start < 0 )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3506 |
{
|
3507 |
+
start = 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3508 |
}
|
3509 |
+
}
|
3510 |
+
else if ( action == "next" )
|
3511 |
+
{
|
3512 |
+
if ( start + len < records )
|
|
|
|
|
3513 |
{
|
3514 |
+
start += len;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3515 |
}
|
3516 |
+
}
|
3517 |
+
else if ( action == "last" )
|
3518 |
+
{
|
3519 |
+
start = Math.floor( (records-1) / len) * len;
|
3520 |
+
}
|
3521 |
+
else
|
3522 |
+
{
|
3523 |
+
_fnLog( settings, 0, "Unknown paging action: "+action, 5 );
|
3524 |
+
}
|
3525 |
+
|
3526 |
+
var changed = settings._iDisplayStart !== start;
|
3527 |
+
settings._iDisplayStart = start;
|
3528 |
+
|
3529 |
+
if ( changed ) {
|
3530 |
+
_fnCallbackFire( settings, null, 'page', [settings] );
|
3531 |
+
|
3532 |
+
if ( redraw ) {
|
3533 |
+
_fnDraw( settings );
|
3534 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3535 |
}
|
3536 |
+
|
3537 |
+
return changed;
|
3538 |
+
}
|
3539 |
+
|
3540 |
+
|
3541 |
+
|
3542 |
+
/**
|
3543 |
+
* Generate the node required for the processing node
|
3544 |
+
* @param {object} settings dataTables settings object
|
3545 |
+
* @returns {node} Processing element
|
3546 |
+
* @memberof DataTable#oApi
|
3547 |
+
*/
|
3548 |
+
function _fnFeatureHtmlProcessing ( settings )
|
3549 |
+
{
|
3550 |
+
return $('<div/>', {
|
3551 |
+
'id': ! settings.aanFeatures.r ? settings.sTableId+'_processing' : null,
|
3552 |
+
'class': settings.oClasses.sProcessing
|
3553 |
+
} )
|
3554 |
+
.html( settings.oLanguage.sProcessing )
|
3555 |
+
.insertBefore( settings.nTable )[0];
|
3556 |
+
}
|
3557 |
+
|
3558 |
+
|
3559 |
+
/**
|
3560 |
+
* Display or hide the processing indicator
|
3561 |
+
* @param {object} settings dataTables settings object
|
3562 |
+
* @param {bool} show Show the processing indicator (true) or not (false)
|
3563 |
+
* @memberof DataTable#oApi
|
3564 |
+
*/
|
3565 |
+
function _fnProcessingDisplay ( settings, show )
|
3566 |
+
{
|
3567 |
+
if ( settings.oFeatures.bProcessing ) {
|
3568 |
+
$(settings.aanFeatures.r).css( 'display', show ? 'block' : 'none' );
|
3569 |
+
}
|
3570 |
+
|
3571 |
+
_fnCallbackFire( settings, null, 'processing', [settings, show] );
|
3572 |
+
}
|
3573 |
+
|
3574 |
+
/**
|
3575 |
+
* Add any control elements for the table - specifically scrolling
|
3576 |
+
* @param {object} settings dataTables settings object
|
3577 |
+
* @returns {node} Node to add to the DOM
|
3578 |
+
* @memberof DataTable#oApi
|
3579 |
+
*/
|
3580 |
+
function _fnFeatureHtmlTable ( settings )
|
3581 |
+
{
|
3582 |
+
var table = $(settings.nTable);
|
3583 |
+
|
3584 |
+
// Add the ARIA grid role to the table
|
3585 |
+
table.attr( 'role', 'grid' );
|
3586 |
+
|
3587 |
+
// Scrolling from here on in
|
3588 |
+
var scroll = settings.oScroll;
|
3589 |
+
|
3590 |
+
if ( scroll.sX === '' && scroll.sY === '' ) {
|
3591 |
+
return settings.nTable;
|
3592 |
+
}
|
3593 |
+
|
3594 |
+
var scrollX = scroll.sX;
|
3595 |
+
var scrollY = scroll.sY;
|
3596 |
+
var classes = settings.oClasses;
|
3597 |
+
var caption = table.children('caption');
|
3598 |
+
var captionSide = caption.length ? caption[0]._captionSide : null;
|
3599 |
+
var headerClone = $( table[0].cloneNode(false) );
|
3600 |
+
var footerClone = $( table[0].cloneNode(false) );
|
3601 |
+
var footer = table.children('tfoot');
|
3602 |
+
var _div = '<div/>';
|
3603 |
+
var size = function ( s ) {
|
3604 |
+
return !s ? null : _fnStringToCss( s );
|
3605 |
+
};
|
3606 |
+
|
3607 |
+
// This is fairly messy, but with x scrolling enabled, if the table has a
|
3608 |
+
// width attribute, regardless of any width applied using the column width
|
3609 |
+
// options, the browser will shrink or grow the table as needed to fit into
|
3610 |
+
// that 100%. That would make the width options useless. So we remove it.
|
3611 |
+
// This is okay, under the assumption that width:100% is applied to the
|
3612 |
+
// table in CSS (it is in the default stylesheet) which will set the table
|
3613 |
+
// width as appropriate (the attribute and css behave differently...)
|
3614 |
+
if ( scroll.sX && table.attr('width') === '100%' ) {
|
3615 |
+
table.removeAttr('width');
|
3616 |
+
}
|
3617 |
+
|
3618 |
+
if ( ! footer.length ) {
|
3619 |
+
footer = null;
|
3620 |
+
}
|
3621 |
+
|
3622 |
+
/*
|
3623 |
+
* The HTML structure that we want to generate in this function is:
|
3624 |
+
* div - scroller
|
3625 |
+
* div - scroll head
|
3626 |
+
* div - scroll head inner
|
3627 |
+
* table - scroll head table
|
3628 |
+
* thead - thead
|
3629 |
+
* div - scroll body
|
3630 |
+
* table - table (master table)
|
3631 |
+
* thead - thead clone for sizing
|
3632 |
+
* tbody - tbody
|
3633 |
+
* div - scroll foot
|
3634 |
+
* div - scroll foot inner
|
3635 |
+
* table - scroll foot table
|
3636 |
+
* tfoot - tfoot
|
3637 |
+
*/
|
3638 |
+
var scroller = $( _div, { 'class': classes.sScrollWrapper } )
|
3639 |
+
.append(
|
3640 |
+
$(_div, { 'class': classes.sScrollHead } )
|
3641 |
+
.css( {
|
3642 |
+
overflow: 'hidden',
|
3643 |
+
position: 'relative',
|
3644 |
+
border: 0,
|
3645 |
+
width: scrollX ? size(scrollX) : '100%'
|
3646 |
+
} )
|
3647 |
+
.append(
|
3648 |
+
$(_div, { 'class': classes.sScrollHeadInner } )
|
3649 |
+
.css( {
|
3650 |
+
'box-sizing': 'content-box',
|
3651 |
+
width: scroll.sXInner || '100%'
|
3652 |
+
} )
|
3653 |
+
.append(
|
3654 |
+
headerClone
|
3655 |
+
.removeAttr('id')
|
3656 |
+
.css( 'margin-left', 0 )
|
3657 |
+
.append( captionSide === 'top' ? caption : null )
|
3658 |
+
.append(
|
3659 |
+
table.children('thead')
|
3660 |
+
)
|
3661 |
+
)
|
3662 |
+
)
|
3663 |
+
)
|
3664 |
+
.append(
|
3665 |
+
$(_div, { 'class': classes.sScrollBody } )
|
3666 |
+
.css( {
|
3667 |
+
overflow: 'auto',
|
3668 |
+
height: size( scrollY ),
|
3669 |
+
width: size( scrollX )
|
3670 |
+
} )
|
3671 |
+
.append( table )
|
3672 |
+
);
|
3673 |
+
|
3674 |
+
if ( footer ) {
|
3675 |
+
scroller.append(
|
3676 |
+
$(_div, { 'class': classes.sScrollFoot } )
|
3677 |
+
.css( {
|
3678 |
+
overflow: 'hidden',
|
3679 |
+
border: 0,
|
3680 |
+
width: scrollX ? size(scrollX) : '100%'
|
3681 |
+
} )
|
3682 |
+
.append(
|
3683 |
+
$(_div, { 'class': classes.sScrollFootInner } )
|
3684 |
+
.append(
|
3685 |
+
footerClone
|
3686 |
+
.removeAttr('id')
|
3687 |
+
.css( 'margin-left', 0 )
|
3688 |
+
.append( captionSide === 'bottom' ? caption : null )
|
3689 |
+
.append(
|
3690 |
+
table.children('tfoot')
|
3691 |
+
)
|
3692 |
+
)
|
3693 |
+
)
|
3694 |
+
);
|
3695 |
+
}
|
3696 |
+
|
3697 |
+
var children = scroller.children();
|
3698 |
+
var scrollHead = children[0];
|
3699 |
+
var scrollBody = children[1];
|
3700 |
+
var scrollFoot = footer ? children[2] : null;
|
3701 |
+
|
3702 |
+
// When the body is scrolled, then we also want to scroll the headers
|
3703 |
+
if ( scrollX ) {
|
3704 |
+
$(scrollBody).on( 'scroll.DT', function (e) {
|
3705 |
+
var scrollLeft = this.scrollLeft;
|
3706 |
+
|
3707 |
+
scrollHead.scrollLeft = scrollLeft;
|
3708 |
+
|
3709 |
+
if ( footer ) {
|
3710 |
+
scrollFoot.scrollLeft = scrollLeft;
|
3711 |
+
}
|
3712 |
+
} );
|
3713 |
+
}
|
3714 |
+
|
3715 |
+
settings.nScrollHead = scrollHead;
|
3716 |
+
settings.nScrollBody = scrollBody;
|
3717 |
+
settings.nScrollFoot = scrollFoot;
|
3718 |
+
|
3719 |
+
// On redraw - align columns
|
3720 |
+
settings.aoDrawCallback.push( {
|
3721 |
+
"fn": _fnScrollDraw,
|
3722 |
+
"sName": "scrolling"
|
3723 |
+
} );
|
3724 |
+
|
3725 |
+
return scroller[0];
|
3726 |
+
}
|
3727 |
+
|
3728 |
+
|
3729 |
+
|
3730 |
+
/**
|
3731 |
+
* Update the header, footer and body tables for resizing - i.e. column
|
3732 |
+
* alignment.
|
3733 |
+
*
|
3734 |
+
* Welcome to the most horrible function DataTables. The process that this
|
3735 |
+
* function follows is basically:
|
3736 |
+
* 1. Re-create the table inside the scrolling div
|
3737 |
+
* 2. Take live measurements from the DOM
|
3738 |
+
* 3. Apply the measurements to align the columns
|
3739 |
+
* 4. Clean up
|
3740 |
+
*
|
3741 |
+
* @param {object} settings dataTables settings object
|
3742 |
+
* @memberof DataTable#oApi
|
3743 |
+
*/
|
3744 |
+
function _fnScrollDraw ( settings )
|
3745 |
+
{
|
3746 |
+
// Given that this is such a monster function, a lot of variables are use
|
3747 |
+
// to try and keep the minimised size as small as possible
|
3748 |
+
var
|
3749 |
+
scroll = settings.oScroll,
|
3750 |
+
scrollX = scroll.sX,
|
3751 |
+
scrollXInner = scroll.sXInner,
|
3752 |
+
scrollY = scroll.sY,
|
3753 |
+
barWidth = scroll.iBarWidth,
|
3754 |
+
divHeader = $(settings.nScrollHead),
|
3755 |
+
divHeaderStyle = divHeader[0].style,
|
3756 |
+
divHeaderInner = divHeader.children('div'),
|
3757 |
+
divHeaderInnerStyle = divHeaderInner[0].style,
|
3758 |
+
divHeaderTable = divHeaderInner.children('table'),
|
3759 |
+
divBodyEl = settings.nScrollBody,
|
3760 |
+
divBody = $(divBodyEl),
|
3761 |
+
divBodyStyle = divBodyEl.style,
|
3762 |
+
divFooter = $(settings.nScrollFoot),
|
3763 |
+
divFooterInner = divFooter.children('div'),
|
3764 |
+
divFooterTable = divFooterInner.children('table'),
|
3765 |
+
header = $(settings.nTHead),
|
3766 |
+
table = $(settings.nTable),
|
3767 |
+
tableEl = table[0],
|
3768 |
+
tableStyle = tableEl.style,
|
3769 |
+
footer = settings.nTFoot ? $(settings.nTFoot) : null,
|
3770 |
+
browser = settings.oBrowser,
|
3771 |
+
ie67 = browser.bScrollOversize,
|
3772 |
+
headerTrgEls, footerTrgEls,
|
3773 |
+
headerSrcEls, footerSrcEls,
|
3774 |
+
headerCopy, footerCopy,
|
3775 |
+
headerWidths=[], footerWidths=[],
|
3776 |
+
headerContent=[],
|
3777 |
+
idx, correction, sanityWidth,
|
3778 |
+
zeroOut = function(nSizer) {
|
3779 |
+
var style = nSizer.style;
|
3780 |
+
style.paddingTop = "0";
|
3781 |
+
style.paddingBottom = "0";
|
3782 |
+
style.borderTopWidth = "0";
|
3783 |
+
style.borderBottomWidth = "0";
|
3784 |
+
style.height = 0;
|
3785 |
+
};
|
3786 |
+
|
3787 |
+
/*
|
3788 |
+
* 1. Re-create the table inside the scrolling div
|
3789 |
+
*/
|
3790 |
+
|
3791 |
+
// Remove the old minimised thead and tfoot elements in the inner table
|
3792 |
+
table.children('thead, tfoot').remove();
|
3793 |
+
|
3794 |
+
// Clone the current header and footer elements and then place it into the inner table
|
3795 |
+
headerCopy = header.clone().prependTo( table );
|
3796 |
+
headerTrgEls = header.find('tr'); // original header is in its own table
|
3797 |
+
headerSrcEls = headerCopy.find('tr');
|
3798 |
+
headerCopy.find('th, td').removeAttr('tabindex');
|
3799 |
+
|
3800 |
+
if ( footer ) {
|
3801 |
+
footerCopy = footer.clone().prependTo( table );
|
3802 |
+
footerTrgEls = footer.find('tr'); // the original tfoot is in its own table and must be sized
|
3803 |
+
footerSrcEls = footerCopy.find('tr');
|
3804 |
+
}
|
3805 |
+
|
3806 |
+
|
3807 |
+
/*
|
3808 |
+
* 2. Take live measurements from the DOM - do not alter the DOM itself!
|
3809 |
+
*/
|
3810 |
+
|
3811 |
+
// Remove old sizing and apply the calculated column widths
|
3812 |
+
// Get the unique column headers in the newly created (cloned) header. We want to apply the
|
3813 |
+
// calculated sizes to this header
|
3814 |
+
if ( ! scrollX )
|
3815 |
{
|
3816 |
+
divBodyStyle.width = '100%';
|
3817 |
+
divHeader[0].style.width = '100%';
|
3818 |
+
}
|
3819 |
+
|
3820 |
+
$.each( _fnGetUniqueThs( settings, headerCopy ), function ( i, el ) {
|
3821 |
+
idx = _fnVisibleToColumnIndex( settings, i );
|
3822 |
+
el.style.width = settings.aoColumns[idx].sWidth;
|
3823 |
+
} );
|
3824 |
+
|
3825 |
+
if ( footer ) {
|
3826 |
+
_fnApplyToChildren( function(n) {
|
3827 |
+
n.style.width = "";
|
3828 |
+
}, footerSrcEls );
|
3829 |
+
}
|
3830 |
+
|
3831 |
+
// If scroll collapse is enabled, when we put the headers back into the body for sizing, we
|
3832 |
+
// will end up forcing the scrollbar to appear, making our measurements wrong for when we
|
3833 |
+
// then hide it (end of this function), so add the header height to the body scroller.
|
3834 |
+
if ( scroll.bCollapse && scrollY !== "" ) {
|
3835 |
+
divBodyStyle.height = (divBody[0].offsetHeight + header[0].offsetHeight)+"px";
|
3836 |
+
}
|
3837 |
+
|
3838 |
+
// Size the table as a whole
|
3839 |
+
sanityWidth = table.outerWidth();
|
3840 |
+
if ( scrollX === "" ) {
|
3841 |
+
// No x scrolling
|
3842 |
+
tableStyle.width = "100%";
|
3843 |
+
|
3844 |
+
// IE7 will make the width of the table when 100% include the scrollbar
|
3845 |
+
// - which is shouldn't. When there is a scrollbar we need to take this
|
3846 |
+
// into account.
|
3847 |
+
if ( ie67 && (table.find('tbody').height() > divBodyEl.offsetHeight ||
|
3848 |
+
divBody.css('overflow-y') == "scroll")
|
3849 |
+
) {
|
3850 |
+
tableStyle.width = _fnStringToCss( table.outerWidth() - barWidth);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3851 |
}
|
3852 |
+
}
|
3853 |
+
else
|
3854 |
+
{
|
3855 |
+
// x scrolling
|
3856 |
+
if ( scrollXInner !== "" ) {
|
3857 |
+
// x scroll inner has been given - use it
|
3858 |
+
tableStyle.width = _fnStringToCss(scrollXInner);
|
3859 |
}
|
3860 |
+
else if ( sanityWidth == divBody.width() && divBody.height() < table.height() ) {
|
3861 |
+
// There is y-scrolling - try to take account of the y scroll bar
|
3862 |
+
tableStyle.width = _fnStringToCss( sanityWidth-barWidth );
|
3863 |
+
if ( table.outerWidth() > sanityWidth-barWidth ) {
|
3864 |
+
// Not possible to take account of it
|
3865 |
+
tableStyle.width = _fnStringToCss( sanityWidth );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3866 |
}
|
3867 |
}
|
3868 |
+
else {
|
3869 |
+
// When all else fails
|
3870 |
+
tableStyle.width = _fnStringToCss( sanityWidth );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3871 |
}
|
3872 |
+
}
|
3873 |
+
|
3874 |
+
// Recalculate the sanity width - now that we've applied the required width,
|
3875 |
+
// before it was a temporary variable. This is required because the column
|
3876 |
+
// width calculation is done before this table DOM is created.
|
3877 |
+
sanityWidth = table.outerWidth();
|
3878 |
+
|
3879 |
+
// Hidden header should have zero height, so remove padding and borders. Then
|
3880 |
+
// set the width based on the real headers
|
3881 |
+
|
3882 |
+
// Apply all styles in one pass
|
3883 |
+
_fnApplyToChildren( zeroOut, headerSrcEls );
|
3884 |
+
|
3885 |
+
// Read all widths in next pass
|
3886 |
+
_fnApplyToChildren( function(nSizer) {
|
3887 |
+
headerContent.push( nSizer.innerHTML );
|
3888 |
+
headerWidths.push( _fnStringToCss( $(nSizer).css('width') ) );
|
3889 |
+
}, headerSrcEls );
|
3890 |
+
|
3891 |
+
// Apply all widths in final pass
|
3892 |
+
_fnApplyToChildren( function(nToSize, i) {
|
3893 |
+
nToSize.style.width = headerWidths[i];
|
3894 |
+
}, headerTrgEls );
|
3895 |
+
|
3896 |
+
$(headerSrcEls).height(0);
|
3897 |
+
|
3898 |
+
/* Same again with the footer if we have one */
|
3899 |
+
if ( footer )
|
3900 |
+
{
|
3901 |
+
_fnApplyToChildren( zeroOut, footerSrcEls );
|
3902 |
+
|
3903 |
_fnApplyToChildren( function(nSizer) {
|
3904 |
+
footerWidths.push( _fnStringToCss( $(nSizer).css('width') ) );
|
3905 |
+
}, footerSrcEls );
|
3906 |
+
|
|
|
|
|
3907 |
_fnApplyToChildren( function(nToSize, i) {
|
3908 |
+
nToSize.style.width = footerWidths[i];
|
3909 |
+
}, footerTrgEls );
|
3910 |
+
|
3911 |
+
$(footerSrcEls).height(0);
|
3912 |
+
}
|
3913 |
+
|
3914 |
+
|
3915 |
+
/*
|
3916 |
+
* 3. Apply the measurements
|
3917 |
+
*/
|
3918 |
+
|
3919 |
+
// "Hide" the header and footer that we used for the sizing. We need to keep
|
3920 |
+
// the content of the cell so that the width applied to the header and body
|
3921 |
+
// both match, but we want to hide it completely. We want to also fix their
|
3922 |
+
// width to what they currently are
|
3923 |
+
_fnApplyToChildren( function(nSizer, i) {
|
3924 |
+
nSizer.innerHTML = '<div class="dataTables_sizing" style="height:0;overflow:hidden;">'+headerContent[i]+'</div>';
|
3925 |
+
nSizer.style.width = headerWidths[i];
|
3926 |
+
}, headerSrcEls );
|
3927 |
+
|
3928 |
+
if ( footer )
|
3929 |
+
{
|
|
|
|
|
|
|
|
|
|
|
|
|
3930 |
_fnApplyToChildren( function(nSizer, i) {
|
3931 |
nSizer.innerHTML = "";
|
3932 |
+
nSizer.style.width = footerWidths[i];
|
3933 |
+
}, footerSrcEls );
|
3934 |
+
}
|
3935 |
+
|
3936 |
+
// Sanity check that the table is of a sensible width. If not then we are going to get
|
3937 |
+
// misalignment - try to prevent this by not allowing the table to shrink below its min width
|
3938 |
+
if ( table.outerWidth() < sanityWidth )
|
3939 |
+
{
|
3940 |
+
// The min width depends upon if we have a vertical scrollbar visible or not */
|
3941 |
+
correction = ((divBodyEl.scrollHeight > divBodyEl.offsetHeight ||
|
3942 |
+
divBody.css('overflow-y') == "scroll")) ?
|
3943 |
+
sanityWidth+barWidth :
|
3944 |
+
sanityWidth;
|
3945 |
+
|
3946 |
+
// IE6/7 are a law unto themselves...
|
3947 |
+
if ( ie67 && (divBodyEl.scrollHeight >
|
3948 |
+
divBodyEl.offsetHeight || divBody.css('overflow-y') == "scroll")
|
3949 |
+
) {
|
3950 |
+
tableStyle.width = _fnStringToCss( correction-barWidth );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3951 |
}
|
3952 |
+
|
3953 |
+
// And give the user a warning that we've stopped the table getting too small
|
3954 |
+
if ( scrollX === "" || scrollXInner !== "" ) {
|
3955 |
+
_fnLog( settings, 1, 'Possible column misalignment', 6 );
|
|
|
|
|
|
|
|
|
3956 |
}
|
3957 |
}
|
3958 |
+
else
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3959 |
{
|
3960 |
+
correction = '100%';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3961 |
}
|
3962 |
+
|
3963 |
+
// Apply to the container elements
|
3964 |
+
divBodyStyle.width = _fnStringToCss( correction );
|
3965 |
+
divHeaderStyle.width = _fnStringToCss( correction );
|
3966 |
+
|
3967 |
+
if ( footer ) {
|
3968 |
+
settings.nScrollFoot.style.width = _fnStringToCss( correction );
|
3969 |
+
}
|
3970 |
+
|
3971 |
+
|
3972 |
+
/*
|
3973 |
+
* 4. Clean up
|
3974 |
*/
|
3975 |
+
if ( ! scrollY ) {
|
3976 |
+
/* IE7< puts a vertical scrollbar in place (when it shouldn't be) due to subtracting
|
3977 |
+
* the scrollbar height from the visible display, rather than adding it on. We need to
|
3978 |
+
* set the height in order to sort this. Don't want to do it in any other browsers.
|
3979 |
+
*/
|
3980 |
+
if ( ie67 ) {
|
3981 |
+
divBodyStyle.height = _fnStringToCss( tableEl.offsetHeight+barWidth );
|
3982 |
}
|
3983 |
+
}
|
3984 |
+
|
3985 |
+
if ( scrollY && scroll.bCollapse ) {
|
3986 |
+
divBodyStyle.height = _fnStringToCss( scrollY );
|
3987 |
+
|
3988 |
+
var iExtra = (scrollX && tableEl.offsetWidth > divBodyEl.offsetWidth) ?
|
3989 |
+
barWidth :
|
3990 |
+
0;
|
3991 |
+
|
3992 |
+
if ( tableEl.offsetHeight < divBodyEl.offsetHeight ) {
|
3993 |
+
divBodyStyle.height = _fnStringToCss( tableEl.offsetHeight+iExtra );
|
3994 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3995 |
}
|
3996 |
+
|
3997 |
+
/* Finally set the width's of the header and footer tables */
|
3998 |
+
var iOuterWidth = table.outerWidth();
|
3999 |
+
divHeaderTable[0].style.width = _fnStringToCss( iOuterWidth );
|
4000 |
+
divHeaderInnerStyle.width = _fnStringToCss( iOuterWidth );
|
4001 |
+
|
4002 |
+
// Figure out if there are scrollbar present - if so then we need a the header and footer to
|
4003 |
+
// provide a bit more space to allow "overflow" scrolling (i.e. past the scrollbar)
|
4004 |
+
var bScrolling = table.height() > divBodyEl.clientHeight || divBody.css('overflow-y') == "scroll";
|
4005 |
+
var padding = 'padding' + (browser.bScrollbarLeft ? 'Left' : 'Right' );
|
4006 |
+
divHeaderInnerStyle[ padding ] = bScrolling ? barWidth+"px" : "0px";
|
4007 |
+
|
4008 |
+
if ( footer ) {
|
4009 |
+
divFooterTable[0].style.width = _fnStringToCss( iOuterWidth );
|
4010 |
+
divFooterInner[0].style.width = _fnStringToCss( iOuterWidth );
|
4011 |
+
divFooterInner[0].style[padding] = bScrolling ? barWidth+"px" : "0px";
|
4012 |
+
}
|
4013 |
+
|
4014 |
+
/* Adjust the position of the header in case we loose the y-scrollbar */
|
4015 |
+
divBody.scroll();
|
4016 |
+
|
4017 |
+
// If sorting or filtering has occurred, jump the scrolling back to the top
|
4018 |
+
// only if we aren't holding the position
|
4019 |
+
if ( (settings.bSorted || settings.bFiltered) && ! settings._drawHold ) {
|
4020 |
+
divBodyEl.scrollTop = 0;
|
4021 |
+
}
|
4022 |
+
}
|
4023 |
+
|
4024 |
+
|
4025 |
+
|
4026 |
+
/**
|
4027 |
+
* Apply a given function to the display child nodes of an element array (typically
|
4028 |
+
* TD children of TR rows
|
4029 |
+
* @param {function} fn Method to apply to the objects
|
4030 |
+
* @param array {nodes} an1 List of elements to look through for display children
|
4031 |
+
* @param array {nodes} an2 Another list (identical structure to the first) - optional
|
4032 |
+
* @memberof DataTable#oApi
|
4033 |
+
*/
|
4034 |
+
function _fnApplyToChildren( fn, an1, an2 )
|
4035 |
+
{
|
4036 |
+
var index=0, i=0, iLen=an1.length;
|
4037 |
+
var nNode1, nNode2;
|
4038 |
+
|
4039 |
+
while ( i < iLen ) {
|
4040 |
+
nNode1 = an1[i].firstChild;
|
4041 |
+
nNode2 = an2 ? an2[i].firstChild : null;
|
4042 |
+
|
4043 |
+
while ( nNode1 ) {
|
4044 |
+
if ( nNode1.nodeType === 1 ) {
|
4045 |
+
if ( an2 ) {
|
4046 |
+
fn( nNode1, nNode2, index );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4047 |
}
|
4048 |
+
else {
|
4049 |
+
fn( nNode1, index );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4050 |
}
|
4051 |
+
|
4052 |
+
index++;
|
4053 |
}
|
4054 |
+
|
4055 |
+
nNode1 = nNode1.nextSibling;
|
4056 |
+
nNode2 = an2 ? nNode2.nextSibling : null;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4057 |
}
|
4058 |
+
|
4059 |
+
i++;
|
4060 |
}
|
4061 |
+
}
|
4062 |
+
|
4063 |
+
|
4064 |
+
|
4065 |
+
var __re_html_remove = /<.*?>/g;
|
4066 |
+
|
4067 |
+
|
4068 |
+
/**
|
4069 |
+
* Calculate the width of columns for the table
|
4070 |
+
* @param {object} oSettings dataTables settings object
|
4071 |
+
* @memberof DataTable#oApi
|
4072 |
+
*/
|
4073 |
+
function _fnCalculateColumnWidths ( oSettings )
|
4074 |
+
{
|
4075 |
+
var
|
4076 |
+
table = oSettings.nTable,
|
4077 |
+
columns = oSettings.aoColumns,
|
4078 |
+
scroll = oSettings.oScroll,
|
4079 |
+
scrollY = scroll.sY,
|
4080 |
+
scrollX = scroll.sX,
|
4081 |
+
scrollXInner = scroll.sXInner,
|
4082 |
+
columnCount = columns.length,
|
4083 |
+
visibleColumns = _fnGetColumns( oSettings, 'bVisible' ),
|
4084 |
+
headerCells = $('th', oSettings.nTHead),
|
4085 |
+
tableWidthAttr = table.style.width || table.getAttribute('width'), // from DOM element
|
4086 |
+
tableContainer = table.parentNode,
|
4087 |
+
userInputs = false,
|
4088 |
+
i, column, columnIdx, width, outerWidth;
|
4089 |
+
|
4090 |
+
/* Convert any user input sizes into pixel sizes */
|
4091 |
+
for ( i=0 ; i<visibleColumns.length ; i++ ) {
|
4092 |
+
column = columns[ visibleColumns[i] ];
|
4093 |
+
|
4094 |
+
if ( column.sWidth !== null ) {
|
4095 |
+
column.sWidth = _fnConvertToWidth( column.sWidthOrig, tableContainer );
|
4096 |
+
|
4097 |
+
userInputs = true;
|
4098 |
}
|
4099 |
}
|
4100 |
+
|
4101 |
+
/* If the number of columns in the DOM equals the number that we have to
|
4102 |
+
* process in DataTables, then we can use the offsets that are created by
|
4103 |
+
* the web- browser. No custom sizes can be set in order for this to happen,
|
4104 |
+
* nor scrolling used
|
|
|
|
|
|
|
4105 |
*/
|
4106 |
+
if ( ! userInputs && ! scrollX && ! scrollY &&
|
4107 |
+
columnCount == _fnVisbleColumns( oSettings ) &&
|
4108 |
+
columnCount == headerCells.length
|
4109 |
+
) {
|
4110 |
+
for ( i=0 ; i<columnCount ; i++ ) {
|
4111 |
+
columns[i].sWidth = _fnStringToCss( headerCells.eq(i).width() );
|
4112 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4113 |
}
|
4114 |
+
else
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4115 |
{
|
4116 |
+
// Otherwise construct a single row table with the widest node in the
|
4117 |
+
// data, assign any user defined widths, then insert it into the DOM and
|
4118 |
+
// allow the browser to do all the hard work of calculating table widths
|
4119 |
+
var tmpTable = $(table).clone() // don't use cloneNode - IE8 will remove events on the main table
|
4120 |
+
.empty()
|
4121 |
+
.css( 'visibility', 'hidden' )
|
4122 |
+
.removeAttr( 'id' )
|
4123 |
+
.append( $(oSettings.nTHead).clone( false ) )
|
4124 |
+
.append( $(oSettings.nTFoot).clone( false ) )
|
4125 |
+
.append( $('<tbody><tr/></tbody>') );
|
4126 |
+
|
4127 |
+
// Remove any assigned widths from the footer (from scrolling)
|
4128 |
+
tmpTable.find('tfoot th, tfoot td').css('width', '');
|
4129 |
+
|
4130 |
+
var tr = tmpTable.find( 'tbody tr' );
|
4131 |
+
|
4132 |
+
// Apply custom sizing to the cloned header
|
4133 |
+
headerCells = _fnGetUniqueThs( oSettings, tmpTable.find('thead')[0] );
|
4134 |
+
|
4135 |
+
for ( i=0 ; i<visibleColumns.length ; i++ ) {
|
4136 |
+
column = columns[ visibleColumns[i] ];
|
4137 |
+
|
4138 |
+
headerCells[i].style.width = column.sWidthOrig !== null && column.sWidthOrig !== '' ?
|
4139 |
+
_fnStringToCss( column.sWidthOrig ) :
|
4140 |
+
'';
|
4141 |
+
}
|
4142 |
+
|
4143 |
+
// Find the widest cell for each column and put it into the table
|
4144 |
+
if ( oSettings.aoData.length ) {
|
4145 |
+
for ( i=0 ; i<visibleColumns.length ; i++ ) {
|
4146 |
+
columnIdx = visibleColumns[i];
|
4147 |
+
column = columns[ columnIdx ];
|
4148 |
+
|
4149 |
+
$( _fnGetWidestNode( oSettings, columnIdx ) )
|
4150 |
+
.clone( false )
|
4151 |
+
.append( column.sContentPadding )
|
4152 |
+
.appendTo( tr );
|
4153 |
}
|
4154 |
}
|
4155 |
+
|
4156 |
+
// Table has been built, attach to the document so we can work with it
|
4157 |
+
tmpTable.appendTo( tableContainer );
|
4158 |
+
|
4159 |
+
// When scrolling (X or Y) we want to set the width of the table as
|
4160 |
+
// appropriate. However, when not scrolling leave the table width as it
|
4161 |
+
// is. This results in slightly different, but I think correct behaviour
|
4162 |
+
if ( scrollX && scrollXInner ) {
|
4163 |
+
tmpTable.width( scrollXInner );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4164 |
}
|
4165 |
+
else if ( scrollX ) {
|
4166 |
+
tmpTable.css( 'width', 'auto' );
|
4167 |
+
|
4168 |
+
if ( tmpTable.width() < tableContainer.offsetWidth ) {
|
4169 |
+
tmpTable.width( tableContainer.offsetWidth );
|
|
|
4170 |
}
|
|
|
4171 |
}
|
4172 |
+
else if ( scrollY ) {
|
4173 |
+
tmpTable.width( tableContainer.offsetWidth );
|
|
|
|
|
|
|
|
|
4174 |
}
|
4175 |
+
else if ( tableWidthAttr ) {
|
4176 |
+
tmpTable.width( tableWidthAttr );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4177 |
}
|
4178 |
+
|
4179 |
+
// Take into account the y scrollbar
|
4180 |
+
_fnScrollingWidthAdjust( oSettings, tmpTable[0] );
|
4181 |
+
|
4182 |
+
// Browsers need a bit of a hand when a width is assigned to any columns
|
4183 |
+
// when x-scrolling as they tend to collapse the table to the min-width,
|
4184 |
+
// even if we sent the column widths. So we need to keep track of what
|
4185 |
+
// the table width should be by summing the user given values, and the
|
4186 |
+
// automatic values
|
4187 |
+
if ( scrollX )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4188 |
{
|
4189 |
+
var total = 0;
|
4190 |
+
|
4191 |
+
for ( i=0 ; i<visibleColumns.length ; i++ ) {
|
4192 |
+
column = columns[ visibleColumns[i] ];
|
4193 |
+
outerWidth = $(headerCells[i]).outerWidth();
|
4194 |
+
|
4195 |
+
total += column.sWidthOrig === null ?
|
4196 |
+
outerWidth :
|
4197 |
+
parseInt( column.sWidth, 10 ) + outerWidth - $(headerCells[i]).width();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4198 |
}
|
4199 |
+
|
4200 |
+
tmpTable.width( _fnStringToCss( total ) );
|
4201 |
+
table.style.width = _fnStringToCss( total );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4202 |
}
|
4203 |
+
|
4204 |
+
// Get the width of each column in the constructed table
|
4205 |
+
for ( i=0 ; i<visibleColumns.length ; i++ ) {
|
4206 |
+
column = columns[ visibleColumns[i] ];
|
4207 |
+
width = $(headerCells[i]).width();
|
4208 |
+
|
4209 |
+
if ( width ) {
|
4210 |
+
column.sWidth = _fnStringToCss( width );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4211 |
}
|
4212 |
}
|
4213 |
+
|
4214 |
+
table.style.width = _fnStringToCss( tmpTable.css('width') );
|
4215 |
+
|
4216 |
+
// Finished with the table - ditch it
|
4217 |
+
tmpTable.remove();
|
4218 |
+
}
|
4219 |
+
|
4220 |
+
// If there is a width attr, we want to attach an event listener which
|
4221 |
+
// allows the table sizing to automatically adjust when the window is
|
4222 |
+
// resized. Use the width attr rather than CSS, since we can't know if the
|
4223 |
+
// CSS is a relative value or absolute - DOM read is always px.
|
4224 |
+
if ( tableWidthAttr ) {
|
4225 |
+
table.style.width = _fnStringToCss( tableWidthAttr );
|
4226 |
+
}
|
4227 |
+
|
4228 |
+
if ( (tableWidthAttr || scrollX) && ! oSettings._reszEvt ) {
|
4229 |
+
$(window).bind('resize.DT-'+oSettings.sInstance, _fnThrottle( function () {
|
4230 |
+
_fnAdjustColumnSizing( oSettings );
|
4231 |
+
} ) );
|
4232 |
+
|
4233 |
+
oSettings._reszEvt = true;
|
4234 |
+
}
|
4235 |
+
}
|
4236 |
+
|
4237 |
+
|
4238 |
+
/**
|
4239 |
+
* Throttle the calls to a function. Arguments and context are maintained for
|
4240 |
+
* the throttled function
|
4241 |
+
* @param {function} fn Function to be called
|
4242 |
+
* @param {int} [freq=200] call frequency in mS
|
4243 |
+
* @returns {function} wrapped function
|
4244 |
+
* @memberof DataTable#oApi
|
4245 |
+
*/
|
4246 |
+
function _fnThrottle( fn, freq ) {
|
4247 |
+
var
|
4248 |
+
frequency = freq !== undefined ? freq : 200,
|
4249 |
+
last,
|
4250 |
+
timer;
|
4251 |
+
|
4252 |
+
return function () {
|
4253 |
+
var
|
4254 |
+
that = this,
|
4255 |
+
now = +new Date(),
|
4256 |
+
args = arguments;
|
4257 |
+
|
4258 |
+
if ( last && now < last + frequency ) {
|
4259 |
+
clearTimeout( timer );
|
4260 |
+
|
4261 |
+
timer = setTimeout( function () {
|
4262 |
+
last = undefined;
|
4263 |
+
fn.apply( that, args );
|
4264 |
+
}, frequency );
|
4265 |
}
|
4266 |
+
else {
|
4267 |
+
last = now;
|
4268 |
+
fn.apply( that, args );
|
|
|
|
|
|
|
4269 |
}
|
4270 |
+
};
|
4271 |
+
}
|
4272 |
+
|
4273 |
+
|
4274 |
+
/**
|
4275 |
+
* Convert a CSS unit width to pixels (e.g. 2em)
|
4276 |
+
* @param {string} width width to be converted
|
4277 |
+
* @param {node} parent parent to get the with for (required for relative widths) - optional
|
4278 |
+
* @returns {int} width in pixels
|
4279 |
+
* @memberof DataTable#oApi
|
4280 |
+
*/
|
4281 |
+
function _fnConvertToWidth ( width, parent )
|
4282 |
+
{
|
4283 |
+
if ( ! width ) {
|
4284 |
+
return 0;
|
4285 |
+
}
|
4286 |
+
|
4287 |
+
var n = $('<div/>')
|
4288 |
+
.css( 'width', _fnStringToCss( width ) )
|
4289 |
+
.appendTo( parent || document.body );
|
4290 |
+
|
4291 |
+
var val = n[0].offsetWidth;
|
4292 |
+
n.remove();
|
4293 |
+
|
4294 |
+
return val;
|
4295 |
+
}
|
4296 |
+
|
4297 |
+
|
4298 |
+
/**
|
4299 |
+
* Adjust a table's width to take account of vertical scroll bar
|
4300 |
+
* @param {object} oSettings dataTables settings object
|
4301 |
+
* @param {node} n table node
|
4302 |
+
* @memberof DataTable#oApi
|
4303 |
+
*/
|
4304 |
+
|
4305 |
+
function _fnScrollingWidthAdjust ( settings, n )
|
4306 |
+
{
|
4307 |
+
var scroll = settings.oScroll;
|
4308 |
+
|
4309 |
+
if ( scroll.sX || scroll.sY ) {
|
4310 |
+
// When y-scrolling only, we want to remove the width of the scroll bar
|
4311 |
+
// so the table + scroll bar will fit into the area available, otherwise
|
4312 |
+
// we fix the table at its current size with no adjustment
|
4313 |
+
var correction = ! scroll.sX ? scroll.iBarWidth : 0;
|
4314 |
+
n.style.width = _fnStringToCss( $(n).outerWidth() - correction );
|
4315 |
+
}
|
4316 |
+
}
|
4317 |
+
|
4318 |
+
|
4319 |
+
/**
|
4320 |
+
* Get the widest node
|
4321 |
+
* @param {object} settings dataTables settings object
|
4322 |
+
* @param {int} colIdx column of interest
|
4323 |
+
* @returns {node} widest table node
|
4324 |
+
* @memberof DataTable#oApi
|
4325 |
+
*/
|
4326 |
+
function _fnGetWidestNode( settings, colIdx )
|
4327 |
+
{
|
4328 |
+
var idx = _fnGetMaxLenString( settings, colIdx );
|
4329 |
+
if ( idx < 0 ) {
|
4330 |
+
return null;
|
4331 |
+
}
|
4332 |
+
|
4333 |
+
var data = settings.aoData[ idx ];
|
4334 |
+
return ! data.nTr ? // Might not have been created when deferred rendering
|
4335 |
+
$('<td/>').html( _fnGetCellData( settings, idx, colIdx, 'display' ) )[0] :
|
4336 |
+
data.anCells[ colIdx ];
|
4337 |
+
}
|
4338 |
+
|
4339 |
+
|
4340 |
+
/**
|
4341 |
+
* Get the maximum strlen for each data column
|
4342 |
+
* @param {object} settings dataTables settings object
|
4343 |
+
* @param {int} colIdx column of interest
|
4344 |
+
* @returns {string} max string length for each column
|
4345 |
+
* @memberof DataTable#oApi
|
4346 |
+
*/
|
4347 |
+
function _fnGetMaxLenString( settings, colIdx )
|
4348 |
+
{
|
4349 |
+
var s, max=-1, maxIdx = -1;
|
4350 |
+
|
4351 |
+
for ( var i=0, ien=settings.aoData.length ; i<ien ; i++ ) {
|
4352 |
+
s = _fnGetCellData( settings, i, colIdx, 'display' )+'';
|
4353 |
+
s = s.replace( __re_html_remove, '' );
|
4354 |
+
|
4355 |
+
if ( s.length > max ) {
|
4356 |
+
max = s.length;
|
4357 |
+
maxIdx = i;
|
4358 |
+
}
|
4359 |
+
}
|
4360 |
+
|
4361 |
+
return maxIdx;
|
4362 |
+
}
|
4363 |
+
|
4364 |
+
|
4365 |
+
/**
|
4366 |
+
* Append a CSS unit (only if required) to a string
|
4367 |
+
* @param {string} value to css-ify
|
4368 |
+
* @returns {string} value with css unit
|
4369 |
+
* @memberof DataTable#oApi
|
4370 |
+
*/
|
4371 |
+
function _fnStringToCss( s )
|
4372 |
+
{
|
4373 |
+
if ( s === null ) {
|
4374 |
+
return '0px';
|
4375 |
+
}
|
4376 |
+
|
4377 |
+
if ( typeof s == 'number' ) {
|
4378 |
+
return s < 0 ?
|
4379 |
+
'0px' :
|
4380 |
+
s+'px';
|
4381 |
+
}
|
4382 |
+
|
4383 |
+
// Check it has a unit character already
|
4384 |
+
return s.match(/\d$/) ?
|
4385 |
+
s+'px' :
|
4386 |
+
s;
|
4387 |
+
}
|
4388 |
+
|
4389 |
+
|
4390 |
+
/**
|
4391 |
+
* Get the width of a scroll bar in this browser being used
|
4392 |
+
* @returns {int} width in pixels
|
4393 |
+
* @memberof DataTable#oApi
|
4394 |
+
*/
|
4395 |
+
function _fnScrollBarWidth ()
|
4396 |
+
{
|
4397 |
+
// On first run a static variable is set, since this is only needed once.
|
4398 |
+
// Subsequent runs will just use the previously calculated value
|
4399 |
+
if ( ! DataTable.__scrollbarWidth ) {
|
4400 |
+
var inner = $('<p/>').css( {
|
4401 |
+
width: '100%',
|
4402 |
+
height: 200,
|
4403 |
+
padding: 0
|
4404 |
+
} )[0];
|
4405 |
+
|
4406 |
+
var outer = $('<div/>')
|
4407 |
+
.css( {
|
4408 |
+
position: 'absolute',
|
4409 |
+
top: 0,
|
4410 |
+
left: 0,
|
4411 |
+
width: 200,
|
4412 |
+
height: 150,
|
4413 |
+
padding: 0,
|
4414 |
+
overflow: 'hidden',
|
4415 |
+
visibility: 'hidden'
|
4416 |
+
} )
|
4417 |
+
.append( inner )
|
4418 |
+
.appendTo( 'body' );
|
4419 |
+
|
4420 |
+
var w1 = inner.offsetWidth;
|
4421 |
+
outer.css( 'overflow', 'scroll' );
|
4422 |
+
var w2 = inner.offsetWidth;
|
4423 |
+
|
4424 |
+
if ( w1 === w2 ) {
|
4425 |
+
w2 = outer[0].clientWidth;
|
4426 |
+
}
|
4427 |
+
|
4428 |
+
outer.remove();
|
4429 |
+
|
4430 |
+
DataTable.__scrollbarWidth = w1 - w2;
|
4431 |
+
}
|
4432 |
+
|
4433 |
+
return DataTable.__scrollbarWidth;
|
4434 |
+
}
|
4435 |
+
|
4436 |
+
|
4437 |
+
|
4438 |
+
function _fnSortFlatten ( settings )
|
4439 |
+
{
|
4440 |
+
var
|
4441 |
+
i, iLen, k, kLen,
|
4442 |
+
aSort = [],
|
4443 |
+
aiOrig = [],
|
4444 |
+
aoColumns = settings.aoColumns,
|
4445 |
+
aDataSort, iCol, sType, srcCol,
|
4446 |
+
fixed = settings.aaSortingFixed,
|
4447 |
+
fixedObj = $.isPlainObject( fixed ),
|
4448 |
+
nestedSort = [],
|
4449 |
+
add = function ( a ) {
|
4450 |
+
if ( a.length && ! $.isArray( a[0] ) ) {
|
4451 |
+
// 1D array
|
4452 |
+
nestedSort.push( a );
|
4453 |
+
}
|
4454 |
+
else {
|
4455 |
+
// 2D array
|
4456 |
+
nestedSort.push.apply( nestedSort, a );
|
4457 |
}
|
4458 |
+
};
|
4459 |
+
|
4460 |
+
// Build the sort array, with pre-fix and post-fix options if they have been
|
4461 |
+
// specified
|
4462 |
+
if ( $.isArray( fixed ) ) {
|
4463 |
+
add( fixed );
|
4464 |
}
|
4465 |
+
|
4466 |
+
if ( fixedObj && fixed.pre ) {
|
4467 |
+
add( fixed.pre );
|
4468 |
+
}
|
4469 |
+
|
4470 |
+
add( settings.aaSorting );
|
4471 |
+
|
4472 |
+
if (fixedObj && fixed.post ) {
|
4473 |
+
add( fixed.post );
|
4474 |
+
}
|
4475 |
+
|
4476 |
+
for ( i=0 ; i<nestedSort.length ; i++ )
|
4477 |
{
|
4478 |
+
srcCol = nestedSort[i][0];
|
4479 |
+
aDataSort = aoColumns[ srcCol ].aDataSort;
|
4480 |
+
|
4481 |
+
for ( k=0, kLen=aDataSort.length ; k<kLen ; k++ )
|
|
|
|
|
4482 |
{
|
4483 |
+
iCol = aDataSort[k];
|
4484 |
+
sType = aoColumns[ iCol ].sType || 'string';
|
4485 |
+
|
4486 |
+
if ( nestedSort[i]._idx === undefined ) {
|
4487 |
+
nestedSort[i]._idx = $.inArray( nestedSort[i][1], aoColumns[iCol].asSorting );
|
4488 |
}
|
4489 |
+
|
4490 |
+
aSort.push( {
|
4491 |
+
src: srcCol,
|
4492 |
+
col: iCol,
|
4493 |
+
dir: nestedSort[i][1],
|
4494 |
+
index: nestedSort[i]._idx,
|
4495 |
+
type: sType,
|
4496 |
+
formatter: DataTable.ext.type.order[ sType+"-pre" ]
|
4497 |
+
} );
|
4498 |
}
|
4499 |
+
}
|
4500 |
+
|
4501 |
+
return aSort;
|
4502 |
+
}
|
4503 |
+
|
4504 |
+
/**
|
4505 |
+
* Change the order of the table
|
4506 |
+
* @param {object} oSettings dataTables settings object
|
4507 |
+
* @memberof DataTable#oApi
|
4508 |
+
* @todo This really needs split up!
|
4509 |
+
*/
|
4510 |
+
function _fnSort ( oSettings )
|
4511 |
+
{
|
4512 |
+
var
|
4513 |
+
i, ien, iLen, j, jLen, k, kLen,
|
4514 |
+
sDataType, nTh,
|
4515 |
+
aiOrig = [],
|
4516 |
+
oExtSort = DataTable.ext.type.order,
|
4517 |
+
aoData = oSettings.aoData,
|
4518 |
+
aoColumns = oSettings.aoColumns,
|
4519 |
+
aDataSort, data, iCol, sType, oSort,
|
4520 |
+
formatters = 0,
|
4521 |
+
sortCol,
|
4522 |
+
displayMaster = oSettings.aiDisplayMaster,
|
4523 |
+
aSort;
|
4524 |
+
|
4525 |
+
// Resolve any column types that are unknown due to addition or invalidation
|
4526 |
+
// @todo Can this be moved into a 'data-ready' handler which is called when
|
4527 |
+
// data is going to be used in the table?
|
4528 |
+
_fnColumnTypes( oSettings );
|
4529 |
+
|
4530 |
+
aSort = _fnSortFlatten( oSettings );
|
4531 |
+
|
4532 |
+
for ( i=0, ien=aSort.length ; i<ien ; i++ ) {
|
4533 |
+
sortCol = aSort[i];
|
4534 |
+
|
4535 |
+
// Track if we can use the fast sort algorithm
|
4536 |
+
if ( sortCol.formatter ) {
|
4537 |
+
formatters++;
|
4538 |
+
}
|
4539 |
+
|
4540 |
+
// Load the data needed for the sort, for each cell
|
4541 |
+
_fnSortData( oSettings, sortCol.col );
|
4542 |
+
}
|
4543 |
+
|
4544 |
+
/* No sorting required if server-side or no sorting array */
|
4545 |
+
if ( _fnDataSource( oSettings ) != 'ssp' && aSort.length !== 0 )
|
4546 |
+
{
|
4547 |
+
// Create a value - key array of the current row positions such that we can use their
|
4548 |
+
// current position during the sort, if values match, in order to perform stable sorting
|
4549 |
+
for ( i=0, iLen=displayMaster.length ; i<iLen ; i++ ) {
|
4550 |
+
aiOrig[ displayMaster[i] ] = i;
|
4551 |
+
}
|
4552 |
+
|
4553 |
+
/* Do the sort - here we want multi-column sorting based on a given data source (column)
|
4554 |
+
* and sorting function (from oSort) in a certain direction. It's reasonably complex to
|
4555 |
+
* follow on it's own, but this is what we want (example two column sorting):
|
4556 |
+
* fnLocalSorting = function(a,b){
|
4557 |
+
* var iTest;
|
4558 |
+
* iTest = oSort['string-asc']('data11', 'data12');
|
4559 |
+
* if (iTest !== 0)
|
4560 |
+
* return iTest;
|
4561 |
+
* iTest = oSort['numeric-desc']('data21', 'data22');
|
4562 |
+
* if (iTest !== 0)
|
4563 |
+
* return iTest;
|
4564 |
+
* return oSort['numeric-asc']( aiOrig[a], aiOrig[b] );
|
4565 |
+
* }
|
4566 |
+
* Basically we have a test for each sorting column, if the data in that column is equal,
|
4567 |
+
* test the next column. If all columns match, then we use a numeric sort on the row
|
4568 |
+
* positions in the original data array to provide a stable sort.
|
4569 |
+
*
|
4570 |
+
* Note - I know it seems excessive to have two sorting methods, but the first is around
|
4571 |
+
* 15% faster, so the second is only maintained for backwards compatibility with sorting
|
4572 |
+
* methods which do not have a pre-sort formatting function.
|
4573 |
+
*/
|
4574 |
+
if ( formatters === aSort.length ) {
|
4575 |
+
// All sort types have formatting functions
|
4576 |
+
displayMaster.sort( function ( a, b ) {
|
4577 |
+
var
|
4578 |
+
x, y, k, test, sort,
|
4579 |
+
len=aSort.length,
|
4580 |
+
dataA = aoData[a]._aSortData,
|
4581 |
+
dataB = aoData[b]._aSortData;
|
4582 |
+
|
4583 |
+
for ( k=0 ; k<len ; k++ ) {
|
4584 |
+
sort = aSort[k];
|
4585 |
+
|
4586 |
+
x = dataA[ sort.col ];
|
4587 |
+
y = dataB[ sort.col ];
|
4588 |
+
|
4589 |
+
test = x<y ? -1 : x>y ? 1 : 0;
|
4590 |
+
if ( test !== 0 ) {
|
4591 |
+
return sort.dir === 'asc' ? test : -test;
|
4592 |
}
|
|
|
|
|
4593 |
}
|
4594 |
+
|
4595 |
+
x = aiOrig[a];
|
4596 |
+
y = aiOrig[b];
|
4597 |
+
return x<y ? -1 : x>y ? 1 : 0;
|
4598 |
+
} );
|
|
|
|
|
|
|
4599 |
}
|
4600 |
+
else {
|
4601 |
+
// Depreciated - remove in 1.11 (providing a plug-in option)
|
4602 |
+
// Not all sort types have formatting methods, so we have to call their sorting
|
4603 |
+
// methods.
|
4604 |
+
displayMaster.sort( function ( a, b ) {
|
4605 |
+
var
|
4606 |
+
x, y, k, l, test, sort, fn,
|
4607 |
+
len=aSort.length,
|
4608 |
+
dataA = aoData[a]._aSortData,
|
4609 |
+
dataB = aoData[b]._aSortData;
|
4610 |
+
|
4611 |
+
for ( k=0 ; k<len ; k++ ) {
|
4612 |
+
sort = aSort[k];
|
4613 |
+
|
4614 |
+
x = dataA[ sort.col ];
|
4615 |
+
y = dataB[ sort.col ];
|
4616 |
+
|
4617 |
+
fn = oExtSort[ sort.type+"-"+sort.dir ] || oExtSort[ "string-"+sort.dir ];
|
4618 |
+
test = fn( x, y );
|
4619 |
+
if ( test !== 0 ) {
|
4620 |
+
return test;
|
4621 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4622 |
}
|
4623 |
+
|
4624 |
+
x = aiOrig[a];
|
4625 |
+
y = aiOrig[b];
|
4626 |
+
return x<y ? -1 : x>y ? 1 : 0;
|
4627 |
+
} );
|
4628 |
}
|
4629 |
}
|
4630 |
+
|
4631 |
+
/* Tell the draw function that we have sorted the data */
|
4632 |
+
oSettings.bSorted = true;
|
4633 |
+
}
|
4634 |
+
|
4635 |
+
|
4636 |
+
function _fnSortAria ( settings )
|
4637 |
+
{
|
4638 |
+
var label;
|
4639 |
+
var nextSort;
|
4640 |
+
var columns = settings.aoColumns;
|
4641 |
+
var aSort = _fnSortFlatten( settings );
|
4642 |
+
var oAria = settings.oLanguage.oAria;
|
4643 |
+
|
4644 |
+
// ARIA attributes - need to loop all columns, to update all (removing old
|
4645 |
+
// attributes as needed)
|
4646 |
+
for ( var i=0, iLen=columns.length ; i<iLen ; i++ )
|
4647 |
+
{
|
4648 |
+
var col = columns[i];
|
4649 |
+
var asSorting = col.asSorting;
|
4650 |
+
var sTitle = col.sTitle.replace( /<.*?>/g, "" );
|
4651 |
+
var th = col.nTh;
|
4652 |
+
|
4653 |
+
// IE7 is throwing an error when setting these properties with jQuery's
|
4654 |
+
// attr() and removeAttr() methods...
|
4655 |
+
th.removeAttribute('aria-sort');
|
4656 |
+
|
4657 |
+
/* In ARIA only the first sorting column can be marked as sorting - no multi-sort option */
|
4658 |
+
if ( col.bSortable ) {
|
4659 |
+
if ( aSort.length > 0 && aSort[0].col == i ) {
|
4660 |
+
th.setAttribute('aria-sort', aSort[0].dir=="asc" ? "ascending" : "descending" );
|
4661 |
+
nextSort = asSorting[ aSort[0].index+1 ] || asSorting[0];
|
4662 |
+
}
|
4663 |
+
else {
|
4664 |
+
nextSort = asSorting[0];
|
4665 |
+
}
|
4666 |
+
|
4667 |
+
label = sTitle + ( nextSort === "asc" ?
|
4668 |
+
oAria.sSortAscending :
|
4669 |
+
oAria.sSortDescending
|
4670 |
+
);
|
4671 |
}
|
4672 |
+
else {
|
4673 |
+
label = sTitle;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4674 |
}
|
4675 |
+
|
4676 |
+
th.setAttribute('aria-label', label);
|
|
|
|
|
4677 |
}
|
4678 |
+
}
|
4679 |
+
|
4680 |
+
|
4681 |
+
/**
|
4682 |
+
* Function to run on user sort request
|
4683 |
+
* @param {object} settings dataTables settings object
|
4684 |
+
* @param {node} attachTo node to attach the handler to
|
4685 |
+
* @param {int} colIdx column sorting index
|
4686 |
+
* @param {boolean} [append=false] Append the requested sort to the existing
|
4687 |
+
* sort if true (i.e. multi-column sort)
|
4688 |
+
* @param {function} [callback] callback function
|
4689 |
+
* @memberof DataTable#oApi
|
4690 |
+
*/
|
4691 |
+
function _fnSortListener ( settings, colIdx, append, callback )
|
4692 |
+
{
|
4693 |
+
var col = settings.aoColumns[ colIdx ];
|
4694 |
+
var sorting = settings.aaSorting;
|
4695 |
+
var asSorting = col.asSorting;
|
4696 |
+
var nextSortIdx;
|
4697 |
+
var next = function ( a, overflow ) {
|
4698 |
+
var idx = a._idx;
|
4699 |
+
if ( idx === undefined ) {
|
4700 |
+
idx = $.inArray( a[1], asSorting );
|
4701 |
+
}
|
4702 |
+
|
4703 |
+
return idx+1 < asSorting.length ?
|
4704 |
+
idx+1 :
|
4705 |
+
overflow ?
|
4706 |
+
null :
|
4707 |
+
0;
|
4708 |
+
};
|
4709 |
+
|
4710 |
+
// Convert to 2D array if needed
|
4711 |
+
if ( typeof sorting[0] === 'number' ) {
|
4712 |
+
sorting = settings.aaSorting = [ sorting ];
|
4713 |
+
}
|
4714 |
+
|
4715 |
+
// If appending the sort then we are multi-column sorting
|
4716 |
+
if ( append && settings.oFeatures.bSortMulti ) {
|
4717 |
+
// Are we already doing some kind of sort on this column?
|
4718 |
+
var sortIdx = $.inArray( colIdx, _pluck(sorting, '0') );
|
4719 |
+
|
4720 |
+
if ( sortIdx !== -1 ) {
|
4721 |
+
// Yes, modify the sort
|
4722 |
+
nextSortIdx = next( sorting[sortIdx], true );
|
4723 |
+
|
4724 |
+
if ( nextSortIdx === null ) {
|
4725 |
+
sorting.splice( sortIdx, 1 );
|
4726 |
+
}
|
4727 |
+
else {
|
4728 |
+
sorting[sortIdx][1] = asSorting[ nextSortIdx ];
|
4729 |
+
sorting[sortIdx]._idx = nextSortIdx;
|
4730 |
+
}
|
4731 |
}
|
4732 |
+
else {
|
4733 |
+
// No sort on this column yet
|
4734 |
+
sorting.push( [ colIdx, asSorting[0], 0 ] );
|
4735 |
+
sorting[sorting.length-1]._idx = 0;
|
|
|
4736 |
}
|
4737 |
+
}
|
4738 |
+
else if ( sorting.length && sorting[0][0] == colIdx ) {
|
4739 |
+
// Single column - already sorting on this column, modify the sort
|
4740 |
+
nextSortIdx = next( sorting[0] );
|
4741 |
+
|
4742 |
+
sorting.length = 1;
|
4743 |
+
sorting[0][1] = asSorting[ nextSortIdx ];
|
4744 |
+
sorting[0]._idx = nextSortIdx;
|
4745 |
+
}
|
4746 |
+
else {
|
4747 |
+
// Single column - sort only on this column
|
4748 |
+
sorting.length = 0;
|
4749 |
+
sorting.push( [ colIdx, asSorting[0] ] );
|
4750 |
+
sorting[0]._idx = 0;
|
4751 |
+
}
|
4752 |
+
|
4753 |
+
// Run the sort by calling a full redraw
|
4754 |
+
_fnReDraw( settings );
|
4755 |
+
|
4756 |
+
// callback used for async user interaction
|
4757 |
+
if ( typeof callback == 'function' ) {
|
4758 |
+
callback( settings );
|
4759 |
+
}
|
4760 |
+
}
|
4761 |
+
|
4762 |
+
|
4763 |
+
/**
|
4764 |
+
* Attach a sort handler (click) to a node
|
4765 |
+
* @param {object} settings dataTables settings object
|
4766 |
+
* @param {node} attachTo node to attach the handler to
|
4767 |
+
* @param {int} colIdx column sorting index
|
4768 |
+
* @param {function} [callback] callback function
|
4769 |
+
* @memberof DataTable#oApi
|
4770 |
+
*/
|
4771 |
+
function _fnSortAttachListener ( settings, attachTo, colIdx, callback )
|
4772 |
+
{
|
4773 |
+
var col = settings.aoColumns[ colIdx ];
|
4774 |
+
|
4775 |
+
_fnBindAction( attachTo, {}, function (e) {
|
4776 |
+
/* If the column is not sortable - don't to anything */
|
4777 |
+
if ( col.bSortable === false ) {
|
4778 |
return;
|
4779 |
}
|
4780 |
+
|
4781 |
+
// If processing is enabled use a timeout to allow the processing
|
4782 |
+
// display to be shown - otherwise to it synchronously
|
4783 |
+
if ( settings.oFeatures.bProcessing ) {
|
4784 |
+
_fnProcessingDisplay( settings, true );
|
4785 |
+
|
4786 |
+
setTimeout( function() {
|
4787 |
+
_fnSortListener( settings, colIdx, e.shiftKey, callback );
|
4788 |
+
|
4789 |
+
// In server-side processing, the draw callback will remove the
|
4790 |
+
// processing display
|
4791 |
+
if ( _fnDataSource( settings ) !== 'ssp' ) {
|
4792 |
+
_fnProcessingDisplay( settings, false );
|
4793 |
+
}
|
4794 |
+
}, 0 );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4795 |
}
|
4796 |
+
else {
|
4797 |
+
_fnSortListener( settings, colIdx, e.shiftKey, callback );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4798 |
}
|
4799 |
+
} );
|
4800 |
+
}
|
4801 |
+
|
4802 |
+
|
4803 |
+
/**
|
4804 |
+
* Set the sorting classes on table's body, Note: it is safe to call this function
|
4805 |
+
* when bSort and bSortClasses are false
|
4806 |
+
* @param {object} oSettings dataTables settings object
|
4807 |
+
* @memberof DataTable#oApi
|
4808 |
+
*/
|
4809 |
+
function _fnSortingClasses( settings )
|
4810 |
+
{
|
4811 |
+
var oldSort = settings.aLastSort;
|
4812 |
+
var sortClass = settings.oClasses.sSortColumn;
|
4813 |
+
var sort = _fnSortFlatten( settings );
|
4814 |
+
var features = settings.oFeatures;
|
4815 |
+
var i, ien, colIdx;
|
4816 |
+
|
4817 |
+
if ( features.bSort && features.bSortClasses ) {
|
4818 |
+
// Remove old sorting classes
|
4819 |
+
for ( i=0, ien=oldSort.length ; i<ien ; i++ ) {
|
4820 |
+
colIdx = oldSort[i].src;
|
4821 |
+
|
4822 |
+
// Remove column sorting
|
4823 |
+
$( _pluck( settings.aoData, 'anCells', colIdx ) )
|
4824 |
+
.removeClass( sortClass + (i<2 ? i+1 : 3) );
|
4825 |
}
|
4826 |
+
|
4827 |
+
// Add new column sorting
|
4828 |
+
for ( i=0, ien=sort.length ; i<ien ; i++ ) {
|
4829 |
+
colIdx = sort[i].src;
|
4830 |
+
|
4831 |
+
$( _pluck( settings.aoData, 'anCells', colIdx ) )
|
4832 |
+
.addClass( sortClass + (i<2 ? i+1 : 3) );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4833 |
}
|
|
|
|
|
4834 |
}
|
4835 |
+
|
4836 |
+
settings.aLastSort = sort;
|
4837 |
+
}
|
4838 |
+
|
4839 |
+
|
4840 |
+
// Get the data to sort a column, be it from cache, fresh (populating the
|
4841 |
+
// cache), or from a sort formatter
|
4842 |
+
function _fnSortData( settings, idx )
|
4843 |
+
{
|
4844 |
+
// Custom sorting function - provided by the sort data type
|
4845 |
+
var column = settings.aoColumns[ idx ];
|
4846 |
+
var customSort = DataTable.ext.order[ column.sSortDataType ];
|
4847 |
+
var customData;
|
4848 |
+
|
4849 |
+
if ( customSort ) {
|
4850 |
+
customData = customSort.call( settings.oInstance, settings, idx,
|
4851 |
+
_fnColumnIndexToVisible( settings, idx )
|
4852 |
+
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4853 |
}
|
4854 |
+
|
4855 |
+
// Use / populate cache
|
4856 |
+
var row, cellData;
|
4857 |
+
var formatter = DataTable.ext.type.order[ column.sType+"-pre" ];
|
4858 |
+
|
4859 |
+
for ( var i=0, ien=settings.aoData.length ; i<ien ; i++ ) {
|
4860 |
+
row = settings.aoData[i];
|
4861 |
+
|
4862 |
+
if ( ! row._aSortData ) {
|
4863 |
+
row._aSortData = [];
|
4864 |
+
}
|
4865 |
+
|
4866 |
+
if ( ! row._aSortData[idx] || customSort ) {
|
4867 |
+
cellData = customSort ?
|
4868 |
+
customData[i] : // If there was a custom sort function, use data from there
|
4869 |
+
_fnGetCellData( settings, i, idx, 'sort' );
|
4870 |
+
|
4871 |
+
row._aSortData[ idx ] = formatter ?
|
4872 |
+
formatter( cellData ) :
|
4873 |
+
cellData;
|
4874 |
}
|
|
|
|
|
4875 |
}
|
4876 |
+
}
|
4877 |
+
|
4878 |
+
|
4879 |
+
|
4880 |
+
/**
|
4881 |
+
* Save the state of a table
|
4882 |
+
* @param {object} oSettings dataTables settings object
|
4883 |
+
* @memberof DataTable#oApi
|
4884 |
+
*/
|
4885 |
+
function _fnSaveState ( settings )
|
4886 |
+
{
|
4887 |
+
if ( !settings.oFeatures.bStateSave || settings.bDestroying )
|
4888 |
{
|
4889 |
+
return;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4890 |
}
|
4891 |
+
|
4892 |
+
/* Store the interesting variables */
|
4893 |
+
var state = {
|
4894 |
+
time: +new Date(),
|
4895 |
+
start: settings._iDisplayStart,
|
4896 |
+
length: settings._iDisplayLength,
|
4897 |
+
order: $.extend( true, [], settings.aaSorting ),
|
4898 |
+
search: _fnSearchToCamel( settings.oPreviousSearch ),
|
4899 |
+
columns: $.map( settings.aoColumns, function ( col, i ) {
|
4900 |
+
return {
|
4901 |
+
visible: col.bVisible,
|
4902 |
+
search: _fnSearchToCamel( settings.aoPreSearchCols[i] )
|
4903 |
+
};
|
4904 |
+
} )
|
4905 |
+
};
|
4906 |
+
|
4907 |
+
_fnCallbackFire( settings, "aoStateSaveParams", 'stateSaveParams', [settings, state] );
|
4908 |
+
|
4909 |
+
settings.oSavedState = state;
|
4910 |
+
settings.fnStateSaveCallback.call( settings.oInstance, settings, state );
|
4911 |
+
}
|
4912 |
+
|
4913 |
+
|
4914 |
+
/**
|
4915 |
+
* Attempt to load a saved table state
|
4916 |
+
* @param {object} oSettings dataTables settings object
|
4917 |
+
* @param {object} oInit DataTables init object so we can override settings
|
4918 |
+
* @memberof DataTable#oApi
|
4919 |
+
*/
|
4920 |
+
function _fnLoadState ( settings, oInit )
|
4921 |
+
{
|
4922 |
+
var i, ien;
|
4923 |
+
var columns = settings.aoColumns;
|
4924 |
+
|
4925 |
+
if ( ! settings.oFeatures.bStateSave ) {
|
4926 |
+
return;
|
4927 |
+
}
|
4928 |
+
|
4929 |
+
var state = settings.fnStateLoadCallback.call( settings.oInstance, settings );
|
4930 |
+
if ( ! state || ! state.time ) {
|
4931 |
+
return;
|
4932 |
+
}
|
4933 |
+
|
4934 |
+
/* Allow custom and plug-in manipulation functions to alter the saved data set and
|
4935 |
+
* cancelling of loading by returning false
|
4936 |
*/
|
4937 |
+
var abStateLoad = _fnCallbackFire( settings, 'aoStateLoadParams', 'stateLoadParams', [settings, state] );
|
4938 |
+
if ( $.inArray( false, abStateLoad ) !== -1 ) {
|
4939 |
+
return;
|
4940 |
+
}
|
4941 |
+
|
4942 |
+
/* Reject old data */
|
4943 |
+
var duration = settings.iStateDuration;
|
4944 |
+
if ( duration > 0 && state.time < +new Date() - (duration*1000) ) {
|
4945 |
+
return;
|
4946 |
+
}
|
4947 |
+
|
4948 |
+
// Number of columns have changed - all bets are off, no restore of settings
|
4949 |
+
if ( columns.length !== state.columns.length ) {
|
4950 |
+
return;
|
4951 |
+
}
|
4952 |
+
|
4953 |
+
// Store the saved state so it might be accessed at any time
|
4954 |
+
settings.oLoadedState = $.extend( true, {}, state );
|
4955 |
+
|
4956 |
+
// Restore key features - todo - for 1.11 this needs to be done by
|
4957 |
+
// subscribed events
|
4958 |
+
settings._iDisplayStart = state.start;
|
4959 |
+
settings.iInitDisplayStart = state.start;
|
4960 |
+
settings._iDisplayLength = state.length;
|
4961 |
+
settings.aaSorting = [];
|
4962 |
+
|
4963 |
+
// Order
|
4964 |
+
$.each( state.order, function ( i, col ) {
|
4965 |
+
settings.aaSorting.push( col[0] >= columns.length ?
|
4966 |
+
[ 0, col[1] ] :
|
4967 |
+
col
|
4968 |
+
);
|
4969 |
+
} );
|
4970 |
+
|
4971 |
+
// Search
|
4972 |
+
$.extend( settings.oPreviousSearch, _fnSearchToHung( state.search ) );
|
4973 |
+
|
4974 |
+
// Columns
|
4975 |
+
for ( i=0, ien=state.columns.length ; i<ien ; i++ ) {
|
4976 |
+
var col = state.columns[i];
|
4977 |
+
|
4978 |
+
// Visibility
|
4979 |
+
columns[i].bVisible = col.visible;
|
4980 |
+
|
4981 |
+
// Search
|
4982 |
+
$.extend( settings.aoPreSearchCols[i], _fnSearchToHung( col.search ) );
|
4983 |
+
}
|
4984 |
+
|
4985 |
+
_fnCallbackFire( settings, 'aoStateLoaded', 'stateLoaded', [settings, state] );
|
4986 |
+
}
|
4987 |
+
|
4988 |
+
|
4989 |
+
/**
|
4990 |
+
* Return the settings object for a particular table
|
4991 |
+
* @param {node} table table we are using as a dataTable
|
4992 |
+
* @returns {object} Settings object - or null if not found
|
4993 |
+
* @memberof DataTable#oApi
|
4994 |
+
*/
|
4995 |
+
function _fnSettingsFromNode ( table )
|
4996 |
+
{
|
4997 |
+
var settings = DataTable.settings;
|
4998 |
+
var idx = $.inArray( table, _pluck( settings, 'nTable' ) );
|
4999 |
+
|
5000 |
+
return idx !== -1 ?
|
5001 |
+
settings[ idx ] :
|
5002 |
+
null;
|
5003 |
+
}
|
5004 |
+
|
5005 |
+
|
5006 |
+
/**
|
5007 |
+
* Log an error message
|
5008 |
+
* @param {object} settings dataTables settings object
|
5009 |
+
* @param {int} level log error messages, or display them to the user
|
5010 |
+
* @param {string} msg error message
|
5011 |
+
* @param {int} tn Technical note id to get more information about the error.
|
5012 |
+
* @memberof DataTable#oApi
|
5013 |
+
*/
|
5014 |
+
function _fnLog( settings, level, msg, tn )
|
5015 |
+
{
|
5016 |
+
msg = 'DataTables warning: '+
|
5017 |
+
(settings!==null ? 'table id='+settings.sTableId+' - ' : '')+msg;
|
5018 |
+
|
5019 |
+
if ( tn ) {
|
5020 |
+
msg += '. For more information about this error, please see '+
|
5021 |
+
'http://datatables.net/tn/'+tn;
|
5022 |
+
}
|
5023 |
+
|
5024 |
+
if ( ! level ) {
|
5025 |
+
// Backwards compatibility pre 1.10
|
5026 |
+
var ext = DataTable.ext;
|
5027 |
+
var type = ext.sErrMode || ext.errMode;
|
5028 |
+
|
5029 |
+
_fnCallbackFire( settings, null, 'error', [ settings, tn, msg ] );
|
5030 |
+
|
5031 |
+
if ( type == 'alert' ) {
|
5032 |
+
alert( msg );
|
5033 |
}
|
5034 |
+
else if ( type == 'throw' ) {
|
5035 |
+
throw new Error(msg);
|
5036 |
+
}
|
5037 |
+
else if ( typeof type == 'function' ) {
|
5038 |
+
type( settings, tn, msg );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5039 |
}
|
|
|
|
|
5040 |
}
|
5041 |
+
else if ( window.console && console.log ) {
|
5042 |
+
console.log( msg );
|
5043 |
+
}
|
5044 |
+
}
|
5045 |
+
|
5046 |
+
|
5047 |
+
/**
|
5048 |
+
* See if a property is defined on one object, if so assign it to the other object
|
5049 |
+
* @param {object} ret target object
|
5050 |
+
* @param {object} src source object
|
5051 |
+
* @param {string} name property
|
5052 |
+
* @param {string} [mappedName] name to map too - optional, name used if not given
|
5053 |
+
* @memberof DataTable#oApi
|
5054 |
+
*/
|
5055 |
+
function _fnMap( ret, src, name, mappedName )
|
5056 |
+
{
|
5057 |
+
if ( $.isArray( name ) ) {
|
5058 |
+
$.each( name, function (i, val) {
|
5059 |
+
if ( $.isArray( val ) ) {
|
5060 |
+
_fnMap( ret, src, val[0], val[1] );
|
5061 |
}
|
5062 |
+
else {
|
5063 |
+
_fnMap( ret, src, val );
|
|
|
5064 |
}
|
5065 |
+
} );
|
5066 |
+
|
5067 |
+
return;
|
|
|
|
|
|
|
5068 |
}
|
5069 |
+
|
5070 |
+
if ( mappedName === undefined ) {
|
5071 |
+
mappedName = name;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5072 |
}
|
5073 |
+
|
5074 |
+
if ( src[name] !== undefined ) {
|
5075 |
+
ret[mappedName] = src[name];
|
5076 |
+
}
|
5077 |
+
}
|
5078 |
+
|
5079 |
+
|
5080 |
+
/**
|
5081 |
+
* Extend objects - very similar to jQuery.extend, but deep copy objects, and
|
5082 |
+
* shallow copy arrays. The reason we need to do this, is that we don't want to
|
5083 |
+
* deep copy array init values (such as aaSorting) since the dev wouldn't be
|
5084 |
+
* able to override them, but we do want to deep copy arrays.
|
5085 |
+
* @param {object} out Object to extend
|
5086 |
+
* @param {object} extender Object from which the properties will be applied to
|
5087 |
+
* out
|
5088 |
+
* @param {boolean} breakRefs If true, then arrays will be sliced to take an
|
5089 |
+
* independent copy with the exception of the `data` or `aaData` parameters
|
5090 |
+
* if they are present. This is so you can pass in a collection to
|
5091 |
+
* DataTables and have that used as your data source without breaking the
|
5092 |
+
* references
|
5093 |
+
* @returns {object} out Reference, just for convenience - out === the return.
|
5094 |
+
* @memberof DataTable#oApi
|
5095 |
+
* @todo This doesn't take account of arrays inside the deep copied objects.
|
5096 |
+
*/
|
5097 |
+
function _fnExtend( out, extender, breakRefs )
|
5098 |
+
{
|
5099 |
+
var val;
|
5100 |
+
|
5101 |
+
for ( var prop in extender ) {
|
5102 |
+
if ( extender.hasOwnProperty(prop) ) {
|
5103 |
+
val = extender[prop];
|
5104 |
+
|
5105 |
+
if ( $.isPlainObject( val ) ) {
|
5106 |
+
if ( ! $.isPlainObject( out[prop] ) ) {
|
5107 |
+
out[prop] = {};
|
5108 |
}
|
5109 |
+
$.extend( true, out[prop], val );
|
5110 |
+
}
|
5111 |
+
else if ( breakRefs && prop !== 'data' && prop !== 'aaData' && $.isArray(val) ) {
|
5112 |
+
out[prop] = val.slice();
|
5113 |
+
}
|
5114 |
+
else {
|
5115 |
+
out[prop] = val;
|
5116 |
}
|
5117 |
}
|
|
|
|
|
5118 |
}
|
5119 |
+
|
5120 |
+
return out;
|
5121 |
+
}
|
5122 |
+
|
5123 |
+
|
5124 |
+
/**
|
5125 |
+
* Bind an event handers to allow a click or return key to activate the callback.
|
5126 |
+
* This is good for accessibility since a return on the keyboard will have the
|
5127 |
+
* same effect as a click, if the element has focus.
|
5128 |
+
* @param {element} n Element to bind the action to
|
5129 |
+
* @param {object} oData Data object to pass to the triggered function
|
5130 |
+
* @param {function} fn Callback function for when the event is triggered
|
5131 |
+
* @memberof DataTable#oApi
|
5132 |
+
*/
|
5133 |
+
function _fnBindAction( n, oData, fn )
|
5134 |
+
{
|
5135 |
+
$(n)
|
5136 |
+
.bind( 'click.DT', oData, function (e) {
|
5137 |
+
n.blur(); // Remove focus outline for mouse users
|
5138 |
+
fn(e);
|
5139 |
+
} )
|
5140 |
+
.bind( 'keypress.DT', oData, function (e){
|
5141 |
if ( e.which === 13 ) {
|
5142 |
+
e.preventDefault();
|
5143 |
fn(e);
|
5144 |
+
}
|
5145 |
+
} )
|
5146 |
+
.bind( 'selectstart.DT', function () {
|
5147 |
/* Take the brutal approach to cancelling text selection */
|
5148 |
return false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5149 |
} );
|
5150 |
+
}
|
5151 |
+
|
5152 |
+
|
5153 |
+
/**
|
5154 |
+
* Register a callback function. Easily allows a callback function to be added to
|
5155 |
+
* an array store of callback functions that can then all be called together.
|
5156 |
+
* @param {object} oSettings dataTables settings object
|
5157 |
+
* @param {string} sStore Name of the array storage for the callbacks in oSettings
|
5158 |
+
* @param {function} fn Function to be called back
|
5159 |
+
* @param {string} sName Identifying name for the callback (i.e. a label)
|
5160 |
+
* @memberof DataTable#oApi
|
5161 |
+
*/
|
5162 |
+
function _fnCallbackReg( oSettings, sStore, fn, sName )
|
5163 |
+
{
|
5164 |
+
if ( fn )
|
|
|
5165 |
{
|
5166 |
+
oSettings[sStore].push( {
|
5167 |
+
"fn": fn,
|
5168 |
+
"sName": sName
|
5169 |
+
} );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5170 |
}
|
5171 |
+
}
|
5172 |
+
|
5173 |
+
|
5174 |
+
/**
|
5175 |
+
* Fire callback functions and trigger events. Note that the loop over the
|
5176 |
+
* callback array store is done backwards! Further note that you do not want to
|
5177 |
+
* fire off triggers in time sensitive applications (for example cell creation)
|
5178 |
+
* as its slow.
|
5179 |
+
* @param {object} settings dataTables settings object
|
5180 |
+
* @param {string} callbackArr Name of the array storage for the callbacks in
|
5181 |
+
* oSettings
|
5182 |
+
* @param {string} event Name of the jQuery custom event to trigger. If null no
|
5183 |
+
* trigger is fired
|
5184 |
+
* @param {array} args Array of arguments to pass to the callback function /
|
5185 |
+
* trigger
|
5186 |
+
* @memberof DataTable#oApi
|
5187 |
+
*/
|
5188 |
+
function _fnCallbackFire( settings, callbackArr, e, args )
|
5189 |
+
{
|
5190 |
+
var ret = [];
|
5191 |
+
|
5192 |
+
if ( callbackArr ) {
|
5193 |
+
ret = $.map( settings[callbackArr].slice().reverse(), function (val, i) {
|
5194 |
+
return val.fn.apply( settings.oInstance, args );
|
5195 |
+
} );
|
5196 |
+
}
|
5197 |
+
|
5198 |
+
if ( e !== null ) {
|
5199 |
+
$(settings.nTable).trigger( e+'.dt', args );
|
5200 |
+
}
|
5201 |
+
|
5202 |
+
return ret;
|
5203 |
+
}
|
5204 |
+
|
5205 |
+
|
5206 |
+
function _fnLengthOverflow ( settings )
|
5207 |
+
{
|
5208 |
+
var
|
5209 |
+
start = settings._iDisplayStart,
|
5210 |
+
end = settings.fnDisplayEnd(),
|
5211 |
+
len = settings._iDisplayLength;
|
5212 |
+
|
5213 |
+
/* If we have space to show extra rows (backing up from the end point - then do so */
|
5214 |
+
if ( start >= end )
|
5215 |
{
|
5216 |
+
start = end - len;
|
5217 |
+
}
|
5218 |
+
|
5219 |
+
// Keep the start record on the current page
|
5220 |
+
start -= (start % len);
|
5221 |
+
|
5222 |
+
if ( len === -1 || start < 0 )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5223 |
{
|
5224 |
+
start = 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5225 |
}
|
5226 |
+
|
5227 |
+
settings._iDisplayStart = start;
|
5228 |
+
}
|
5229 |
+
|
5230 |
+
|
5231 |
+
function _fnRenderer( settings, type )
|
5232 |
+
{
|
5233 |
+
var renderer = settings.renderer;
|
5234 |
+
var host = DataTable.ext.renderer[type];
|
5235 |
+
|
5236 |
+
if ( $.isPlainObject( renderer ) && renderer[type] ) {
|
5237 |
+
// Specific renderer for this type. If available use it, otherwise use
|
5238 |
+
// the default.
|
5239 |
+
return host[renderer[type]] || host._;
|
5240 |
+
}
|
5241 |
+
else if ( typeof renderer === 'string' ) {
|
5242 |
+
// Common renderer - if there is one available for this type use it,
|
5243 |
+
// otherwise use the default
|
5244 |
+
return host[renderer] || host._;
|
5245 |
+
}
|
5246 |
+
|
5247 |
+
// Use the default
|
5248 |
+
return host._;
|
5249 |
+
}
|
5250 |
+
|
5251 |
+
|
5252 |
+
/**
|
5253 |
+
* Detect the data source being used for the table. Used to simplify the code
|
5254 |
+
* a little (ajax) and to make it compress a little smaller.
|
5255 |
+
*
|
5256 |
+
* @param {object} settings dataTables settings object
|
5257 |
+
* @returns {string} Data source
|
5258 |
+
* @memberof DataTable#oApi
|
5259 |
+
*/
|
5260 |
+
function _fnDataSource ( settings )
|
5261 |
+
{
|
5262 |
+
if ( settings.oFeatures.bServerSide ) {
|
5263 |
+
return 'ssp';
|
5264 |
+
}
|
5265 |
+
else if ( settings.ajax || settings.sAjaxSource ) {
|
5266 |
+
return 'ajax';
|
5267 |
+
}
|
5268 |
+
return 'dom';
|
5269 |
+
}
|
5270 |
+
|
5271 |
|
5272 |
+
DataTable = function( options )
|
5273 |
+
{
|
5274 |
/**
|
5275 |
* Perform a jQuery selector action on the table's TR elements (from the tbody) and
|
5276 |
* return the resulting jQuery object.
|
5282 |
* Can be either 'current', whereby the current sorting of the table is used, or
|
5283 |
* 'original' whereby the original order the data was read into the table is used.
|
5284 |
* @param {string} [oOpts.page=all] Limit the selection to the currently displayed page
|
5285 |
+
* ("current") or not ("all"). If 'current' is given, then order is assumed to be
|
5286 |
* 'current' and filter is 'applied', regardless of what they might be given as.
|
5287 |
* @returns {object} jQuery object, filtered by the given selector.
|
5288 |
* @dtopt API
|
5289 |
+
* @deprecated Since v1.10
|
5290 |
*
|
5291 |
* @example
|
5292 |
* $(document).ready(function() {
|
5303 |
* // Filter to rows with 'Webkit' in them, add a background colour and then
|
5304 |
* // remove the filter, thus highlighting the 'Webkit' rows only.
|
5305 |
* oTable.fnFilter('Webkit');
|
5306 |
+
* oTable.$('tr', {"search": "applied"}).css('backgroundColor', 'blue');
|
5307 |
* oTable.fnFilter('');
|
5308 |
* } );
|
5309 |
*/
|
5310 |
this.$ = function ( sSelector, oOpts )
|
5311 |
{
|
5312 |
+
return this.api(true).$( sSelector, oOpts );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5313 |
};
|
5314 |
|
5315 |
|
5317 |
* Almost identical to $ in operation, but in this case returns the data for the matched
|
5318 |
* rows - as such, the jQuery selector used should match TR row nodes or TD/TH cell nodes
|
5319 |
* rather than any descendants, so the data can be obtained for the row/cell. If matching
|
5320 |
+
* rows are found, the data returned is the original data array/object that was used to
|
5321 |
* create the row (or a generated array if from a DOM source).
|
5322 |
*
|
5323 |
* This method is often useful in-combination with $ where both functions are given the
|
5330 |
* Can be either 'current', whereby the current sorting of the table is used, or
|
5331 |
* 'original' whereby the original order the data was read into the table is used.
|
5332 |
* @param {string} [oOpts.page=all] Limit the selection to the currently displayed page
|
5333 |
+
* ("current") or not ("all"). If 'current' is given, then order is assumed to be
|
5334 |
* 'current' and filter is 'applied', regardless of what they might be given as.
|
5335 |
* @returns {array} Data for the matched elements. If any elements, as a result of the
|
5336 |
+
* selector, were not TR, TD or TH elements in the DataTable, they will have a null
|
5337 |
* entry in the array.
|
5338 |
* @dtopt API
|
5339 |
+
* @deprecated Since v1.10
|
5340 |
*
|
5341 |
* @example
|
5342 |
* $(document).ready(function() {
|
5353 |
* $(document).ready(function() {
|
5354 |
* var oTable = $('#example').dataTable();
|
5355 |
*
|
5356 |
+
* // Filter to 'Webkit' and get all data for
|
5357 |
* oTable.fnFilter('Webkit');
|
5358 |
+
* var data = oTable._('tr', {"search": "applied"});
|
5359 |
+
*
|
5360 |
* // Do something with the data
|
5361 |
+
* alert( data.length+" rows matched the search" );
|
5362 |
* } );
|
5363 |
*/
|
5364 |
this._ = function ( sSelector, oOpts )
|
5365 |
{
|
5366 |
+
return this.api(true).rows( sSelector, oOpts ).data();
|
5367 |
+
};
|
|
|
5368 |
|
|
|
|
|
|
|
|
|
5369 |
|
5370 |
+
/**
|
5371 |
+
* Create a DataTables Api instance, with the currently selected tables for
|
5372 |
+
* the Api's context.
|
5373 |
+
* @param {boolean} [traditional=false] Set the API instance's context to be
|
5374 |
+
* only the table referred to by the `DataTable.ext.iApiIndex` option, as was
|
5375 |
+
* used in the API presented by DataTables 1.9- (i.e. the traditional mode),
|
5376 |
+
* or if all tables captured in the jQuery object should be used.
|
5377 |
+
* @return {DataTables.Api}
|
5378 |
+
*/
|
5379 |
+
this.api = function ( traditional )
|
5380 |
+
{
|
5381 |
+
return traditional ?
|
5382 |
+
new _Api(
|
5383 |
+
_fnSettingsFromNode( this[ _ext.iApiIndex ] )
|
5384 |
+
) :
|
5385 |
+
new _Api( this );
|
5386 |
};
|
5387 |
|
5388 |
|
5389 |
/**
|
5390 |
* Add a single new row or multiple rows of data to the table. Please note
|
5391 |
+
* that this is suitable for client-side processing only - if you are using
|
5392 |
* server-side processing (i.e. "bServerSide": true), then to add data, you
|
5393 |
* must add it to the data source, i.e. the server-side, through an Ajax call.
|
5394 |
+
* @param {array|object} data The data to be added to the table. This can be:
|
5395 |
* <ul>
|
5396 |
* <li>1D array of data - add a single row with the data provided</li>
|
5397 |
* <li>2D array of arrays - add multiple rows in a single call</li>
|
5398 |
* <li>object - data object when using <i>mData</i></li>
|
5399 |
* <li>array of objects - multiple data objects when using <i>mData</i></li>
|
5400 |
* </ul>
|
5401 |
+
* @param {bool} [redraw=true] redraw the table or not
|
5402 |
+
* @returns {array} An array of integers, representing the list of indexes in
|
5403 |
+
* <i>aoData</i> ({@link DataTable.models.oSettings}) that have been added to
|
5404 |
* the table.
|
5405 |
* @dtopt API
|
5406 |
+
* @deprecated Since v1.10
|
5407 |
*
|
5408 |
* @example
|
5409 |
* // Global var for counter
|
5410 |
* var giCount = 2;
|
5411 |
+
*
|
5412 |
* $(document).ready(function() {
|
5413 |
* $('#example').dataTable();
|
5414 |
* } );
|
5415 |
+
*
|
5416 |
* function fnClickAddRow() {
|
5417 |
* $('#example').dataTable().fnAddData( [
|
5418 |
* giCount+".1",
|
5420 |
* giCount+".3",
|
5421 |
* giCount+".4" ]
|
5422 |
* );
|
5423 |
+
*
|
5424 |
* giCount++;
|
5425 |
* }
|
5426 |
*/
|
5427 |
+
this.fnAddData = function( data, redraw )
|
5428 |
{
|
5429 |
+
var api = this.api( true );
|
5430 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5431 |
/* Check if we want to add multiple rows or not */
|
5432 |
+
var rows = $.isArray(data) && ( $.isArray(data[0]) || $.isPlainObject(data[0]) ) ?
|
5433 |
+
api.rows.add( data ) :
|
5434 |
+
api.row.add( data );
|
5435 |
+
|
5436 |
+
if ( redraw === undefined || redraw ) {
|
5437 |
+
api.draw();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5438 |
}
|
5439 |
+
|
5440 |
+
return rows.flatten().toArray();
|
5441 |
};
|
5442 |
|
5443 |
|
5444 |
/**
|
5445 |
+
* This function will make DataTables recalculate the column sizes, based on the data
|
5446 |
+
* contained in the table and the sizes applied to the columns (in the DOM, CSS or
|
5447 |
+
* through the sWidth parameter). This can be useful when the width of the table's
|
5448 |
* parent element changes (for example a window resize).
|
5449 |
* @param {boolean} [bRedraw=true] Redraw the table or not, you will typically want to
|
5450 |
* @dtopt API
|
5451 |
+
* @deprecated Since v1.10
|
5452 |
*
|
5453 |
* @example
|
5454 |
* $(document).ready(function() {
|
5456 |
* "sScrollY": "200px",
|
5457 |
* "bPaginate": false
|
5458 |
* } );
|
5459 |
+
*
|
5460 |
* $(window).bind('resize', function () {
|
5461 |
* oTable.fnAdjustColumnSizing();
|
5462 |
* } );
|
5464 |
*/
|
5465 |
this.fnAdjustColumnSizing = function ( bRedraw )
|
5466 |
{
|
5467 |
+
var api = this.api( true ).columns.adjust();
|
5468 |
+
var settings = api.settings()[0];
|
5469 |
+
var scroll = settings.oScroll;
|
5470 |
+
|
5471 |
+
if ( bRedraw === undefined || bRedraw ) {
|
5472 |
+
api.draw( false );
|
5473 |
}
|
5474 |
+
else if ( scroll.sX !== "" || scroll.sY !== "" ) {
|
|
|
5475 |
/* If not redrawing, but scrolling, we want to apply the new column sizes anyway */
|
5476 |
+
_fnScrollDraw( settings );
|
5477 |
}
|
5478 |
};
|
5479 |
|
5482 |
* Quickly and simply clear a table
|
5483 |
* @param {bool} [bRedraw=true] redraw the table or not
|
5484 |
* @dtopt API
|
5485 |
+
* @deprecated Since v1.10
|
5486 |
*
|
5487 |
* @example
|
5488 |
* $(document).ready(function() {
|
5489 |
* var oTable = $('#example').dataTable();
|
5490 |
+
*
|
5491 |
* // Immediately 'nuke' the current rows (perhaps waiting for an Ajax callback...)
|
5492 |
* oTable.fnClearTable();
|
5493 |
* } );
|
5494 |
*/
|
5495 |
this.fnClearTable = function( bRedraw )
|
5496 |
{
|
5497 |
+
var api = this.api( true ).clear();
|
5498 |
+
|
5499 |
+
if ( bRedraw === undefined || bRedraw ) {
|
5500 |
+
api.draw();
|
|
|
|
|
|
|
5501 |
}
|
5502 |
};
|
5503 |
|
5504 |
|
5505 |
/**
|
5506 |
+
* The exact opposite of 'opening' a row, this function will close any rows which
|
5507 |
* are currently 'open'.
|
5508 |
* @param {node} nTr the table row to 'close'
|
5509 |
* @returns {int} 0 on success, or 1 if failed (can't find the row)
|
5510 |
* @dtopt API
|
5511 |
+
* @deprecated Since v1.10
|
5512 |
*
|
5513 |
* @example
|
5514 |
* $(document).ready(function() {
|
5515 |
* var oTable;
|
5516 |
+
*
|
5517 |
* // 'open' an information row when a row is clicked on
|
5518 |
* $('#example tbody tr').click( function () {
|
5519 |
* if ( oTable.fnIsOpen(this) ) {
|
5522 |
* oTable.fnOpen( this, "Temporary row opened", "info_row" );
|
5523 |
* }
|
5524 |
* } );
|
5525 |
+
*
|
5526 |
* oTable = $('#example').dataTable();
|
5527 |
* } );
|
5528 |
*/
|
5529 |
this.fnClose = function( nTr )
|
5530 |
{
|
5531 |
+
this.api( true ).row( nTr ).child.hide();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5532 |
};
|
5533 |
|
5534 |
|
5535 |
/**
|
5536 |
* Remove a row for the table
|
5537 |
+
* @param {mixed} target The index of the row from aoData to be deleted, or
|
5538 |
* the TR element you want to delete
|
5539 |
+
* @param {function|null} [callBack] Callback function
|
5540 |
+
* @param {bool} [redraw=true] Redraw the table or not
|
5541 |
* @returns {array} The row that was deleted
|
5542 |
* @dtopt API
|
5543 |
+
* @deprecated Since v1.10
|
5544 |
*
|
5545 |
* @example
|
5546 |
* $(document).ready(function() {
|
5547 |
* var oTable = $('#example').dataTable();
|
5548 |
+
*
|
5549 |
* // Immediately remove the first row
|
5550 |
* oTable.fnDeleteRow( 0 );
|
5551 |
* } );
|
5552 |
*/
|
5553 |
+
this.fnDeleteRow = function( target, callback, redraw )
|
5554 |
{
|
5555 |
+
var api = this.api( true );
|
5556 |
+
var rows = api.rows( target );
|
5557 |
+
var settings = rows.settings()[0];
|
5558 |
+
var data = settings.aoData[ rows[0][0] ];
|
|
|
|
|
|
|
|
|
|
|
5559 |
|
5560 |
+
rows.remove();
|
5561 |
+
|
5562 |
+
if ( callback ) {
|
5563 |
+
callback.call( this, settings, data );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5564 |
}
|
5565 |
+
|
5566 |
+
if ( redraw === undefined || redraw ) {
|
5567 |
+
api.draw();
|
|
|
|
|
5568 |
}
|
5569 |
+
|
5570 |
+
return data;
|
5571 |
};
|
5572 |
|
5573 |
|
5574 |
/**
|
5575 |
+
* Restore the table to it's original state in the DOM by removing all of DataTables
|
5576 |
* enhancements, alterations to the DOM structure of the table and event listeners.
|
5577 |
+
* @param {boolean} [remove=false] Completely remove the table from the DOM
|
5578 |
* @dtopt API
|
5579 |
+
* @deprecated Since v1.10
|
5580 |
*
|
5581 |
* @example
|
5582 |
* $(document).ready(function() {
|
5585 |
* oTable.fnDestroy();
|
5586 |
* } );
|
5587 |
*/
|
5588 |
+
this.fnDestroy = function ( remove )
|
5589 |
{
|
5590 |
+
this.api( true ).destroy( remove );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5591 |
};
|
5592 |
|
5593 |
|
5594 |
/**
|
5595 |
* Redraw the table
|
5596 |
+
* @param {bool} [complete=true] Re-filter and resort (if enabled) the table before the draw.
|
5597 |
* @dtopt API
|
5598 |
+
* @deprecated Since v1.10
|
5599 |
*
|
5600 |
* @example
|
5601 |
* $(document).ready(function() {
|
5602 |
* var oTable = $('#example').dataTable();
|
5603 |
+
*
|
5604 |
* // Re-draw the table - you wouldn't want to do it here, but it's an example :-)
|
5605 |
* oTable.fnDraw();
|
5606 |
* } );
|
5607 |
*/
|
5608 |
+
this.fnDraw = function( complete )
|
5609 |
{
|
5610 |
+
// Note that this isn't an exact match to the old call to _fnDraw - it takes
|
5611 |
+
// into account the new data, but can old position.
|
5612 |
+
this.api( true ).draw( ! complete );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5613 |
};
|
5614 |
|
5615 |
|
5622 |
* @param {bool} [bShowGlobal=true] Show the input global filter in it's input box(es)
|
5623 |
* @param {bool} [bCaseInsensitive=true] Do case-insensitive matching (true) or not (false)
|
5624 |
* @dtopt API
|
5625 |
+
* @deprecated Since v1.10
|
5626 |
*
|
5627 |
* @example
|
5628 |
* $(document).ready(function() {
|
5629 |
* var oTable = $('#example').dataTable();
|
5630 |
+
*
|
5631 |
* // Sometime later - filter...
|
5632 |
* oTable.fnFilter( 'test string' );
|
5633 |
* } );
|
5634 |
*/
|
5635 |
this.fnFilter = function( sInput, iColumn, bRegex, bSmart, bShowGlobal, bCaseInsensitive )
|
5636 |
{
|
5637 |
+
var api = this.api( true );
|
5638 |
+
|
5639 |
+
if ( iColumn === null || iColumn === undefined ) {
|
5640 |
+
api.search( sInput, bRegex, bSmart, bCaseInsensitive );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5641 |
}
|
5642 |
+
else {
|
5643 |
+
api.column( iColumn ).search( sInput, bRegex, bSmart, bCaseInsensitive );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5644 |
}
|
5645 |
+
|
5646 |
+
api.draw();
|
5647 |
};
|
5648 |
|
5649 |
|
5650 |
/**
|
5651 |
+
* Get the data for the whole table, an individual row or an individual cell based on the
|
5652 |
* provided parameters.
|
5653 |
+
* @param {int|node} [src] A TR row node, TD/TH cell node or an integer. If given as
|
5654 |
* a TR node then the data source for the whole row will be returned. If given as a
|
5655 |
* TD/TH cell node then iCol will be automatically calculated and the data for the
|
5656 |
* cell returned. If given as an integer, then this is treated as the aoData internal
|
5657 |
* data index for the row (see fnGetPosition) and the data for that row used.
|
5658 |
+
* @param {int} [col] Optional column index that you want the data of.
|
5659 |
* @returns {array|object|string} If mRow is undefined, then the data for all rows is
|
5660 |
* returned. If mRow is defined, just data for that row, and is iCol is
|
5661 |
* defined, only data for the designated cell is returned.
|
5662 |
* @dtopt API
|
5663 |
+
* @deprecated Since v1.10
|
5664 |
*
|
5665 |
* @example
|
5666 |
* // Row data
|
5684 |
* } );
|
5685 |
* } );
|
5686 |
*/
|
5687 |
+
this.fnGetData = function( src, col )
|
5688 |
{
|
5689 |
+
var api = this.api( true );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5690 |
|
5691 |
+
if ( src !== undefined ) {
|
5692 |
+
var type = src.nodeName ? src.nodeName.toLowerCase() : '';
|
5693 |
+
|
5694 |
+
return col !== undefined || type == 'td' || type == 'th' ?
|
5695 |
+
api.cell( src, col ).data() :
|
5696 |
+
api.row( src ).data() || null;
|
5697 |
}
|
5698 |
+
|
5699 |
+
return api.data().toArray();
|
5700 |
};
|
5701 |
|
5702 |
|
5703 |
/**
|
5704 |
+
* Get an array of the TR nodes that are used in the table's body. Note that you will
|
5705 |
+
* typically want to use the '$' API method in preference to this as it is more
|
5706 |
* flexible.
|
5707 |
* @param {int} [iRow] Optional row index for the TR element you want
|
5708 |
* @returns {array|node} If iRow is undefined, returns an array of all TR elements
|
5709 |
* in the table's body, or iRow is defined, just the TR element requested.
|
5710 |
* @dtopt API
|
5711 |
+
* @deprecated Since v1.10
|
5712 |
*
|
5713 |
* @example
|
5714 |
* $(document).ready(function() {
|
5715 |
* var oTable = $('#example').dataTable();
|
5716 |
+
*
|
5717 |
* // Get the nodes from the table
|
5718 |
* var nNodes = oTable.fnGetNodes( );
|
5719 |
* } );
|
5720 |
*/
|
5721 |
this.fnGetNodes = function( iRow )
|
5722 |
{
|
5723 |
+
var api = this.api( true );
|
5724 |
+
|
5725 |
+
return iRow !== undefined ?
|
5726 |
+
api.row( iRow ).node() :
|
5727 |
+
api.rows().nodes().flatten().toArray();
|
|
|
|
|
5728 |
};
|
5729 |
|
5730 |
|
5731 |
/**
|
5732 |
* Get the array indexes of a particular cell from it's DOM element
|
5733 |
* and column index including hidden columns
|
5734 |
+
* @param {node} node this can either be a TR, TD or TH in the table's body
|
5735 |
* @returns {int} If nNode is given as a TR, then a single index is returned, or
|
5736 |
+
* if given as a cell, an array of [row index, column index (visible),
|
5737 |
* column index (all)] is given.
|
5738 |
* @dtopt API
|
5739 |
+
* @deprecated Since v1.10
|
5740 |
*
|
5741 |
* @example
|
5742 |
* $(document).ready(function() {
|
5743 |
* $('#example tbody td').click( function () {
|
5744 |
* // Get the position of the current data from the node
|
5745 |
* var aPos = oTable.fnGetPosition( this );
|
5746 |
+
*
|
5747 |
* // Get the data array for this row
|
5748 |
* var aData = oTable.fnGetData( aPos[0] );
|
5749 |
+
*
|
5750 |
* // Update the data array and return the value
|
5751 |
* aData[ aPos[1] ] = 'clicked';
|
5752 |
* this.innerHTML = 'clicked';
|
5753 |
* } );
|
5754 |
+
*
|
5755 |
* // Init DataTables
|
5756 |
* oTable = $('#example').dataTable();
|
5757 |
* } );
|
5758 |
*/
|
5759 |
+
this.fnGetPosition = function( node )
|
5760 |
{
|
5761 |
+
var api = this.api( true );
|
5762 |
+
var nodeName = node.nodeName.toUpperCase();
|
5763 |
+
|
5764 |
+
if ( nodeName == 'TR' ) {
|
5765 |
+
return api.row( node ).index();
|
|
|
5766 |
}
|
5767 |
+
else if ( nodeName == 'TD' || nodeName == 'TH' ) {
|
5768 |
+
var cell = api.cell( node ).index();
|
5769 |
+
|
5770 |
+
return [
|
5771 |
+
cell.row,
|
5772 |
+
cell.columnVisible,
|
5773 |
+
cell.column
|
5774 |
+
];
|
5775 |
}
|
5776 |
return null;
|
5777 |
};
|
5782 |
* @param {node} nTr the table row to check
|
5783 |
* @returns {boolean} true if the row is currently open, false otherwise
|
5784 |
* @dtopt API
|
5785 |
+
* @deprecated Since v1.10
|
5786 |
*
|
5787 |
* @example
|
5788 |
* $(document).ready(function() {
|
5789 |
* var oTable;
|
5790 |
+
*
|
5791 |
* // 'open' an information row when a row is clicked on
|
5792 |
* $('#example tbody tr').click( function () {
|
5793 |
* if ( oTable.fnIsOpen(this) ) {
|
5796 |
* oTable.fnOpen( this, "Temporary row opened", "info_row" );
|
5797 |
* }
|
5798 |
* } );
|
5799 |
+
*
|
5800 |
* oTable = $('#example').dataTable();
|
5801 |
* } );
|
5802 |
*/
|
5803 |
this.fnIsOpen = function( nTr )
|
5804 |
{
|
5805 |
+
return this.api( true ).row( nTr ).child.isShown();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5806 |
};
|
5807 |
|
5808 |
|
5809 |
/**
|
5810 |
+
* This function will place a new row directly after a row which is currently
|
5811 |
+
* on display on the page, with the HTML contents that is passed into the
|
5812 |
+
* function. This can be used, for example, to ask for confirmation that a
|
5813 |
* particular record should be deleted.
|
5814 |
* @param {node} nTr The table row to 'open'
|
5815 |
* @param {string|node|jQuery} mHtml The HTML to put into the row
|
5818 |
* first parameter, is not found in the table, this method will silently
|
5819 |
* return.
|
5820 |
* @dtopt API
|
5821 |
+
* @deprecated Since v1.10
|
5822 |
*
|
5823 |
* @example
|
5824 |
* $(document).ready(function() {
|
5825 |
* var oTable;
|
5826 |
+
*
|
5827 |
* // 'open' an information row when a row is clicked on
|
5828 |
* $('#example tbody tr').click( function () {
|
5829 |
* if ( oTable.fnIsOpen(this) ) {
|
5832 |
* oTable.fnOpen( this, "Temporary row opened", "info_row" );
|
5833 |
* }
|
5834 |
* } );
|
5835 |
+
*
|
5836 |
* oTable = $('#example').dataTable();
|
5837 |
* } );
|
5838 |
*/
|
5839 |
this.fnOpen = function( nTr, mHtml, sClass )
|
5840 |
{
|
5841 |
+
return this.api( true )
|
5842 |
+
.row( nTr )
|
5843 |
+
.child( mHtml, sClass )
|
5844 |
+
.show()
|
5845 |
+
.child()[0];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5846 |
};
|
5847 |
|
5848 |
|
5849 |
/**
|
5850 |
+
* Change the pagination - provides the internal logic for pagination in a simple API
|
5851 |
+
* function. With this function you can have a DataTables table go to the next,
|
5852 |
* previous, first or last pages.
|
5853 |
* @param {string|int} mAction Paging action to take: "first", "previous", "next" or "last"
|
5854 |
* or page number to jump to (integer), note that page 0 is the first page.
|
5855 |
* @param {bool} [bRedraw=true] Redraw the table or not
|
5856 |
* @dtopt API
|
5857 |
+
* @deprecated Since v1.10
|
5858 |
*
|
5859 |
* @example
|
5860 |
* $(document).ready(function() {
|
5864 |
*/
|
5865 |
this.fnPageChange = function ( mAction, bRedraw )
|
5866 |
{
|
5867 |
+
var api = this.api( true ).page( mAction );
|
5868 |
+
|
5869 |
+
if ( bRedraw === undefined || bRedraw ) {
|
5870 |
+
api.draw(false);
|
|
|
|
|
|
|
5871 |
}
|
5872 |
};
|
5873 |
|
5878 |
* @param {bool} bShow Show (true) or hide (false) the column
|
5879 |
* @param {bool} [bRedraw=true] Redraw the table or not
|
5880 |
* @dtopt API
|
5881 |
+
* @deprecated Since v1.10
|
5882 |
*
|
5883 |
* @example
|
5884 |
* $(document).ready(function() {
|
5885 |
* var oTable = $('#example').dataTable();
|
5886 |
+
*
|
5887 |
* // Hide the second column after initialisation
|
5888 |
* oTable.fnSetColumnVis( 1, false );
|
5889 |
* } );
|
5890 |
*/
|
5891 |
this.fnSetColumnVis = function ( iCol, bShow, bRedraw )
|
5892 |
{
|
5893 |
+
var api = this.api( true ).column( iCol ).visible( bShow );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5894 |
|
5895 |
+
if ( bRedraw === undefined || bRedraw ) {
|
5896 |
+
api.columns.adjust().draw();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5897 |
}
|
|
|
|
|
5898 |
};
|
5899 |
|
5900 |
|
5901 |
/**
|
5902 |
* Get the settings for a particular table for external manipulation
|
5903 |
+
* @returns {object} DataTables settings object. See
|
5904 |
* {@link DataTable.models.oSettings}
|
5905 |
* @dtopt API
|
5906 |
+
* @deprecated Since v1.10
|
5907 |
*
|
5908 |
* @example
|
5909 |
* $(document).ready(function() {
|
5910 |
* var oTable = $('#example').dataTable();
|
5911 |
* var oSettings = oTable.fnSettings();
|
5912 |
+
*
|
5913 |
* // Show an example parameter from the settings
|
5914 |
* alert( oSettings._iDisplayStart );
|
5915 |
* } );
|
5916 |
*/
|
5917 |
this.fnSettings = function()
|
5918 |
{
|
5919 |
+
return _fnSettingsFromNode( this[_ext.iApiIndex] );
|
5920 |
};
|
5921 |
|
5922 |
|
5923 |
/**
|
5924 |
* Sort the table by a particular column
|
5925 |
+
* @param {int} iCol the data index to sort on. Note that this will not match the
|
5926 |
* 'display index' if you have hidden data entries
|
5927 |
* @dtopt API
|
5928 |
+
* @deprecated Since v1.10
|
5929 |
*
|
5930 |
* @example
|
5931 |
* $(document).ready(function() {
|
5932 |
* var oTable = $('#example').dataTable();
|
5933 |
+
*
|
5934 |
* // Sort immediately with columns 0 and 1
|
5935 |
* oTable.fnSort( [ [0,'asc'], [1,'asc'] ] );
|
5936 |
* } );
|
5937 |
*/
|
5938 |
this.fnSort = function( aaSort )
|
5939 |
{
|
5940 |
+
this.api( true ).order( aaSort ).draw();
|
|
|
|
|
5941 |
};
|
5942 |
|
5943 |
|
5947 |
* @param {int} iColumn the column that a click on this node will sort on
|
5948 |
* @param {function} [fnCallback] callback function when sort is run
|
5949 |
* @dtopt API
|
5950 |
+
* @deprecated Since v1.10
|
5951 |
*
|
5952 |
* @example
|
5953 |
* $(document).ready(function() {
|
5954 |
* var oTable = $('#example').dataTable();
|
5955 |
+
*
|
5956 |
* // Sort on column 1, when 'sorter' is clicked on
|
5957 |
* oTable.fnSortListener( document.getElementById('sorter'), 1 );
|
5958 |
* } );
|
5959 |
*/
|
5960 |
this.fnSortListener = function( nNode, iColumn, fnCallback )
|
5961 |
{
|
5962 |
+
this.api( true ).order.listener( nNode, iColumn, fnCallback );
|
|
|
5963 |
};
|
5964 |
|
5965 |
|
5970 |
* self-referencing in order to make the multi column updates easier.
|
5971 |
* @param {object|array|string} mData Data to update the cell/row with
|
5972 |
* @param {node|int} mRow TR element you want to update or the aoData index
|
5973 |
+
* @param {int} [iColumn] The column to update, give as null or undefined to
|
5974 |
+
* update a whole row.
|
5975 |
* @param {bool} [bRedraw=true] Redraw the table or not
|
5976 |
* @param {bool} [bAction=true] Perform pre-draw actions or not
|
5977 |
* @returns {int} 0 on success, 1 on error
|
5978 |
* @dtopt API
|
5979 |
+
* @deprecated Since v1.10
|
5980 |
*
|
5981 |
* @example
|
5982 |
* $(document).ready(function() {
|
5983 |
* var oTable = $('#example').dataTable();
|
5984 |
* oTable.fnUpdate( 'Example update', 0, 0 ); // Single cell
|
5985 |
+
* oTable.fnUpdate( ['a', 'b', 'c', 'd', 'e'], $('tbody tr')[0] ); // Row
|
5986 |
* } );
|
5987 |
*/
|
5988 |
this.fnUpdate = function( mData, mRow, iColumn, bRedraw, bAction )
|
5989 |
{
|
5990 |
+
var api = this.api( true );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5991 |
|
5992 |
+
if ( iColumn === undefined || iColumn === null ) {
|
5993 |
+
api.row( mRow ).data( mData );
|
|
|
|
|
5994 |
}
|
5995 |
+
else {
|
5996 |
+
api.cell( mRow, iColumn ).data( mData );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5997 |
}
|
5998 |
+
|
5999 |
+
if ( bAction === undefined || bAction ) {
|
6000 |
+
api.columns.adjust();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6001 |
}
|
6002 |
+
|
6003 |
+
if ( bRedraw === undefined || bRedraw ) {
|
6004 |
+
api.draw();
|
|
|
|
|
6005 |
}
|
6006 |
return 0;
|
6007 |
};
|
6016 |
* version, or false if this version of DataTales is not suitable
|
6017 |
* @method
|
6018 |
* @dtopt API
|
6019 |
+
* @deprecated Since v1.10
|
6020 |
*
|
6021 |
* @example
|
6022 |
* $(document).ready(function() {
|
6024 |
* alert( oTable.fnVersionCheck( '1.9.0' ) );
|
6025 |
* } );
|
6026 |
*/
|
6027 |
+
this.fnVersionCheck = _ext.fnVersionCheck;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6028 |
|
6029 |
+
|
6030 |
+
var _that = this;
|
6031 |
+
var emptyInit = options === undefined;
|
6032 |
+
var len = this.length;
|
6033 |
+
|
6034 |
+
if ( emptyInit ) {
|
6035 |
+
options = {};
|
|
|
|
|
|
|
|
|
|
|
|
|
6036 |
}
|
6037 |
+
|
6038 |
+
this.oApi = this.internal = _ext.internal;
|
6039 |
+
|
6040 |
+
// Extend with old style plug-in API methods
|
6041 |
+
for ( var fn in DataTable.ext.internal ) {
|
6042 |
+
if ( fn ) {
|
6043 |
+
this[fn] = _fnExternApiFunc(fn);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6044 |
}
|
6045 |
}
|
6046 |
+
|
|
|
|
|
6047 |
this.each(function() {
|
6048 |
+
// For each initialisation we want to give it a clean initialisation
|
6049 |
+
// object that can be bashed around
|
6050 |
+
var o = {};
|
6051 |
+
var oInit = len > 1 ? // optimisation for single table case
|
6052 |
+
_fnExtend( o, options, true ) :
|
6053 |
+
options;
|
6054 |
+
|
6055 |
+
/*global oInit,_that,emptyInit*/
|
6056 |
var i=0, iLen, j, jLen, k, kLen;
|
6057 |
var sId = this.getAttribute( 'id' );
|
6058 |
var bInitHandedOff = false;
|
6059 |
+
var defaults = DataTable.defaults;
|
6060 |
+
var $this = $(this);
|
6061 |
|
6062 |
|
6063 |
/* Sanity check */
|
6064 |
if ( this.nodeName.toLowerCase() != 'table' )
|
6065 |
{
|
6066 |
+
_fnLog( null, 0, 'Non-table node initialisation ('+this.nodeName+')', 2 );
|
|
|
6067 |
return;
|
6068 |
}
|
6069 |
|
6070 |
+
/* Backwards compatibility for the defaults */
|
6071 |
+
_fnCompatOpts( defaults );
|
6072 |
+
_fnCompatCols( defaults.column );
|
6073 |
+
|
6074 |
+
/* Convert the camel-case defaults to Hungarian */
|
6075 |
+
_fnCamelToHungarian( defaults, defaults, true );
|
6076 |
+
_fnCamelToHungarian( defaults.column, defaults.column, true );
|
6077 |
+
|
6078 |
+
/* Setting up the initialisation object */
|
6079 |
+
_fnCamelToHungarian( defaults, $.extend( oInit, $this.data() ) );
|
6080 |
+
|
6081 |
+
|
6082 |
+
|
6083 |
/* Check to see if we are re-initialising a table */
|
6084 |
+
var allSettings = DataTable.settings;
|
6085 |
+
for ( i=0, iLen=allSettings.length ; i<iLen ; i++ )
|
6086 |
{
|
6087 |
+
var s = allSettings[i];
|
6088 |
+
|
6089 |
/* Base check on table node */
|
6090 |
+
if ( s.nTable == this || s.nTHead.parentNode == this || (s.nTFoot && s.nTFoot.parentNode == this) )
|
6091 |
{
|
6092 |
+
var bRetrieve = oInit.bRetrieve !== undefined ? oInit.bRetrieve : defaults.bRetrieve;
|
6093 |
+
var bDestroy = oInit.bDestroy !== undefined ? oInit.bDestroy : defaults.bDestroy;
|
6094 |
+
|
6095 |
+
if ( emptyInit || bRetrieve )
|
6096 |
{
|
6097 |
+
return s.oInstance;
|
6098 |
}
|
6099 |
+
else if ( bDestroy )
|
6100 |
{
|
6101 |
+
s.oInstance.fnDestroy();
|
6102 |
break;
|
6103 |
}
|
6104 |
else
|
6105 |
{
|
6106 |
+
_fnLog( s, 0, 'Cannot reinitialise DataTable', 3 );
|
|
|
|
|
6107 |
return;
|
6108 |
}
|
6109 |
}
|
6110 |
+
|
6111 |
/* If the element we are initialising has the same ID as a table which was previously
|
6112 |
* initialised, but the table nodes don't match (from before) then we destroy the old
|
6113 |
* instance by simply deleting it. This is under the assumption that the table has been
|
6114 |
* destroyed by other methods. Anyone using non-id selectors will need to do this manually
|
6115 |
*/
|
6116 |
+
if ( s.sTableId == this.id )
|
6117 |
{
|
6118 |
+
allSettings.splice( i, 1 );
|
6119 |
break;
|
6120 |
}
|
6121 |
}
|
6123 |
/* Ensure the table has an ID - required for accessibility */
|
6124 |
if ( sId === null || sId === "" )
|
6125 |
{
|
6126 |
+
sId = "DataTables_Table_"+(DataTable.ext._unique++);
|
6127 |
this.id = sId;
|
6128 |
}
|
6129 |
|
6130 |
/* Create the settings object for this table and set some of the default parameters */
|
6131 |
var oSettings = $.extend( true, {}, DataTable.models.oSettings, {
|
6132 |
"nTable": this,
|
6133 |
+
"oApi": _that.internal,
|
6134 |
"oInit": oInit,
|
6135 |
+
"sDestroyWidth": $this[0].style.width,
|
6136 |
"sInstance": sId,
|
6137 |
"sTableId": sId
|
6138 |
} );
|
6139 |
+
allSettings.push( oSettings );
|
6140 |
|
6141 |
// Need to add the instance after the instance after the settings object has been added
|
6142 |
// to the settings array, so we can self reference the table instance if more than one
|
6143 |
+
oSettings.oInstance = (_that.length===1) ? _that : $this.dataTable();
|
|
|
|
|
|
|
|
|
|
|
|
|
6144 |
|
6145 |
// Backwards compatibility, before we apply all the defaults
|
6146 |
+
_fnCompatOpts( oInit );
|
6147 |
+
|
6148 |
if ( oInit.oLanguage )
|
6149 |
{
|
6150 |
_fnLanguageCompat( oInit.oLanguage );
|
6151 |
}
|
6152 |
|
6153 |
+
// If the length menu is given, but the init display length is not, use the length menu
|
6154 |
+
if ( oInit.aLengthMenu && ! oInit.iDisplayLength )
|
6155 |
+
{
|
6156 |
+
oInit.iDisplayLength = $.isArray( oInit.aLengthMenu[0] ) ?
|
6157 |
+
oInit.aLengthMenu[0][0] : oInit.aLengthMenu[0];
|
6158 |
+
}
|
6159 |
+
|
6160 |
+
// Apply the defaults and init options to make a single init object will all
|
6161 |
+
// options defined from defaults and instance options.
|
6162 |
+
oInit = _fnExtend( $.extend( true, {}, defaults ), oInit );
|
6163 |
+
|
6164 |
|
6165 |
// Map the initialisation options onto the settings object
|
6166 |
+
_fnMap( oSettings.oFeatures, oInit, [
|
6167 |
+
"bPaginate",
|
6168 |
+
"bLengthChange",
|
6169 |
+
"bFilter",
|
6170 |
+
"bSort",
|
6171 |
+
"bSortMulti",
|
6172 |
+
"bInfo",
|
6173 |
+
"bProcessing",
|
6174 |
+
"bAutoWidth",
|
6175 |
+
"bSortClasses",
|
6176 |
+
"bServerSide",
|
6177 |
+
"bDeferRender"
|
6178 |
+
] );
|
6179 |
+
_fnMap( oSettings, oInit, [
|
6180 |
+
"asStripeClasses",
|
6181 |
+
"ajax",
|
6182 |
+
"fnServerData",
|
6183 |
+
"fnFormatNumber",
|
6184 |
+
"sServerMethod",
|
6185 |
+
"aaSorting",
|
6186 |
+
"aaSortingFixed",
|
6187 |
+
"aLengthMenu",
|
6188 |
+
"sPaginationType",
|
6189 |
+
"sAjaxSource",
|
6190 |
+
"sAjaxDataProp",
|
6191 |
+
"iStateDuration",
|
6192 |
+
"sDom",
|
6193 |
+
"bSortCellsTop",
|
6194 |
+
"iTabIndex",
|
6195 |
+
"fnStateLoadCallback",
|
6196 |
+
"fnStateSaveCallback",
|
6197 |
+
"renderer",
|
6198 |
+
"searchDelay",
|
6199 |
+
[ "iCookieDuration", "iStateDuration" ], // backwards compat
|
6200 |
+
[ "oSearch", "oPreviousSearch" ],
|
6201 |
+
[ "aoSearchCols", "aoPreSearchCols" ],
|
6202 |
+
[ "iDisplayLength", "_iDisplayLength" ],
|
6203 |
+
[ "bJQueryUI", "bJUI" ]
|
6204 |
+
] );
|
6205 |
+
_fnMap( oSettings.oScroll, oInit, [
|
6206 |
+
[ "sScrollX", "sX" ],
|
6207 |
+
[ "sScrollXInner", "sXInner" ],
|
6208 |
+
[ "sScrollY", "sY" ],
|
6209 |
+
[ "bScrollCollapse", "bCollapse" ]
|
6210 |
+
] );
|
6211 |
_fnMap( oSettings.oLanguage, oInit, "fnInfoCallback" );
|
6212 |
|
6213 |
/* Callback functions which are array driven */
|
6223 |
_fnCallbackReg( oSettings, 'aoInitComplete', oInit.fnInitComplete, 'user' );
|
6224 |
_fnCallbackReg( oSettings, 'aoPreDrawCallback', oInit.fnPreDrawCallback, 'user' );
|
6225 |
|
6226 |
+
var oClasses = oSettings.oClasses;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6227 |
|
6228 |
+
// @todo Remove in 1.11
|
6229 |
if ( oInit.bJQueryUI )
|
6230 |
{
|
6231 |
+
/* Use the JUI classes object for display. You could clone the oStdClasses object if
|
6232 |
+
* you want to have multiple tables with multiple independent classes
|
6233 |
*/
|
6234 |
+
$.extend( oClasses, DataTable.ext.oJUIClasses, oInit.oClasses );
|
6235 |
+
|
6236 |
+
if ( oInit.sDom === defaults.sDom && defaults.sDom === "lfrtip" )
|
6237 |
{
|
6238 |
/* Set the DOM to use a layout suitable for jQuery UI's theming */
|
6239 |
oSettings.sDom = '<"H"lfr>t<"F"ip>';
|
6240 |
}
|
6241 |
+
|
6242 |
+
if ( ! oSettings.renderer ) {
|
6243 |
+
oSettings.renderer = 'jqueryui';
|
6244 |
+
}
|
6245 |
+
else if ( $.isPlainObject( oSettings.renderer ) && ! oSettings.renderer.header ) {
|
6246 |
+
oSettings.renderer.header = 'jqueryui';
|
6247 |
+
}
|
6248 |
}
|
6249 |
else
|
6250 |
{
|
6251 |
+
$.extend( oClasses, DataTable.ext.classes, oInit.oClasses );
|
6252 |
}
|
6253 |
+
$this.addClass( oClasses.sTable );
|
6254 |
|
6255 |
/* Calculate the scroll bar width and cache it for use later on */
|
6256 |
if ( oSettings.oScroll.sX !== "" || oSettings.oScroll.sY !== "" )
|
6257 |
{
|
6258 |
oSettings.oScroll.iBarWidth = _fnScrollBarWidth();
|
6259 |
}
|
6260 |
+
if ( oSettings.oScroll.sX === true ) { // Easy initialisation of x-scrolling
|
6261 |
+
oSettings.oScroll.sX = '100%';
|
6262 |
+
}
|
6263 |
|
6264 |
if ( oSettings.iInitDisplayStart === undefined )
|
6265 |
{
|
6268 |
oSettings._iDisplayStart = oInit.iDisplayStart;
|
6269 |
}
|
6270 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6271 |
if ( oInit.iDeferLoading !== null )
|
6272 |
{
|
6273 |
oSettings.bDeferLoading = true;
|
6276 |
oSettings._iRecordsTotal = tmp ? oInit.iDeferLoading[1] : oInit.iDeferLoading;
|
6277 |
}
|
6278 |
|
|
|
|
|
|
|
|
|
|
|
6279 |
/* Language definitions */
|
6280 |
+
var oLanguage = oSettings.oLanguage;
|
6281 |
+
$.extend( true, oLanguage, oInit.oLanguage );
|
6282 |
+
|
6283 |
+
if ( oLanguage.sUrl !== "" )
|
6284 |
{
|
6285 |
/* Get the language definitions from a file - because this Ajax call makes the language
|
6286 |
+
* get async to the remainder of this function we use bInitHandedOff to indicate that
|
6287 |
* _fnInitialise will be fired by the returned Ajax handler, rather than the constructor
|
6288 |
*/
|
6289 |
+
$.ajax( {
|
6290 |
+
dataType: 'json',
|
6291 |
+
url: oLanguage.sUrl,
|
6292 |
+
success: function ( json ) {
|
6293 |
+
_fnLanguageCompat( json );
|
6294 |
+
_fnCamelToHungarian( defaults.oLanguage, json );
|
6295 |
+
$.extend( true, oLanguage, json );
|
6296 |
+
_fnInitialise( oSettings );
|
6297 |
+
},
|
6298 |
+
error: function () {
|
6299 |
+
// Error occurred loading language file, continue on as best we can
|
6300 |
+
_fnInitialise( oSettings );
|
6301 |
+
}
|
6302 |
} );
|
6303 |
bInitHandedOff = true;
|
6304 |
}
|
|
|
|
|
|
|
|
|
|
|
6305 |
|
6306 |
/*
|
6307 |
* Stripes
|
6309 |
if ( oInit.asStripeClasses === null )
|
6310 |
{
|
6311 |
oSettings.asStripeClasses =[
|
6312 |
+
oClasses.sStripeOdd,
|
6313 |
+
oClasses.sStripeEven
|
6314 |
];
|
6315 |
}
|
6316 |
|
6317 |
/* Remove row stripe classes if they are already on the table row */
|
6318 |
+
var stripeClasses = oSettings.asStripeClasses;
|
6319 |
+
var rowOne = $('tbody tr', this).eq(0);
|
6320 |
+
if ( $.inArray( true, $.map( stripeClasses, function(el, i) {
|
6321 |
+
return rowOne.hasClass(el);
|
6322 |
+
} ) ) !== -1 ) {
|
6323 |
+
$('tbody tr', this).removeClass( stripeClasses.join(' ') );
|
6324 |
+
oSettings.asDestroyStripes = stripeClasses.slice();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6325 |
}
|
6326 |
|
6327 |
/*
|
6354 |
/* Add the columns */
|
6355 |
for ( i=0, iLen=aoColumnsInit.length ; i<iLen ; i++ )
|
6356 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6357 |
_fnAddColumn( oSettings, anThs ? anThs[i] : null );
|
6358 |
}
|
6359 |
|
6362 |
_fnColumnOptions( oSettings, iCol, oDef );
|
6363 |
} );
|
6364 |
|
6365 |
+
/* HTML5 attribute detection - build an mData object automatically if the
|
6366 |
+
* attributes are found
|
|
|
|
|
6367 |
*/
|
6368 |
+
if ( rowOne.length ) {
|
6369 |
+
var a = function ( cell, name ) {
|
6370 |
+
return cell.getAttribute( 'data-'+name ) !== null ? name : null;
|
6371 |
+
};
|
6372 |
+
|
6373 |
+
$.each( _fnGetRowElements( oSettings, rowOne[0] ).cells, function (i, cell) {
|
6374 |
+
var col = oSettings.aoColumns[i];
|
6375 |
+
|
6376 |
+
if ( col.mData === i ) {
|
6377 |
+
var sort = a( cell, 'sort' ) || a( cell, 'order' );
|
6378 |
+
var filter = a( cell, 'filter' ) || a( cell, 'search' );
|
6379 |
+
|
6380 |
+
if ( sort !== null || filter !== null ) {
|
6381 |
+
col.mData = {
|
6382 |
+
_: i+'.display',
|
6383 |
+
sort: sort !== null ? i+'.@data-'+sort : undefined,
|
6384 |
+
type: sort !== null ? i+'.@data-'+sort : undefined,
|
6385 |
+
filter: filter !== null ? i+'.@data-'+filter : undefined
|
6386 |
+
};
|
6387 |
+
|
6388 |
+
_fnColumnOptions( oSettings, i );
|
6389 |
+
}
|
|
|
|
|
|
|
|
|
|
|
6390 |
}
|
6391 |
+
} );
|
6392 |
+
}
|
6393 |
+
|
6394 |
+
var features = oSettings.oFeatures;
|
6395 |
+
|
6396 |
+
/* Must be done after everything which can be overridden by the state saving! */
|
6397 |
+
if ( oInit.bStateSave )
|
6398 |
+
{
|
6399 |
+
features.bStateSave = true;
|
6400 |
+
_fnLoadState( oSettings, oInit );
|
6401 |
+
_fnCallbackReg( oSettings, 'aoDrawCallback', _fnSaveState, 'state_save' );
|
6402 |
+
}
|
6403 |
+
|
6404 |
+
|
6405 |
+
/*
|
6406 |
+
* Sorting
|
6407 |
+
* @todo For modularisation (1.11) this needs to do into a sort start up handler
|
6408 |
+
*/
|
6409 |
+
|
6410 |
+
// If aaSorting is not defined, then we use the first indicator in asSorting
|
6411 |
+
// in case that has been altered, so the default sort reflects that option
|
6412 |
+
if ( oInit.aaSorting === undefined )
|
6413 |
+
{
|
6414 |
+
var sorting = oSettings.aaSorting;
|
6415 |
+
for ( i=0, iLen=sorting.length ; i<iLen ; i++ )
|
6416 |
+
{
|
6417 |
+
sorting[i][1] = oSettings.aoColumns[ i ].asSorting[0];
|
6418 |
}
|
6419 |
}
|
6420 |
+
|
6421 |
/* Do a first pass on the sorting classes (allows any size changes to be taken into
|
6422 |
* account, and also will apply sorting disabled classes if disabled
|
6423 |
*/
|
6424 |
_fnSortingClasses( oSettings );
|
6425 |
|
6426 |
+
if ( features.bSort )
|
6427 |
+
{
|
6428 |
+
_fnCallbackReg( oSettings, 'aoDrawCallback', function () {
|
6429 |
+
if ( oSettings.bSorted ) {
|
6430 |
+
var aSort = _fnSortFlatten( oSettings );
|
6431 |
+
var sortedColumns = {};
|
6432 |
+
|
6433 |
+
$.each( aSort, function (i, val) {
|
6434 |
+
sortedColumns[ val.src ] = val.dir;
|
6435 |
+
} );
|
6436 |
+
|
6437 |
+
_fnCallbackFire( oSettings, null, 'order', [oSettings, aSort, sortedColumns] );
|
6438 |
+
_fnSortAria( oSettings );
|
6439 |
+
}
|
6440 |
+
} );
|
6441 |
+
}
|
6442 |
+
|
6443 |
+
_fnCallbackReg( oSettings, 'aoDrawCallback', function () {
|
6444 |
+
if ( oSettings.bSorted || _fnDataSource( oSettings ) === 'ssp' || features.bDeferRender ) {
|
6445 |
+
_fnSortingClasses( oSettings );
|
6446 |
+
}
|
6447 |
+
}, 'sc' );
|
6448 |
+
|
6449 |
|
6450 |
/*
|
6451 |
* Final init
|
6456 |
_fnBrowserDetect( oSettings );
|
6457 |
|
6458 |
// Work around for Webkit bug 83867 - store the caption-side before removing from doc
|
6459 |
+
var captions = $this.children('caption').each( function () {
|
6460 |
+
this._captionSide = $this.css('caption-side');
|
6461 |
+
} );
|
6462 |
+
|
6463 |
+
var thead = $this.children('thead');
|
6464 |
+
if ( thead.length === 0 )
|
6465 |
+
{
|
6466 |
+
thead = $('<thead/>').appendTo(this);
|
6467 |
+
}
|
6468 |
+
oSettings.nTHead = thead[0];
|
6469 |
+
|
6470 |
+
var tbody = $this.children('tbody');
|
6471 |
+
if ( tbody.length === 0 )
|
6472 |
+
{
|
6473 |
+
tbody = $('<tbody/>').appendTo(this);
|
6474 |
+
}
|
6475 |
+
oSettings.nTBody = tbody[0];
|
6476 |
+
|
6477 |
+
var tfoot = $this.children('tfoot');
|
6478 |
+
if ( tfoot.length === 0 && captions.length > 0 && (oSettings.oScroll.sX !== "" || oSettings.oScroll.sY !== "") )
|
6479 |
+
{
|
6480 |
+
// If we are a scrolling table, and no footer has been given, then we need to create
|
6481 |
+
// a tfoot element for the caption element to be appended to
|
6482 |
+
tfoot = $('<tfoot/>').appendTo(this);
|
6483 |
+
}
|
6484 |
+
|
6485 |
+
if ( tfoot.length === 0 || tfoot.children().length === 0 ) {
|
6486 |
+
$this.addClass( oClasses.sNoFooter );
|
6487 |
+
}
|
6488 |
+
else if ( tfoot.length > 0 ) {
|
6489 |
+
oSettings.nTFoot = tfoot[0];
|
6490 |
+
_fnDetectHeader( oSettings.aoFooter, oSettings.nTFoot );
|
6491 |
+
}
|
6492 |
+
|
6493 |
+
/* Check if there is data passing into the constructor */
|
6494 |
+
if ( oInit.aaData )
|
6495 |
+
{
|
6496 |
+
for ( i=0 ; i<oInit.aaData.length ; i++ )
|
6497 |
+
{
|
6498 |
+
_fnAddData( oSettings, oInit.aaData[ i ] );
|
6499 |
+
}
|
6500 |
+
}
|
6501 |
+
else if ( oSettings.bDeferLoading || _fnDataSource( oSettings ) == 'dom' )
|
6502 |
+
{
|
6503 |
+
/* Grab the data from the page - only do this when deferred loading or no Ajax
|
6504 |
+
* source since there is no point in reading the DOM data if we are then going
|
6505 |
+
* to replace it with Ajax data
|
6506 |
+
*/
|
6507 |
+
_fnAddTr( oSettings, $(oSettings.nTBody).children('tr') );
|
6508 |
+
}
|
6509 |
+
|
6510 |
+
/* Copy the data index array */
|
6511 |
+
oSettings.aiDisplay = oSettings.aiDisplayMaster.slice();
|
6512 |
+
|
6513 |
+
/* Initialisation complete - table can be drawn */
|
6514 |
+
oSettings.bInitialised = true;
|
6515 |
+
|
6516 |
+
/* Check if we need to initialise the table (it might not have been handed off to the
|
6517 |
+
* language processor)
|
6518 |
+
*/
|
6519 |
+
if ( bInitHandedOff === false )
|
6520 |
+
{
|
6521 |
+
_fnInitialise( oSettings );
|
6522 |
+
}
|
6523 |
+
} );
|
6524 |
+
_that = null;
|
6525 |
+
return this;
|
6526 |
+
};
|
6527 |
+
|
6528 |
+
|
6529 |
+
|
6530 |
+
/**
|
6531 |
+
* Computed structure of the DataTables API, defined by the options passed to
|
6532 |
+
* `DataTable.Api.register()` when building the API.
|
6533 |
+
*
|
6534 |
+
* The structure is built in order to speed creation and extension of the Api
|
6535 |
+
* objects since the extensions are effectively pre-parsed.
|
6536 |
+
*
|
6537 |
+
* The array is an array of objects with the following structure, where this
|
6538 |
+
* base array represents the Api prototype base:
|
6539 |
+
*
|
6540 |
+
* [
|
6541 |
+
* {
|
6542 |
+
* name: 'data' -- string - Property name
|
6543 |
+
* val: function () {}, -- function - Api method (or undefined if just an object
|
6544 |
+
* methodExt: [ ... ], -- array - Array of Api object definitions to extend the method result
|
6545 |
+
* propExt: [ ... ] -- array - Array of Api object definitions to extend the property
|
6546 |
+
* },
|
6547 |
+
* {
|
6548 |
+
* name: 'row'
|
6549 |
+
* val: {},
|
6550 |
+
* methodExt: [ ... ],
|
6551 |
+
* propExt: [
|
6552 |
+
* {
|
6553 |
+
* name: 'data'
|
6554 |
+
* val: function () {},
|
6555 |
+
* methodExt: [ ... ],
|
6556 |
+
* propExt: [ ... ]
|
6557 |
+
* },
|
6558 |
+
* ...
|
6559 |
+
* ]
|
6560 |
+
* }
|
6561 |
+
* ]
|
6562 |
+
*
|
6563 |
+
* @type {Array}
|
6564 |
+
* @ignore
|
6565 |
+
*/
|
6566 |
+
var __apiStruct = [];
|
6567 |
+
|
6568 |
+
|
6569 |
+
/**
|
6570 |
+
* `Array.prototype` reference.
|
6571 |
+
*
|
6572 |
+
* @type object
|
6573 |
+
* @ignore
|
6574 |
+
*/
|
6575 |
+
var __arrayProto = Array.prototype;
|
6576 |
+
|
6577 |
+
|
6578 |
+
/**
|
6579 |
+
* Abstraction for `context` parameter of the `Api` constructor to allow it to
|
6580 |
+
* take several different forms for ease of use.
|
6581 |
+
*
|
6582 |
+
* Each of the input parameter types will be converted to a DataTables settings
|
6583 |
+
* object where possible.
|
6584 |
+
*
|
6585 |
+
* @param {string|node|jQuery|object} mixed DataTable identifier. Can be one
|
6586 |
+
* of:
|
6587 |
+
*
|
6588 |
+
* * `string` - jQuery selector. Any DataTables' matching the given selector
|
6589 |
+
* with be found and used.
|
6590 |
+
* * `node` - `TABLE` node which has already been formed into a DataTable.
|
6591 |
+
* * `jQuery` - A jQuery object of `TABLE` nodes.
|
6592 |
+
* * `object` - DataTables settings object
|
6593 |
+
* * `DataTables.Api` - API instance
|
6594 |
+
* @return {array|null} Matching DataTables settings objects. `null` or
|
6595 |
+
* `undefined` is returned if no matching DataTable is found.
|
6596 |
+
* @ignore
|
6597 |
+
*/
|
6598 |
+
var _toSettings = function ( mixed )
|
6599 |
+
{
|
6600 |
+
var idx, jq;
|
6601 |
+
var settings = DataTable.settings;
|
6602 |
+
var tables = $.map( settings, function (el, i) {
|
6603 |
+
return el.nTable;
|
6604 |
+
} );
|
6605 |
+
|
6606 |
+
if ( ! mixed ) {
|
6607 |
+
return [];
|
6608 |
+
}
|
6609 |
+
else if ( mixed.nTable && mixed.oApi ) {
|
6610 |
+
// DataTables settings object
|
6611 |
+
return [ mixed ];
|
6612 |
+
}
|
6613 |
+
else if ( mixed.nodeName && mixed.nodeName.toLowerCase() === 'table' ) {
|
6614 |
+
// Table node
|
6615 |
+
idx = $.inArray( mixed, tables );
|
6616 |
+
return idx !== -1 ? [ settings[idx] ] : null;
|
6617 |
+
}
|
6618 |
+
else if ( mixed && typeof mixed.settings === 'function' ) {
|
6619 |
+
return mixed.settings().toArray();
|
6620 |
+
}
|
6621 |
+
else if ( typeof mixed === 'string' ) {
|
6622 |
+
// jQuery selector
|
6623 |
+
jq = $(mixed);
|
6624 |
+
}
|
6625 |
+
else if ( mixed instanceof $ ) {
|
6626 |
+
// jQuery object (also DataTables instance)
|
6627 |
+
jq = mixed;
|
6628 |
+
}
|
6629 |
+
|
6630 |
+
if ( jq ) {
|
6631 |
+
return jq.map( function(i) {
|
6632 |
+
idx = $.inArray( this, tables );
|
6633 |
+
return idx !== -1 ? settings[idx] : null;
|
6634 |
+
} ).toArray();
|
6635 |
+
}
|
6636 |
+
};
|
6637 |
+
|
6638 |
+
|
6639 |
+
/**
|
6640 |
+
* DataTables API class - used to control and interface with one or more
|
6641 |
+
* DataTables enhanced tables.
|
6642 |
+
*
|
6643 |
+
* The API class is heavily based on jQuery, presenting a chainable interface
|
6644 |
+
* that you can use to interact with tables. Each instance of the API class has
|
6645 |
+
* a "context" - i.e. the tables that it will operate on. This could be a single
|
6646 |
+
* table, all tables on a page or a sub-set thereof.
|
6647 |
+
*
|
6648 |
+
* Additionally the API is designed to allow you to easily work with the data in
|
6649 |
+
* the tables, retrieving and manipulating it as required. This is done by
|
6650 |
+
* presenting the API class as an array like interface. The contents of the
|
6651 |
+
* array depend upon the actions requested by each method (for example
|
6652 |
+
* `rows().nodes()` will return an array of nodes, while `rows().data()` will
|
6653 |
+
* return an array of objects or arrays depending upon your table's
|
6654 |
+
* configuration). The API object has a number of array like methods (`push`,
|
6655 |
+
* `pop`, `reverse` etc) as well as additional helper methods (`each`, `pluck`,
|
6656 |
+
* `unique` etc) to assist your working with the data held in a table.
|
6657 |
+
*
|
6658 |
+
* Most methods (those which return an Api instance) are chainable, which means
|
6659 |
+
* the return from a method call also has all of the methods available that the
|
6660 |
+
* top level object had. For example, these two calls are equivalent:
|
6661 |
+
*
|
6662 |
+
* // Not chained
|
6663 |
+
* api.row.add( {...} );
|
6664 |
+
* api.draw();
|
6665 |
+
*
|
6666 |
+
* // Chained
|
6667 |
+
* api.row.add( {...} ).draw();
|
6668 |
+
*
|
6669 |
+
* @class DataTable.Api
|
6670 |
+
* @param {array|object|string|jQuery} context DataTable identifier. This is
|
6671 |
+
* used to define which DataTables enhanced tables this API will operate on.
|
6672 |
+
* Can be one of:
|
6673 |
+
*
|
6674 |
+
* * `string` - jQuery selector. Any DataTables' matching the given selector
|
6675 |
+
* with be found and used.
|
6676 |
+
* * `node` - `TABLE` node which has already been formed into a DataTable.
|
6677 |
+
* * `jQuery` - A jQuery object of `TABLE` nodes.
|
6678 |
+
* * `object` - DataTables settings object
|
6679 |
+
* @param {array} [data] Data to initialise the Api instance with.
|
6680 |
+
*
|
6681 |
+
* @example
|
6682 |
+
* // Direct initialisation during DataTables construction
|
6683 |
+
* var api = $('#example').DataTable();
|
6684 |
+
*
|
6685 |
+
* @example
|
6686 |
+
* // Initialisation using a DataTables jQuery object
|
6687 |
+
* var api = $('#example').dataTable().api();
|
6688 |
+
*
|
6689 |
+
* @example
|
6690 |
+
* // Initialisation as a constructor
|
6691 |
+
* var api = new $.fn.DataTable.Api( 'table.dataTable' );
|
6692 |
+
*/
|
6693 |
+
_Api = function ( context, data )
|
6694 |
+
{
|
6695 |
+
if ( ! this instanceof _Api ) {
|
6696 |
+
throw 'DT API must be constructed as a new object';
|
6697 |
+
// or should it do the 'new' for the caller?
|
6698 |
+
// return new _Api.apply( this, arguments );
|
6699 |
+
}
|
6700 |
+
|
6701 |
+
var settings = [];
|
6702 |
+
var ctxSettings = function ( o ) {
|
6703 |
+
var a = _toSettings( o );
|
6704 |
+
if ( a ) {
|
6705 |
+
settings.push.apply( settings, a );
|
6706 |
+
}
|
6707 |
+
};
|
6708 |
+
|
6709 |
+
if ( $.isArray( context ) ) {
|
6710 |
+
for ( var i=0, ien=context.length ; i<ien ; i++ ) {
|
6711 |
+
ctxSettings( context[i] );
|
6712 |
+
}
|
6713 |
+
}
|
6714 |
+
else {
|
6715 |
+
ctxSettings( context );
|
6716 |
+
}
|
6717 |
+
|
6718 |
+
// Remove duplicates
|
6719 |
+
this.context = _unique( settings );
|
6720 |
+
|
6721 |
+
// Initial data
|
6722 |
+
if ( data ) {
|
6723 |
+
this.push.apply( this, data.toArray ? data.toArray() : data );
|
6724 |
+
}
|
6725 |
+
|
6726 |
+
// selector
|
6727 |
+
this.selector = {
|
6728 |
+
rows: null,
|
6729 |
+
cols: null,
|
6730 |
+
opts: null
|
6731 |
+
};
|
6732 |
+
|
6733 |
+
_Api.extend( this, this, __apiStruct );
|
6734 |
+
};
|
6735 |
+
|
6736 |
+
DataTable.Api = _Api;
|
6737 |
+
|
6738 |
+
_Api.prototype = /** @lends DataTables.Api */{
|
6739 |
+
/**
|
6740 |
+
* Return a new Api instance, comprised of the data held in the current
|
6741 |
+
* instance, join with the other array(s) and/or value(s).
|
6742 |
+
*
|
6743 |
+
* An alias for `Array.prototype.concat`.
|
6744 |
+
*
|
6745 |
+
* @type method
|
6746 |
+
* @param {*} value1 Arrays and/or values to concatenate.
|
6747 |
+
* @param {*} [...] Additional arrays and/or values to concatenate.
|
6748 |
+
* @returns {DataTables.Api} New API instance, comprising of the combined
|
6749 |
+
* array.
|
6750 |
+
*/
|
6751 |
+
concat: __arrayProto.concat,
|
6752 |
+
|
6753 |
+
|
6754 |
+
context: [], // array of table settings objects
|
6755 |
+
|
6756 |
+
|
6757 |
+
each: function ( fn )
|
6758 |
+
{
|
6759 |
+
for ( var i=0, ien=this.length ; i<ien; i++ ) {
|
6760 |
+
fn.call( this, this[i], i, this );
|
6761 |
+
}
|
6762 |
+
|
6763 |
+
return this;
|
6764 |
+
},
|
6765 |
+
|
6766 |
+
|
6767 |
+
eq: function ( idx )
|
6768 |
+
{
|
6769 |
+
var ctx = this.context;
|
6770 |
+
|
6771 |
+
return ctx.length > idx ?
|
6772 |
+
new _Api( ctx[idx], this[idx] ) :
|
6773 |
+
null;
|
6774 |
+
},
|
6775 |
+
|
6776 |
+
|
6777 |
+
filter: function ( fn )
|
6778 |
+
{
|
6779 |
+
var a = [];
|
6780 |
+
|
6781 |
+
if ( __arrayProto.filter ) {
|
6782 |
+
a = __arrayProto.filter.call( this, fn, this );
|
6783 |
+
}
|
6784 |
+
else {
|
6785 |
+
// Compatibility for browsers without EMCA-252-5 (JS 1.6)
|
6786 |
+
for ( var i=0, ien=this.length ; i<ien ; i++ ) {
|
6787 |
+
if ( fn.call( this, this[i], i, this ) ) {
|
6788 |
+
a.push( this[i] );
|
6789 |
+
}
|
6790 |
+
}
|
6791 |
+
}
|
6792 |
+
|
6793 |
+
return new _Api( this.context, a );
|
6794 |
+
},
|
6795 |
+
|
6796 |
+
|
6797 |
+
flatten: function ()
|
6798 |
+
{
|
6799 |
+
var a = [];
|
6800 |
+
return new _Api( this.context, a.concat.apply( a, this.toArray() ) );
|
6801 |
+
},
|
6802 |
+
|
6803 |
+
|
6804 |
+
join: __arrayProto.join,
|
6805 |
+
|
6806 |
+
|
6807 |
+
indexOf: __arrayProto.indexOf || function (obj, start)
|
6808 |
+
{
|
6809 |
+
for ( var i=(start || 0), ien=this.length ; i<ien ; i++ ) {
|
6810 |
+
if ( this[i] === obj ) {
|
6811 |
+
return i;
|
6812 |
+
}
|
6813 |
+
}
|
6814 |
+
return -1;
|
6815 |
+
},
|
6816 |
+
|
6817 |
+
// Note that `alwaysNew` is internal - use iteratorNew externally
|
6818 |
+
iterator: function ( flatten, type, fn, alwaysNew ) {
|
6819 |
+
var
|
6820 |
+
a = [], ret,
|
6821 |
+
i, ien, j, jen,
|
6822 |
+
context = this.context,
|
6823 |
+
rows, items, item,
|
6824 |
+
selector = this.selector;
|
6825 |
+
|
6826 |
+
// Argument shifting
|
6827 |
+
if ( typeof flatten === 'string' ) {
|
6828 |
+
alwaysNew = fn;
|
6829 |
+
fn = type;
|
6830 |
+
type = flatten;
|
6831 |
+
flatten = false;
|
6832 |
+
}
|
6833 |
+
|
6834 |
+
for ( i=0, ien=context.length ; i<ien ; i++ ) {
|
6835 |
+
var apiInst = new _Api( context[i] );
|
6836 |
+
|
6837 |
+
if ( type === 'table' ) {
|
6838 |
+
ret = fn.call( apiInst, context[i], i );
|
6839 |
+
|
6840 |
+
if ( ret !== undefined ) {
|
6841 |
+
a.push( ret );
|
6842 |
+
}
|
6843 |
+
}
|
6844 |
+
else if ( type === 'columns' || type === 'rows' ) {
|
6845 |
+
// this has same length as context - one entry for each table
|
6846 |
+
ret = fn.call( apiInst, context[i], this[i], i );
|
6847 |
+
|
6848 |
+
if ( ret !== undefined ) {
|
6849 |
+
a.push( ret );
|
6850 |
+
}
|
6851 |
+
}
|
6852 |
+
else if ( type === 'column' || type === 'column-rows' || type === 'row' || type === 'cell' ) {
|
6853 |
+
// columns and rows share the same structure.
|
6854 |
+
// 'this' is an array of column indexes for each context
|
6855 |
+
items = this[i];
|
6856 |
+
|
6857 |
+
if ( type === 'column-rows' ) {
|
6858 |
+
rows = _selector_row_indexes( context[i], selector.opts );
|
6859 |
+
}
|
6860 |
+
|
6861 |
+
for ( j=0, jen=items.length ; j<jen ; j++ ) {
|
6862 |
+
item = items[j];
|
6863 |
+
|
6864 |
+
if ( type === 'cell' ) {
|
6865 |
+
ret = fn.call( apiInst, context[i], item.row, item.column, i, j );
|
6866 |
+
}
|
6867 |
+
else {
|
6868 |
+
ret = fn.call( apiInst, context[i], item, i, j, rows );
|
6869 |
+
}
|
6870 |
+
|
6871 |
+
if ( ret !== undefined ) {
|
6872 |
+
a.push( ret );
|
6873 |
+
}
|
6874 |
+
}
|
6875 |
+
}
|
6876 |
+
}
|
6877 |
+
|
6878 |
+
if ( a.length || alwaysNew ) {
|
6879 |
+
var api = new _Api( context, flatten ? a.concat.apply( [], a ) : a );
|
6880 |
+
var apiSelector = api.selector;
|
6881 |
+
apiSelector.rows = selector.rows;
|
6882 |
+
apiSelector.cols = selector.cols;
|
6883 |
+
apiSelector.opts = selector.opts;
|
6884 |
+
return api;
|
6885 |
+
}
|
6886 |
+
return this;
|
6887 |
+
},
|
6888 |
+
|
6889 |
+
|
6890 |
+
lastIndexOf: __arrayProto.lastIndexOf || function (obj, start)
|
6891 |
+
{
|
6892 |
+
// Bit cheeky...
|
6893 |
+
return this.indexOf.apply( this.toArray.reverse(), arguments );
|
6894 |
+
},
|
6895 |
+
|
6896 |
+
|
6897 |
+
length: 0,
|
6898 |
+
|
6899 |
+
|
6900 |
+
map: function ( fn )
|
6901 |
+
{
|
6902 |
+
var a = [];
|
6903 |
+
|
6904 |
+
if ( __arrayProto.map ) {
|
6905 |
+
a = __arrayProto.map.call( this, fn, this );
|
6906 |
+
}
|
6907 |
+
else {
|
6908 |
+
// Compatibility for browsers without EMCA-252-5 (JS 1.6)
|
6909 |
+
for ( var i=0, ien=this.length ; i<ien ; i++ ) {
|
6910 |
+
a.push( fn.call( this, this[i], i ) );
|
6911 |
+
}
|
6912 |
+
}
|
6913 |
+
|
6914 |
+
return new _Api( this.context, a );
|
6915 |
+
},
|
6916 |
+
|
6917 |
+
|
6918 |
+
pluck: function ( prop )
|
6919 |
+
{
|
6920 |
+
return this.map( function ( el ) {
|
6921 |
+
return el[ prop ];
|
6922 |
+
} );
|
6923 |
+
},
|
6924 |
+
|
6925 |
+
pop: __arrayProto.pop,
|
6926 |
+
|
6927 |
+
|
6928 |
+
push: __arrayProto.push,
|
6929 |
+
|
6930 |
+
|
6931 |
+
// Does not return an API instance
|
6932 |
+
reduce: __arrayProto.reduce || function ( fn, init )
|
6933 |
+
{
|
6934 |
+
return _fnReduce( this, fn, init, 0, this.length, 1 );
|
6935 |
+
},
|
6936 |
+
|
6937 |
+
|
6938 |
+
reduceRight: __arrayProto.reduceRight || function ( fn, init )
|
6939 |
+
{
|
6940 |
+
return _fnReduce( this, fn, init, this.length-1, -1, -1 );
|
6941 |
+
},
|
6942 |
+
|
6943 |
+
|
6944 |
+
reverse: __arrayProto.reverse,
|
6945 |
+
|
6946 |
+
|
6947 |
+
// Object with rows, columns and opts
|
6948 |
+
selector: null,
|
6949 |
+
|
6950 |
+
|
6951 |
+
shift: __arrayProto.shift,
|
6952 |
+
|
6953 |
+
|
6954 |
+
sort: __arrayProto.sort, // ? name - order?
|
6955 |
+
|
6956 |
+
|
6957 |
+
splice: __arrayProto.splice,
|
6958 |
+
|
6959 |
+
|
6960 |
+
toArray: function ()
|
6961 |
+
{
|
6962 |
+
return __arrayProto.slice.call( this );
|
6963 |
+
},
|
6964 |
+
|
6965 |
+
|
6966 |
+
to$: function ()
|
6967 |
+
{
|
6968 |
+
return $( this );
|
6969 |
+
},
|
6970 |
+
|
6971 |
+
|
6972 |
+
toJQuery: function ()
|
6973 |
+
{
|
6974 |
+
return $( this );
|
6975 |
+
},
|
6976 |
+
|
6977 |
+
|
6978 |
+
unique: function ()
|
6979 |
+
{
|
6980 |
+
return new _Api( this.context, _unique(this) );
|
6981 |
+
},
|
6982 |
+
|
6983 |
+
|
6984 |
+
unshift: __arrayProto.unshift
|
6985 |
+
};
|
6986 |
+
|
6987 |
+
|
6988 |
+
_Api.extend = function ( scope, obj, ext )
|
6989 |
+
{
|
6990 |
+
// Only extend API instances and static properties of the API
|
6991 |
+
if ( ! ext.length || ! obj || ( ! (obj instanceof _Api) && ! obj.__dt_wrapper ) ) {
|
6992 |
+
return;
|
6993 |
+
}
|
6994 |
+
|
6995 |
+
var
|
6996 |
+
i, ien,
|
6997 |
+
j, jen,
|
6998 |
+
struct, inner,
|
6999 |
+
methodScoping = function ( scope, fn, struc ) {
|
7000 |
+
return function () {
|
7001 |
+
var ret = fn.apply( scope, arguments );
|
7002 |
+
|
7003 |
+
// Method extension
|
7004 |
+
_Api.extend( ret, ret, struc.methodExt );
|
7005 |
+
return ret;
|
7006 |
+
};
|
7007 |
+
};
|
7008 |
+
|
7009 |
+
for ( i=0, ien=ext.length ; i<ien ; i++ ) {
|
7010 |
+
struct = ext[i];
|
7011 |
+
|
7012 |
+
// Value
|
7013 |
+
obj[ struct.name ] = typeof struct.val === 'function' ?
|
7014 |
+
methodScoping( scope, struct.val, struct ) :
|
7015 |
+
$.isPlainObject( struct.val ) ?
|
7016 |
+
{} :
|
7017 |
+
struct.val;
|
7018 |
+
|
7019 |
+
obj[ struct.name ].__dt_wrapper = true;
|
7020 |
+
|
7021 |
+
// Property extension
|
7022 |
+
_Api.extend( scope, obj[ struct.name ], struct.propExt );
|
7023 |
+
}
|
7024 |
+
};
|
7025 |
+
|
7026 |
+
|
7027 |
+
// @todo - Is there need for an augment function?
|
7028 |
+
// _Api.augment = function ( inst, name )
|
7029 |
+
// {
|
7030 |
+
// // Find src object in the structure from the name
|
7031 |
+
// var parts = name.split('.');
|
7032 |
+
|
7033 |
+
// _Api.extend( inst, obj );
|
7034 |
+
// };
|
7035 |
+
|
7036 |
+
|
7037 |
+
// [
|
7038 |
+
// {
|
7039 |
+
// name: 'data' -- string - Property name
|
7040 |
+
// val: function () {}, -- function - Api method (or undefined if just an object
|
7041 |
+
// methodExt: [ ... ], -- array - Array of Api object definitions to extend the method result
|
7042 |
+
// propExt: [ ... ] -- array - Array of Api object definitions to extend the property
|
7043 |
+
// },
|
7044 |
+
// {
|
7045 |
+
// name: 'row'
|
7046 |
+
// val: {},
|
7047 |
+
// methodExt: [ ... ],
|
7048 |
+
// propExt: [
|
7049 |
+
// {
|
7050 |
+
// name: 'data'
|
7051 |
+
// val: function () {},
|
7052 |
+
// methodExt: [ ... ],
|
7053 |
+
// propExt: [ ... ]
|
7054 |
+
// },
|
7055 |
+
// ...
|
7056 |
+
// ]
|
7057 |
+
// }
|
7058 |
+
// ]
|
7059 |
+
|
7060 |
+
_Api.register = _api_register = function ( name, val )
|
7061 |
+
{
|
7062 |
+
if ( $.isArray( name ) ) {
|
7063 |
+
for ( var j=0, jen=name.length ; j<jen ; j++ ) {
|
7064 |
+
_Api.register( name[j], val );
|
7065 |
+
}
|
7066 |
+
return;
|
7067 |
+
}
|
7068 |
+
|
7069 |
+
var
|
7070 |
+
i, ien,
|
7071 |
+
heir = name.split('.'),
|
7072 |
+
struct = __apiStruct,
|
7073 |
+
key, method;
|
7074 |
+
|
7075 |
+
var find = function ( src, name ) {
|
7076 |
+
for ( var i=0, ien=src.length ; i<ien ; i++ ) {
|
7077 |
+
if ( src[i].name === name ) {
|
7078 |
+
return src[i];
|
7079 |
+
}
|
7080 |
+
}
|
7081 |
+
return null;
|
7082 |
+
};
|
7083 |
+
|
7084 |
+
for ( i=0, ien=heir.length ; i<ien ; i++ ) {
|
7085 |
+
method = heir[i].indexOf('()') !== -1;
|
7086 |
+
key = method ?
|
7087 |
+
heir[i].replace('()', '') :
|
7088 |
+
heir[i];
|
7089 |
+
|
7090 |
+
var src = find( struct, key );
|
7091 |
+
if ( ! src ) {
|
7092 |
+
src = {
|
7093 |
+
name: key,
|
7094 |
+
val: {},
|
7095 |
+
methodExt: [],
|
7096 |
+
propExt: []
|
7097 |
+
};
|
7098 |
+
struct.push( src );
|
7099 |
+
}
|
7100 |
+
|
7101 |
+
if ( i === ien-1 ) {
|
7102 |
+
src.val = val;
|
7103 |
+
}
|
7104 |
+
else {
|
7105 |
+
struct = method ?
|
7106 |
+
src.methodExt :
|
7107 |
+
src.propExt;
|
7108 |
+
}
|
7109 |
+
}
|
7110 |
+
};
|
7111 |
+
|
7112 |
+
|
7113 |
+
_Api.registerPlural = _api_registerPlural = function ( pluralName, singularName, val ) {
|
7114 |
+
_Api.register( pluralName, val );
|
7115 |
+
|
7116 |
+
_Api.register( singularName, function () {
|
7117 |
+
var ret = val.apply( this, arguments );
|
7118 |
+
|
7119 |
+
if ( ret === this ) {
|
7120 |
+
// Returned item is the API instance that was passed in, return it
|
7121 |
+
return this;
|
7122 |
+
}
|
7123 |
+
else if ( ret instanceof _Api ) {
|
7124 |
+
// New API instance returned, want the value from the first item
|
7125 |
+
// in the returned array for the singular result.
|
7126 |
+
return ret.length ?
|
7127 |
+
$.isArray( ret[0] ) ?
|
7128 |
+
new _Api( ret.context, ret[0] ) : // Array results are 'enhanced'
|
7129 |
+
ret[0] :
|
7130 |
+
undefined;
|
7131 |
+
}
|
7132 |
+
|
7133 |
+
// Non-API return - just fire it back
|
7134 |
+
return ret;
|
7135 |
+
} );
|
7136 |
+
};
|
7137 |
+
|
7138 |
+
|
7139 |
+
/**
|
7140 |
+
* Selector for HTML tables. Apply the given selector to the give array of
|
7141 |
+
* DataTables settings objects.
|
7142 |
+
*
|
7143 |
+
* @param {string|integer} [selector] jQuery selector string or integer
|
7144 |
+
* @param {array} Array of DataTables settings objects to be filtered
|
7145 |
+
* @return {array}
|
7146 |
+
* @ignore
|
7147 |
+
*/
|
7148 |
+
var __table_selector = function ( selector, a )
|
7149 |
+
{
|
7150 |
+
// Integer is used to pick out a table by index
|
7151 |
+
if ( typeof selector === 'number' ) {
|
7152 |
+
return [ a[ selector ] ];
|
7153 |
+
}
|
7154 |
+
|
7155 |
+
// Perform a jQuery selector on the table nodes
|
7156 |
+
var nodes = $.map( a, function (el, i) {
|
7157 |
+
return el.nTable;
|
7158 |
+
} );
|
7159 |
+
|
7160 |
+
return $(nodes)
|
7161 |
+
.filter( selector )
|
7162 |
+
.map( function (i) {
|
7163 |
+
// Need to translate back from the table node to the settings
|
7164 |
+
var idx = $.inArray( this, nodes );
|
7165 |
+
return a[ idx ];
|
7166 |
+
} )
|
7167 |
+
.toArray();
|
7168 |
+
};
|
7169 |
+
|
7170 |
+
|
7171 |
+
|
7172 |
+
/**
|
7173 |
+
* Context selector for the API's context (i.e. the tables the API instance
|
7174 |
+
* refers to.
|
7175 |
+
*
|
7176 |
+
* @name DataTable.Api#tables
|
7177 |
+
* @param {string|integer} [selector] Selector to pick which tables the iterator
|
7178 |
+
* should operate on. If not given, all tables in the current context are
|
7179 |
+
* used. This can be given as a jQuery selector (for example `':gt(0)'`) to
|
7180 |
+
* select multiple tables or as an integer to select a single table.
|
7181 |
+
* @returns {DataTable.Api} Returns a new API instance if a selector is given.
|
7182 |
+
*/
|
7183 |
+
_api_register( 'tables()', function ( selector ) {
|
7184 |
+
// A new instance is created if there was a selector specified
|
7185 |
+
return selector ?
|
7186 |
+
new _Api( __table_selector( selector, this.context ) ) :
|
7187 |
+
this;
|
7188 |
+
} );
|
7189 |
+
|
7190 |
+
|
7191 |
+
_api_register( 'table()', function ( selector ) {
|
7192 |
+
var tables = this.tables( selector );
|
7193 |
+
var ctx = tables.context;
|
7194 |
+
|
7195 |
+
// Truncate to the first matched table
|
7196 |
+
return ctx.length ?
|
7197 |
+
new _Api( ctx[0] ) :
|
7198 |
+
tables;
|
7199 |
+
} );
|
7200 |
+
|
7201 |
+
|
7202 |
+
_api_registerPlural( 'tables().nodes()', 'table().node()' , function () {
|
7203 |
+
return this.iterator( 'table', function ( ctx ) {
|
7204 |
+
return ctx.nTable;
|
7205 |
+
}, 1 );
|
7206 |
+
} );
|
7207 |
+
|
7208 |
+
|
7209 |
+
_api_registerPlural( 'tables().body()', 'table().body()' , function () {
|
7210 |
+
return this.iterator( 'table', function ( ctx ) {
|
7211 |
+
return ctx.nTBody;
|
7212 |
+
}, 1 );
|
7213 |
+
} );
|
7214 |
+
|
7215 |
+
|
7216 |
+
_api_registerPlural( 'tables().header()', 'table().header()' , function () {
|
7217 |
+
return this.iterator( 'table', function ( ctx ) {
|
7218 |
+
return ctx.nTHead;
|
7219 |
+
}, 1 );
|
7220 |
+
} );
|
7221 |
+
|
7222 |
+
|
7223 |
+
_api_registerPlural( 'tables().footer()', 'table().footer()' , function () {
|
7224 |
+
return this.iterator( 'table', function ( ctx ) {
|
7225 |
+
return ctx.nTFoot;
|
7226 |
+
}, 1 );
|
7227 |
+
} );
|
7228 |
+
|
7229 |
+
|
7230 |
+
_api_registerPlural( 'tables().containers()', 'table().container()' , function () {
|
7231 |
+
return this.iterator( 'table', function ( ctx ) {
|
7232 |
+
return ctx.nTableWrapper;
|
7233 |
+
}, 1 );
|
7234 |
+
} );
|
7235 |
+
|
7236 |
+
|
7237 |
+
|
7238 |
+
/**
|
7239 |
+
* Redraw the tables in the current context.
|
7240 |
+
*
|
7241 |
+
* @param {boolean} [reset=true] Reset (default) or hold the current paging
|
7242 |
+
* position. A full re-sort and re-filter is performed when this method is
|
7243 |
+
* called, which is why the pagination reset is the default action.
|
7244 |
+
* @returns {DataTables.Api} this
|
7245 |
+
*/
|
7246 |
+
_api_register( 'draw()', function ( resetPaging ) {
|
7247 |
+
return this.iterator( 'table', function ( settings ) {
|
7248 |
+
_fnReDraw( settings, resetPaging===false );
|
7249 |
+
} );
|
7250 |
+
} );
|
7251 |
+
|
7252 |
+
|
7253 |
+
|
7254 |
+
/**
|
7255 |
+
* Get the current page index.
|
7256 |
+
*
|
7257 |
+
* @return {integer} Current page index (zero based)
|
7258 |
+
*//**
|
7259 |
+
* Set the current page.
|
7260 |
+
*
|
7261 |
+
* Note that if you attempt to show a page which does not exist, DataTables will
|
7262 |
+
* not throw an error, but rather reset the paging.
|
7263 |
+
*
|
7264 |
+
* @param {integer|string} action The paging action to take. This can be one of:
|
7265 |
+
* * `integer` - The page index to jump to
|
7266 |
+
* * `string` - An action to take:
|
7267 |
+
* * `first` - Jump to first page.
|
7268 |
+
* * `next` - Jump to the next page
|
7269 |
+
* * `previous` - Jump to previous page
|
7270 |
+
* * `last` - Jump to the last page.
|
7271 |
+
* @returns {DataTables.Api} this
|
7272 |
+
*/
|
7273 |
+
_api_register( 'page()', function ( action ) {
|
7274 |
+
if ( action === undefined ) {
|
7275 |
+
return this.page.info().page; // not an expensive call
|
7276 |
+
}
|
7277 |
+
|
7278 |
+
// else, have an action to take on all tables
|
7279 |
+
return this.iterator( 'table', function ( settings ) {
|
7280 |
+
_fnPageChange( settings, action );
|
7281 |
+
} );
|
7282 |
+
} );
|
7283 |
+
|
7284 |
+
|
7285 |
+
/**
|
7286 |
+
* Paging information for the first table in the current context.
|
7287 |
+
*
|
7288 |
+
* If you require paging information for another table, use the `table()` method
|
7289 |
+
* with a suitable selector.
|
7290 |
+
*
|
7291 |
+
* @return {object} Object with the following properties set:
|
7292 |
+
* * `page` - Current page index (zero based - i.e. the first page is `0`)
|
7293 |
+
* * `pages` - Total number of pages
|
7294 |
+
* * `start` - Display index for the first record shown on the current page
|
7295 |
+
* * `end` - Display index for the last record shown on the current page
|
7296 |
+
* * `length` - Display length (number of records). Note that generally `start
|
7297 |
+
* + length = end`, but this is not always true, for example if there are
|
7298 |
+
* only 2 records to show on the final page, with a length of 10.
|
7299 |
+
* * `recordsTotal` - Full data set length
|
7300 |
+
* * `recordsDisplay` - Data set length once the current filtering criterion
|
7301 |
+
* are applied.
|
7302 |
+
*/
|
7303 |
+
_api_register( 'page.info()', function ( action ) {
|
7304 |
+
if ( this.context.length === 0 ) {
|
7305 |
+
return undefined;
|
7306 |
+
}
|
7307 |
+
|
7308 |
+
var
|
7309 |
+
settings = this.context[0],
|
7310 |
+
start = settings._iDisplayStart,
|
7311 |
+
len = settings._iDisplayLength,
|
7312 |
+
visRecords = settings.fnRecordsDisplay(),
|
7313 |
+
all = len === -1;
|
7314 |
+
|
7315 |
+
return {
|
7316 |
+
"page": all ? 0 : Math.floor( start / len ),
|
7317 |
+
"pages": all ? 1 : Math.ceil( visRecords / len ),
|
7318 |
+
"start": start,
|
7319 |
+
"end": settings.fnDisplayEnd(),
|
7320 |
+
"length": len,
|
7321 |
+
"recordsTotal": settings.fnRecordsTotal(),
|
7322 |
+
"recordsDisplay": visRecords
|
7323 |
+
};
|
7324 |
+
} );
|
7325 |
+
|
7326 |
+
|
7327 |
+
/**
|
7328 |
+
* Get the current page length.
|
7329 |
+
*
|
7330 |
+
* @return {integer} Current page length. Note `-1` indicates that all records
|
7331 |
+
* are to be shown.
|
7332 |
+
*//**
|
7333 |
+
* Set the current page length.
|
7334 |
+
*
|
7335 |
+
* @param {integer} Page length to set. Use `-1` to show all records.
|
7336 |
+
* @returns {DataTables.Api} this
|
7337 |
+
*/
|
7338 |
+
_api_register( 'page.len()', function ( len ) {
|
7339 |
+
// Note that we can't call this function 'length()' because `length`
|
7340 |
+
// is a Javascript property of functions which defines how many arguments
|
7341 |
+
// the function expects.
|
7342 |
+
if ( len === undefined ) {
|
7343 |
+
return this.context.length !== 0 ?
|
7344 |
+
this.context[0]._iDisplayLength :
|
7345 |
+
undefined;
|
7346 |
+
}
|
7347 |
+
|
7348 |
+
// else, set the page length
|
7349 |
+
return this.iterator( 'table', function ( settings ) {
|
7350 |
+
_fnLengthChange( settings, len );
|
7351 |
+
} );
|
7352 |
+
} );
|
7353 |
+
|
7354 |
+
|
7355 |
+
|
7356 |
+
var __reload = function ( settings, holdPosition, callback ) {
|
7357 |
+
if ( _fnDataSource( settings ) == 'ssp' ) {
|
7358 |
+
_fnReDraw( settings, holdPosition );
|
7359 |
+
}
|
7360 |
+
else {
|
7361 |
+
// Trigger xhr
|
7362 |
+
_fnProcessingDisplay( settings, true );
|
7363 |
+
|
7364 |
+
_fnBuildAjax( settings, [], function( json ) {
|
7365 |
+
_fnClearTable( settings );
|
7366 |
+
|
7367 |
+
var data = _fnAjaxDataSrc( settings, json );
|
7368 |
+
for ( var i=0, ien=data.length ; i<ien ; i++ ) {
|
7369 |
+
_fnAddData( settings, data[i] );
|
7370 |
+
}
|
7371 |
+
|
7372 |
+
_fnReDraw( settings, holdPosition );
|
7373 |
+
_fnProcessingDisplay( settings, false );
|
7374 |
+
} );
|
7375 |
+
}
|
7376 |
+
|
7377 |
+
// Use the draw event to trigger a callback, regardless of if it is an async
|
7378 |
+
// or sync draw
|
7379 |
+
if ( callback ) {
|
7380 |
+
var api = new _Api( settings );
|
7381 |
+
|
7382 |
+
api.one( 'draw', function () {
|
7383 |
+
callback( api.ajax.json() );
|
7384 |
+
} );
|
7385 |
+
}
|
7386 |
+
};
|
7387 |
+
|
7388 |
+
|
7389 |
+
/**
|
7390 |
+
* Get the JSON response from the last Ajax request that DataTables made to the
|
7391 |
+
* server. Note that this returns the JSON from the first table in the current
|
7392 |
+
* context.
|
7393 |
+
*
|
7394 |
+
* @return {object} JSON received from the server.
|
7395 |
+
*/
|
7396 |
+
_api_register( 'ajax.json()', function () {
|
7397 |
+
var ctx = this.context;
|
7398 |
+
|
7399 |
+
if ( ctx.length > 0 ) {
|
7400 |
+
return ctx[0].json;
|
7401 |
+
}
|
7402 |
+
|
7403 |
+
// else return undefined;
|
7404 |
+
} );
|
7405 |
+
|
7406 |
+
|
7407 |
+
/**
|
7408 |
+
* Get the data submitted in the last Ajax request
|
7409 |
+
*/
|
7410 |
+
_api_register( 'ajax.params()', function () {
|
7411 |
+
var ctx = this.context;
|
7412 |
+
|
7413 |
+
if ( ctx.length > 0 ) {
|
7414 |
+
return ctx[0].oAjaxData;
|
7415 |
+
}
|
7416 |
+
|
7417 |
+
// else return undefined;
|
7418 |
+
} );
|
7419 |
+
|
7420 |
+
|
7421 |
+
/**
|
7422 |
+
* Reload tables from the Ajax data source. Note that this function will
|
7423 |
+
* automatically re-draw the table when the remote data has been loaded.
|
7424 |
+
*
|
7425 |
+
* @param {boolean} [reset=true] Reset (default) or hold the current paging
|
7426 |
+
* position. A full re-sort and re-filter is performed when this method is
|
7427 |
+
* called, which is why the pagination reset is the default action.
|
7428 |
+
* @returns {DataTables.Api} this
|
7429 |
+
*/
|
7430 |
+
_api_register( 'ajax.reload()', function ( callback, resetPaging ) {
|
7431 |
+
return this.iterator( 'table', function (settings) {
|
7432 |
+
__reload( settings, resetPaging===false, callback );
|
7433 |
+
} );
|
7434 |
+
} );
|
7435 |
+
|
7436 |
+
|
7437 |
+
/**
|
7438 |
+
* Get the current Ajax URL. Note that this returns the URL from the first
|
7439 |
+
* table in the current context.
|
7440 |
+
*
|
7441 |
+
* @return {string} Current Ajax source URL
|
7442 |
+
*//**
|
7443 |
+
* Set the Ajax URL. Note that this will set the URL for all tables in the
|
7444 |
+
* current context.
|
7445 |
+
*
|
7446 |
+
* @param {string} url URL to set.
|
7447 |
+
* @returns {DataTables.Api} this
|
7448 |
+
*/
|
7449 |
+
_api_register( 'ajax.url()', function ( url ) {
|
7450 |
+
var ctx = this.context;
|
7451 |
+
|
7452 |
+
if ( url === undefined ) {
|
7453 |
+
// get
|
7454 |
+
if ( ctx.length === 0 ) {
|
7455 |
+
return undefined;
|
7456 |
+
}
|
7457 |
+
ctx = ctx[0];
|
7458 |
+
|
7459 |
+
return ctx.ajax ?
|
7460 |
+
$.isPlainObject( ctx.ajax ) ?
|
7461 |
+
ctx.ajax.url :
|
7462 |
+
ctx.ajax :
|
7463 |
+
ctx.sAjaxSource;
|
7464 |
+
}
|
7465 |
+
|
7466 |
+
// set
|
7467 |
+
return this.iterator( 'table', function ( settings ) {
|
7468 |
+
if ( $.isPlainObject( settings.ajax ) ) {
|
7469 |
+
settings.ajax.url = url;
|
7470 |
+
}
|
7471 |
+
else {
|
7472 |
+
settings.ajax = url;
|
7473 |
+
}
|
7474 |
+
// No need to consider sAjaxSource here since DataTables gives priority
|
7475 |
+
// to `ajax` over `sAjaxSource`. So setting `ajax` here, renders any
|
7476 |
+
// value of `sAjaxSource` redundant.
|
7477 |
+
} );
|
7478 |
+
} );
|
7479 |
+
|
7480 |
+
|
7481 |
+
/**
|
7482 |
+
* Load data from the newly set Ajax URL. Note that this method is only
|
7483 |
+
* available when `ajax.url()` is used to set a URL. Additionally, this method
|
7484 |
+
* has the same effect as calling `ajax.reload()` but is provided for
|
7485 |
+
* convenience when setting a new URL. Like `ajax.reload()` it will
|
7486 |
+
* automatically redraw the table once the remote data has been loaded.
|
7487 |
+
*
|
7488 |
+
* @returns {DataTables.Api} this
|
7489 |
+
*/
|
7490 |
+
_api_register( 'ajax.url().load()', function ( callback, resetPaging ) {
|
7491 |
+
// Same as a reload, but makes sense to present it for easy access after a
|
7492 |
+
// url change
|
7493 |
+
return this.iterator( 'table', function ( ctx ) {
|
7494 |
+
__reload( ctx, resetPaging===false, callback );
|
7495 |
+
} );
|
7496 |
+
} );
|
7497 |
+
|
7498 |
+
|
7499 |
+
|
7500 |
+
|
7501 |
+
var _selector_run = function ( selector, select )
|
7502 |
+
{
|
7503 |
+
var
|
7504 |
+
out = [], res,
|
7505 |
+
a, i, ien, j, jen,
|
7506 |
+
selectorType = typeof selector;
|
7507 |
+
|
7508 |
+
// Can't just check for isArray here, as an API or jQuery instance might be
|
7509 |
+
// given with their array like look
|
7510 |
+
if ( ! selector || selectorType === 'string' || selectorType === 'function' || selector.length === undefined ) {
|
7511 |
+
selector = [ selector ];
|
7512 |
+
}
|
7513 |
+
|
7514 |
+
for ( i=0, ien=selector.length ; i<ien ; i++ ) {
|
7515 |
+
a = selector[i] && selector[i].split ?
|
7516 |
+
selector[i].split(',') :
|
7517 |
+
[ selector[i] ];
|
7518 |
+
|
7519 |
+
for ( j=0, jen=a.length ; j<jen ; j++ ) {
|
7520 |
+
res = select( typeof a[j] === 'string' ? $.trim(a[j]) : a[j] );
|
7521 |
+
|
7522 |
+
if ( res && res.length ) {
|
7523 |
+
out.push.apply( out, res );
|
7524 |
+
}
|
7525 |
+
}
|
7526 |
+
}
|
7527 |
+
|
7528 |
+
return out;
|
7529 |
+
};
|
7530 |
+
|
7531 |
+
|
7532 |
+
var _selector_opts = function ( opts )
|
7533 |
+
{
|
7534 |
+
if ( ! opts ) {
|
7535 |
+
opts = {};
|
7536 |
+
}
|
7537 |
+
|
7538 |
+
// Backwards compatibility for 1.9- which used the terminology filter rather
|
7539 |
+
// than search
|
7540 |
+
if ( opts.filter && ! opts.search ) {
|
7541 |
+
opts.search = opts.filter;
|
7542 |
+
}
|
7543 |
+
|
7544 |
+
return {
|
7545 |
+
search: opts.search || 'none',
|
7546 |
+
order: opts.order || 'current',
|
7547 |
+
page: opts.page || 'all'
|
7548 |
+
};
|
7549 |
+
};
|
7550 |
+
|
7551 |
+
|
7552 |
+
var _selector_first = function ( inst )
|
7553 |
+
{
|
7554 |
+
// Reduce the API instance to the first item found
|
7555 |
+
for ( var i=0, ien=inst.length ; i<ien ; i++ ) {
|
7556 |
+
if ( inst[i].length > 0 ) {
|
7557 |
+
// Assign the first element to the first item in the instance
|
7558 |
+
// and truncate the instance and context
|
7559 |
+
inst[0] = inst[i];
|
7560 |
+
inst.length = 1;
|
7561 |
+
inst.context = [ inst.context[i] ];
|
7562 |
+
|
7563 |
+
return inst;
|
7564 |
+
}
|
7565 |
+
}
|
7566 |
+
|
7567 |
+
// Not found - return an empty instance
|
7568 |
+
inst.length = 0;
|
7569 |
+
return inst;
|
7570 |
+
};
|
7571 |
+
|
7572 |
+
|
7573 |
+
var _selector_row_indexes = function ( settings, opts )
|
7574 |
+
{
|
7575 |
+
var
|
7576 |
+
i, ien, tmp, a=[],
|
7577 |
+
displayFiltered = settings.aiDisplay,
|
7578 |
+
displayMaster = settings.aiDisplayMaster;
|
7579 |
+
|
7580 |
+
var
|
7581 |
+
search = opts.search, // none, applied, removed
|
7582 |
+
order = opts.order, // applied, current, index (original - compatibility with 1.9)
|
7583 |
+
page = opts.page; // all, current
|
7584 |
+
|
7585 |
+
if ( _fnDataSource( settings ) == 'ssp' ) {
|
7586 |
+
// In server-side processing mode, most options are irrelevant since
|
7587 |
+
// rows not shown don't exist and the index order is the applied order
|
7588 |
+
// Removed is a special case - for consistency just return an empty
|
7589 |
+
// array
|
7590 |
+
return search === 'removed' ?
|
7591 |
+
[] :
|
7592 |
+
_range( 0, displayMaster.length );
|
7593 |
+
}
|
7594 |
+
else if ( page == 'current' ) {
|
7595 |
+
// Current page implies that order=current and fitler=applied, since it is
|
7596 |
+
// fairly senseless otherwise, regardless of what order and search actually
|
7597 |
+
// are
|
7598 |
+
for ( i=settings._iDisplayStart, ien=settings.fnDisplayEnd() ; i<ien ; i++ ) {
|
7599 |
+
a.push( displayFiltered[i] );
|
7600 |
+
}
|
7601 |
+
}
|
7602 |
+
else if ( order == 'current' || order == 'applied' ) {
|
7603 |
+
a = search == 'none' ?
|
7604 |
+
displayMaster.slice() : // no search
|
7605 |
+
search == 'applied' ?
|
7606 |
+
displayFiltered.slice() : // applied search
|
7607 |
+
$.map( displayMaster, function (el, i) { // removed search
|
7608 |
+
return $.inArray( el, displayFiltered ) === -1 ? el : null;
|
7609 |
+
} );
|
7610 |
+
}
|
7611 |
+
else if ( order == 'index' || order == 'original' ) {
|
7612 |
+
for ( i=0, ien=settings.aoData.length ; i<ien ; i++ ) {
|
7613 |
+
if ( search == 'none' ) {
|
7614 |
+
a.push( i );
|
7615 |
+
}
|
7616 |
+
else { // applied | removed
|
7617 |
+
tmp = $.inArray( i, displayFiltered );
|
7618 |
+
|
7619 |
+
if ((tmp === -1 && search == 'removed') ||
|
7620 |
+
(tmp >= 0 && search == 'applied') )
|
7621 |
+
{
|
7622 |
+
a.push( i );
|
7623 |
+
}
|
7624 |
+
}
|
7625 |
+
}
|
7626 |
+
}
|
7627 |
+
|
7628 |
+
return a;
|
7629 |
+
};
|
7630 |
+
|
7631 |
+
|
7632 |
+
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
7633 |
+
* Rows
|
7634 |
+
*
|
7635 |
+
* {} - no selector - use all available rows
|
7636 |
+
* {integer} - row aoData index
|
7637 |
+
* {node} - TR node
|
7638 |
+
* {string} - jQuery selector to apply to the TR elements
|
7639 |
+
* {array} - jQuery array of nodes, or simply an array of TR nodes
|
7640 |
+
*
|
7641 |
+
*/
|
7642 |
+
|
7643 |
+
|
7644 |
+
var __row_selector = function ( settings, selector, opts )
|
7645 |
+
{
|
7646 |
+
return _selector_run( selector, function ( sel ) {
|
7647 |
+
var selInt = _intVal( sel );
|
7648 |
+
var i, ien;
|
7649 |
+
|
7650 |
+
// Short cut - selector is a number and no options provided (default is
|
7651 |
+
// all records, so no need to check if the index is in there, since it
|
7652 |
+
// must be - dev error if the index doesn't exist).
|
7653 |
+
if ( selInt !== null && ! opts ) {
|
7654 |
+
return [ selInt ];
|
7655 |
+
}
|
7656 |
+
|
7657 |
+
var rows = _selector_row_indexes( settings, opts );
|
7658 |
+
|
7659 |
+
if ( selInt !== null && $.inArray( selInt, rows ) !== -1 ) {
|
7660 |
+
// Selector - integer
|
7661 |
+
return [ selInt ];
|
7662 |
+
}
|
7663 |
+
else if ( ! sel ) {
|
7664 |
+
// Selector - none
|
7665 |
+
return rows;
|
7666 |
+
}
|
7667 |
+
|
7668 |
+
// Selector - function
|
7669 |
+
if ( typeof sel === 'function' ) {
|
7670 |
+
return $.map( rows, function (idx) {
|
7671 |
+
var row = settings.aoData[ idx ];
|
7672 |
+
return sel( idx, row._aData, row.nTr ) ? idx : null;
|
7673 |
+
} );
|
7674 |
+
}
|
7675 |
+
|
7676 |
+
// Get nodes in the order from the `rows` array with null values removed
|
7677 |
+
var nodes = _removeEmpty(
|
7678 |
+
_pluck_order( settings.aoData, rows, 'nTr' )
|
7679 |
+
);
|
7680 |
+
|
7681 |
+
// Selector - node
|
7682 |
+
if ( sel.nodeName ) {
|
7683 |
+
if ( $.inArray( sel, nodes ) !== -1 ) {
|
7684 |
+
return [ sel._DT_RowIndex ]; // sel is a TR node that is in the table
|
7685 |
+
// and DataTables adds a prop for fast lookup
|
7686 |
+
}
|
7687 |
+
}
|
7688 |
+
|
7689 |
+
// Selector - jQuery selector string, array of nodes or jQuery object/
|
7690 |
+
// As jQuery's .filter() allows jQuery objects to be passed in filter,
|
7691 |
+
// it also allows arrays, so this will cope with all three options
|
7692 |
+
return $(nodes)
|
7693 |
+
.filter( sel )
|
7694 |
+
.map( function () {
|
7695 |
+
return this._DT_RowIndex;
|
7696 |
+
} )
|
7697 |
+
.toArray();
|
7698 |
+
} );
|
7699 |
+
};
|
7700 |
+
|
7701 |
+
|
7702 |
+
/**
|
7703 |
+
*
|
7704 |
+
*/
|
7705 |
+
_api_register( 'rows()', function ( selector, opts ) {
|
7706 |
+
// argument shifting
|
7707 |
+
if ( selector === undefined ) {
|
7708 |
+
selector = '';
|
7709 |
+
}
|
7710 |
+
else if ( $.isPlainObject( selector ) ) {
|
7711 |
+
opts = selector;
|
7712 |
+
selector = '';
|
7713 |
+
}
|
7714 |
+
|
7715 |
+
opts = _selector_opts( opts );
|
7716 |
+
|
7717 |
+
var inst = this.iterator( 'table', function ( settings ) {
|
7718 |
+
return __row_selector( settings, selector, opts );
|
7719 |
+
}, 1 );
|
7720 |
+
|
7721 |
+
// Want argument shifting here and in __row_selector?
|
7722 |
+
inst.selector.rows = selector;
|
7723 |
+
inst.selector.opts = opts;
|
7724 |
+
|
7725 |
+
return inst;
|
7726 |
+
} );
|
7727 |
+
|
7728 |
+
|
7729 |
+
_api_register( 'rows().nodes()', function () {
|
7730 |
+
return this.iterator( 'row', function ( settings, row ) {
|
7731 |
+
return settings.aoData[ row ].nTr || undefined;
|
7732 |
+
}, 1 );
|
7733 |
+
} );
|
7734 |
+
|
7735 |
+
_api_register( 'rows().data()', function () {
|
7736 |
+
return this.iterator( true, 'rows', function ( settings, rows ) {
|
7737 |
+
return _pluck_order( settings.aoData, rows, '_aData' );
|
7738 |
+
}, 1 );
|
7739 |
+
} );
|
7740 |
+
|
7741 |
+
_api_registerPlural( 'rows().cache()', 'row().cache()', function ( type ) {
|
7742 |
+
return this.iterator( 'row', function ( settings, row ) {
|
7743 |
+
var r = settings.aoData[ row ];
|
7744 |
+
return type === 'search' ? r._aFilterData : r._aSortData;
|
7745 |
+
}, 1 );
|
7746 |
+
} );
|
7747 |
+
|
7748 |
+
_api_registerPlural( 'rows().invalidate()', 'row().invalidate()', function ( src ) {
|
7749 |
+
return this.iterator( 'row', function ( settings, row ) {
|
7750 |
+
_fnInvalidate( settings, row, src );
|
7751 |
+
} );
|
7752 |
+
} );
|
7753 |
+
|
7754 |
+
_api_registerPlural( 'rows().indexes()', 'row().index()', function () {
|
7755 |
+
return this.iterator( 'row', function ( settings, row ) {
|
7756 |
+
return row;
|
7757 |
+
}, 1 );
|
7758 |
+
} );
|
7759 |
+
|
7760 |
+
_api_registerPlural( 'rows().remove()', 'row().remove()', function () {
|
7761 |
+
var that = this;
|
7762 |
+
|
7763 |
+
return this.iterator( 'row', function ( settings, row, thatIdx ) {
|
7764 |
+
var data = settings.aoData;
|
7765 |
+
|
7766 |
+
data.splice( row, 1 );
|
7767 |
+
|
7768 |
+
// Update the _DT_RowIndex parameter on all rows in the table
|
7769 |
+
for ( var i=0, ien=data.length ; i<ien ; i++ ) {
|
7770 |
+
if ( data[i].nTr !== null ) {
|
7771 |
+
data[i].nTr._DT_RowIndex = i;
|
7772 |
+
}
|
7773 |
+
}
|
7774 |
+
|
7775 |
+
// Remove the target row from the search array
|
7776 |
+
var displayIndex = $.inArray( row, settings.aiDisplay );
|
7777 |
+
|
7778 |
+
// Delete from the display arrays
|
7779 |
+
_fnDeleteIndex( settings.aiDisplayMaster, row );
|
7780 |
+
_fnDeleteIndex( settings.aiDisplay, row );
|
7781 |
+
_fnDeleteIndex( that[ thatIdx ], row, false ); // maintain local indexes
|
7782 |
+
|
7783 |
+
// Check for an 'overflow' they case for displaying the table
|
7784 |
+
_fnLengthOverflow( settings );
|
7785 |
+
} );
|
7786 |
+
} );
|
7787 |
+
|
7788 |
+
|
7789 |
+
_api_register( 'rows.add()', function ( rows ) {
|
7790 |
+
var newRows = this.iterator( 'table', function ( settings ) {
|
7791 |
+
var row, i, ien;
|
7792 |
+
var out = [];
|
7793 |
+
|
7794 |
+
for ( i=0, ien=rows.length ; i<ien ; i++ ) {
|
7795 |
+
row = rows[i];
|
7796 |
+
|
7797 |
+
if ( row.nodeName && row.nodeName.toUpperCase() === 'TR' ) {
|
7798 |
+
out.push( _fnAddTr( settings, row )[0] );
|
7799 |
+
}
|
7800 |
+
else {
|
7801 |
+
out.push( _fnAddData( settings, row ) );
|
7802 |
+
}
|
7803 |
+
}
|
7804 |
+
|
7805 |
+
return out;
|
7806 |
+
}, 1 );
|
7807 |
+
|
7808 |
+
// Return an Api.rows() extended instance, so rows().nodes() etc can be used
|
7809 |
+
var modRows = this.rows( -1 );
|
7810 |
+
modRows.pop();
|
7811 |
+
modRows.push.apply( modRows, newRows.toArray() );
|
7812 |
+
|
7813 |
+
return modRows;
|
7814 |
+
} );
|
7815 |
+
|
7816 |
+
|
7817 |
+
|
7818 |
+
|
7819 |
+
|
7820 |
+
/**
|
7821 |
+
*
|
7822 |
+
*/
|
7823 |
+
_api_register( 'row()', function ( selector, opts ) {
|
7824 |
+
return _selector_first( this.rows( selector, opts ) );
|
7825 |
+
} );
|
7826 |
+
|
7827 |
+
|
7828 |
+
_api_register( 'row().data()', function ( data ) {
|
7829 |
+
var ctx = this.context;
|
7830 |
+
|
7831 |
+
if ( data === undefined ) {
|
7832 |
+
// Get
|
7833 |
+
return ctx.length && this.length ?
|
7834 |
+
ctx[0].aoData[ this[0] ]._aData :
|
7835 |
+
undefined;
|
7836 |
+
}
|
7837 |
+
|
7838 |
+
// Set
|
7839 |
+
ctx[0].aoData[ this[0] ]._aData = data;
|
7840 |
+
|
7841 |
+
// Automatically invalidate
|
7842 |
+
_fnInvalidate( ctx[0], this[0], 'data' );
|
7843 |
+
|
7844 |
+
return this;
|
7845 |
+
} );
|
7846 |
+
|
7847 |
+
|
7848 |
+
_api_register( 'row().node()', function () {
|
7849 |
+
var ctx = this.context;
|
7850 |
+
|
7851 |
+
return ctx.length && this.length ?
|
7852 |
+
ctx[0].aoData[ this[0] ].nTr || null :
|
7853 |
+
null;
|
7854 |
+
} );
|
7855 |
+
|
7856 |
+
|
7857 |
+
_api_register( 'row.add()', function ( row ) {
|
7858 |
+
// Allow a jQuery object to be passed in - only a single row is added from
|
7859 |
+
// it though - the first element in the set
|
7860 |
+
if ( row instanceof $ && row.length ) {
|
7861 |
+
row = row[0];
|
7862 |
+
}
|
7863 |
+
|
7864 |
+
var rows = this.iterator( 'table', function ( settings ) {
|
7865 |
+
if ( row.nodeName && row.nodeName.toUpperCase() === 'TR' ) {
|
7866 |
+
return _fnAddTr( settings, row )[0];
|
7867 |
+
}
|
7868 |
+
return _fnAddData( settings, row );
|
7869 |
+
} );
|
7870 |
+
|
7871 |
+
// Return an Api.rows() extended instance, with the newly added row selected
|
7872 |
+
return this.row( rows[0] );
|
7873 |
+
} );
|
7874 |
+
|
7875 |
+
|
7876 |
+
|
7877 |
+
var __details_add = function ( ctx, row, data, klass )
|
7878 |
+
{
|
7879 |
+
// Convert to array of TR elements
|
7880 |
+
var rows = [];
|
7881 |
+
var addRow = function ( r, k ) {
|
7882 |
+
// If we get a TR element, then just add it directly - up to the dev
|
7883 |
+
// to add the correct number of columns etc
|
7884 |
+
if ( r.nodeName && r.nodeName.toLowerCase() === 'tr' ) {
|
7885 |
+
rows.push( r );
|
7886 |
+
}
|
7887 |
+
else {
|
7888 |
+
// Otherwise create a row with a wrapper
|
7889 |
+
var created = $('<tr><td/></tr>').addClass( k );
|
7890 |
+
$('td', created)
|
7891 |
+
.addClass( k )
|
7892 |
+
.html( r )
|
7893 |
+
[0].colSpan = _fnVisbleColumns( ctx );
|
7894 |
+
|
7895 |
+
rows.push( created[0] );
|
7896 |
+
}
|
7897 |
+
};
|
7898 |
+
|
7899 |
+
if ( $.isArray( data ) || data instanceof $ ) {
|
7900 |
+
for ( var i=0, ien=data.length ; i<ien ; i++ ) {
|
7901 |
+
addRow( data[i], klass );
|
7902 |
+
}
|
7903 |
+
}
|
7904 |
+
else {
|
7905 |
+
addRow( data, klass );
|
7906 |
+
}
|
7907 |
+
|
7908 |
+
if ( row._details ) {
|
7909 |
+
row._details.remove();
|
7910 |
+
}
|
7911 |
+
|
7912 |
+
row._details = $(rows);
|
7913 |
+
|
7914 |
+
// If the children were already shown, that state should be retained
|
7915 |
+
if ( row._detailsShow ) {
|
7916 |
+
row._details.insertAfter( row.nTr );
|
7917 |
+
}
|
7918 |
+
};
|
7919 |
+
|
7920 |
+
|
7921 |
+
var __details_remove = function ( api, idx )
|
7922 |
+
{
|
7923 |
+
var ctx = api.context;
|
7924 |
+
|
7925 |
+
if ( ctx.length ) {
|
7926 |
+
var row = ctx[0].aoData[ idx !== undefined ? idx : api[0] ];
|
7927 |
+
|
7928 |
+
if ( row._details ) {
|
7929 |
+
row._details.remove();
|
7930 |
+
|
7931 |
+
row._detailsShow = undefined;
|
7932 |
+
row._details = undefined;
|
7933 |
+
}
|
7934 |
+
}
|
7935 |
+
};
|
7936 |
+
|
7937 |
+
|
7938 |
+
var __details_display = function ( api, show ) {
|
7939 |
+
var ctx = api.context;
|
7940 |
+
|
7941 |
+
if ( ctx.length && api.length ) {
|
7942 |
+
var row = ctx[0].aoData[ api[0] ];
|
7943 |
+
|
7944 |
+
if ( row._details ) {
|
7945 |
+
row._detailsShow = show;
|
7946 |
+
|
7947 |
+
if ( show ) {
|
7948 |
+
row._details.insertAfter( row.nTr );
|
7949 |
+
}
|
7950 |
+
else {
|
7951 |
+
row._details.detach();
|
7952 |
+
}
|
7953 |
+
|
7954 |
+
__details_events( ctx[0] );
|
7955 |
+
}
|
7956 |
+
}
|
7957 |
+
};
|
7958 |
+
|
7959 |
+
|
7960 |
+
var __details_events = function ( settings )
|
7961 |
+
{
|
7962 |
+
var api = new _Api( settings );
|
7963 |
+
var namespace = '.dt.DT_details';
|
7964 |
+
var drawEvent = 'draw'+namespace;
|
7965 |
+
var colvisEvent = 'column-visibility'+namespace;
|
7966 |
+
var destroyEvent = 'destroy'+namespace;
|
7967 |
+
var data = settings.aoData;
|
7968 |
+
|
7969 |
+
api.off( drawEvent +' '+ colvisEvent +' '+ destroyEvent );
|
7970 |
+
|
7971 |
+
if ( _pluck( data, '_details' ).length > 0 ) {
|
7972 |
+
// On each draw, insert the required elements into the document
|
7973 |
+
api.on( drawEvent, function ( e, ctx ) {
|
7974 |
+
if ( settings !== ctx ) {
|
7975 |
+
return;
|
7976 |
+
}
|
7977 |
+
|
7978 |
+
api.rows( {page:'current'} ).eq(0).each( function (idx) {
|
7979 |
+
// Internal data grab
|
7980 |
+
var row = data[ idx ];
|
7981 |
+
|
7982 |
+
if ( row._detailsShow ) {
|
7983 |
+
row._details.insertAfter( row.nTr );
|
7984 |
+
}
|
7985 |
+
} );
|
7986 |
+
} );
|
7987 |
+
|
7988 |
+
// Column visibility change - update the colspan
|
7989 |
+
api.on( colvisEvent, function ( e, ctx, idx, vis ) {
|
7990 |
+
if ( settings !== ctx ) {
|
7991 |
+
return;
|
7992 |
+
}
|
7993 |
+
|
7994 |
+
// Update the colspan for the details rows (note, only if it already has
|
7995 |
+
// a colspan)
|
7996 |
+
var row, visible = _fnVisbleColumns( ctx );
|
7997 |
+
|
7998 |
+
for ( var i=0, ien=data.length ; i<ien ; i++ ) {
|
7999 |
+
row = data[i];
|
8000 |
+
|
8001 |
+
if ( row._details ) {
|
8002 |
+
row._details.children('td[colspan]').attr('colspan', visible );
|
8003 |
+
}
|
8004 |
+
}
|
8005 |
+
} );
|
8006 |
+
|
8007 |
+
// Table destroyed - nuke any child rows
|
8008 |
+
api.on( destroyEvent, function ( e, ctx ) {
|
8009 |
+
if ( settings !== ctx ) {
|
8010 |
+
return;
|
8011 |
+
}
|
8012 |
+
|
8013 |
+
for ( var i=0, ien=data.length ; i<ien ; i++ ) {
|
8014 |
+
if ( data[i]._details ) {
|
8015 |
+
__details_remove( api, i );
|
8016 |
+
}
|
8017 |
+
}
|
8018 |
+
} );
|
8019 |
+
}
|
8020 |
+
};
|
8021 |
+
|
8022 |
+
// Strings for the method names to help minification
|
8023 |
+
var _emp = '';
|
8024 |
+
var _child_obj = _emp+'row().child';
|
8025 |
+
var _child_mth = _child_obj+'()';
|
8026 |
+
|
8027 |
+
// data can be:
|
8028 |
+
// tr
|
8029 |
+
// string
|
8030 |
+
// jQuery or array of any of the above
|
8031 |
+
_api_register( _child_mth, function ( data, klass ) {
|
8032 |
+
var ctx = this.context;
|
8033 |
+
|
8034 |
+
if ( data === undefined ) {
|
8035 |
+
// get
|
8036 |
+
return ctx.length && this.length ?
|
8037 |
+
ctx[0].aoData[ this[0] ]._details :
|
8038 |
+
undefined;
|
8039 |
+
}
|
8040 |
+
else if ( data === true ) {
|
8041 |
+
// show
|
8042 |
+
this.child.show();
|
8043 |
+
}
|
8044 |
+
else if ( data === false ) {
|
8045 |
+
// remove
|
8046 |
+
__details_remove( this );
|
8047 |
+
}
|
8048 |
+
else if ( ctx.length && this.length ) {
|
8049 |
+
// set
|
8050 |
+
__details_add( ctx[0], ctx[0].aoData[ this[0] ], data, klass );
|
8051 |
+
}
|
8052 |
+
|
8053 |
+
return this;
|
8054 |
+
} );
|
8055 |
+
|
8056 |
+
|
8057 |
+
_api_register( [
|
8058 |
+
_child_obj+'.show()',
|
8059 |
+
_child_mth+'.show()' // only when `child()` was called with parameters (without
|
8060 |
+
], function ( show ) { // it returns an object and this method is not executed)
|
8061 |
+
__details_display( this, true );
|
8062 |
+
return this;
|
8063 |
+
} );
|
8064 |
+
|
8065 |
+
|
8066 |
+
_api_register( [
|
8067 |
+
_child_obj+'.hide()',
|
8068 |
+
_child_mth+'.hide()' // only when `child()` was called with parameters (without
|
8069 |
+
], function () { // it returns an object and this method is not executed)
|
8070 |
+
__details_display( this, false );
|
8071 |
+
return this;
|
8072 |
+
} );
|
8073 |
+
|
8074 |
+
|
8075 |
+
_api_register( [
|
8076 |
+
_child_obj+'.remove()',
|
8077 |
+
_child_mth+'.remove()' // only when `child()` was called with parameters (without
|
8078 |
+
], function () { // it returns an object and this method is not executed)
|
8079 |
+
__details_remove( this );
|
8080 |
+
return this;
|
8081 |
+
} );
|
8082 |
+
|
8083 |
+
|
8084 |
+
_api_register( _child_obj+'.isShown()', function () {
|
8085 |
+
var ctx = this.context;
|
8086 |
+
|
8087 |
+
if ( ctx.length && this.length ) {
|
8088 |
+
// _detailsShown as false or undefined will fall through to return false
|
8089 |
+
return ctx[0].aoData[ this[0] ]._detailsShow || false;
|
8090 |
+
}
|
8091 |
+
return false;
|
8092 |
+
} );
|
8093 |
+
|
8094 |
+
|
8095 |
+
|
8096 |
+
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
8097 |
+
* Columns
|
8098 |
+
*
|
8099 |
+
* {integer} - column index (>=0 count from left, <0 count from right)
|
8100 |
+
* "{integer}:visIdx" - visible column index (i.e. translate to column index) (>=0 count from left, <0 count from right)
|
8101 |
+
* "{integer}:visible" - alias for {integer}:visIdx (>=0 count from left, <0 count from right)
|
8102 |
+
* "{string}:name" - column name
|
8103 |
+
* "{string}" - jQuery selector on column header nodes
|
8104 |
+
*
|
8105 |
+
*/
|
8106 |
+
|
8107 |
+
// can be an array of these items, comma separated list, or an array of comma
|
8108 |
+
// separated lists
|
8109 |
+
|
8110 |
+
var __re_column_selector = /^(.+):(name|visIdx|visible)$/;
|
8111 |
+
|
8112 |
+
|
8113 |
+
// r1 and r2 are redundant - but it means that the parameters match for the
|
8114 |
+
// iterator callback in columns().data()
|
8115 |
+
var __columnData = function ( settings, column, r1, r2, rows ) {
|
8116 |
+
var a = [];
|
8117 |
+
for ( var row=0, ien=rows.length ; row<ien ; row++ ) {
|
8118 |
+
a.push( _fnGetCellData( settings, rows[row], column ) );
|
8119 |
+
}
|
8120 |
+
return a;
|
8121 |
+
};
|
8122 |
+
|
8123 |
+
|
8124 |
+
var __column_selector = function ( settings, selector, opts )
|
8125 |
+
{
|
8126 |
+
var
|
8127 |
+
columns = settings.aoColumns,
|
8128 |
+
names = _pluck( columns, 'sName' ),
|
8129 |
+
nodes = _pluck( columns, 'nTh' );
|
8130 |
+
|
8131 |
+
return _selector_run( selector, function ( s ) {
|
8132 |
+
var selInt = _intVal( s );
|
8133 |
+
|
8134 |
+
// Selector - all
|
8135 |
+
if ( s === '' ) {
|
8136 |
+
return _range( columns.length );
|
8137 |
+
}
|
8138 |
+
|
8139 |
+
// Selector - index
|
8140 |
+
if ( selInt !== null ) {
|
8141 |
+
return [ selInt >= 0 ?
|
8142 |
+
selInt : // Count from left
|
8143 |
+
columns.length + selInt // Count from right (+ because its a negative value)
|
8144 |
+
];
|
8145 |
+
}
|
8146 |
+
|
8147 |
+
// Selector = function
|
8148 |
+
if ( typeof s === 'function' ) {
|
8149 |
+
var rows = _selector_row_indexes( settings, opts );
|
8150 |
+
|
8151 |
+
return $.map( columns, function (col, idx) {
|
8152 |
+
return s(
|
8153 |
+
idx,
|
8154 |
+
__columnData( settings, idx, 0, 0, rows ),
|
8155 |
+
nodes[ idx ]
|
8156 |
+
) ? idx : null;
|
8157 |
+
} );
|
8158 |
+
}
|
8159 |
+
|
8160 |
+
// jQuery or string selector
|
8161 |
+
var match = typeof s === 'string' ?
|
8162 |
+
s.match( __re_column_selector ) :
|
8163 |
+
'';
|
8164 |
+
|
8165 |
+
if ( match ) {
|
8166 |
+
switch( match[2] ) {
|
8167 |
+
case 'visIdx':
|
8168 |
+
case 'visible':
|
8169 |
+
var idx = parseInt( match[1], 10 );
|
8170 |
+
// Visible index given, convert to column index
|
8171 |
+
if ( idx < 0 ) {
|
8172 |
+
// Counting from the right
|
8173 |
+
var visColumns = $.map( columns, function (col,i) {
|
8174 |
+
return col.bVisible ? i : null;
|
8175 |
+
} );
|
8176 |
+
return [ visColumns[ visColumns.length + idx ] ];
|
8177 |
+
}
|
8178 |
+
// Counting from the left
|
8179 |
+
return [ _fnVisibleToColumnIndex( settings, idx ) ];
|
8180 |
+
|
8181 |
+
case 'name':
|
8182 |
+
// match by name. `names` is column index complete and in order
|
8183 |
+
return $.map( names, function (name, i) {
|
8184 |
+
return name === match[1] ? i : null;
|
8185 |
+
} );
|
8186 |
+
}
|
8187 |
+
}
|
8188 |
+
else {
|
8189 |
+
// jQuery selector on the TH elements for the columns
|
8190 |
+
return $( nodes )
|
8191 |
+
.filter( s )
|
8192 |
+
.map( function () {
|
8193 |
+
return $.inArray( this, nodes ); // `nodes` is column index complete and in order
|
8194 |
+
} )
|
8195 |
+
.toArray();
|
8196 |
+
}
|
8197 |
+
} );
|
8198 |
+
};
|
8199 |
+
|
8200 |
+
|
8201 |
+
var __setColumnVis = function ( settings, column, vis, recalc ) {
|
8202 |
+
var
|
8203 |
+
cols = settings.aoColumns,
|
8204 |
+
col = cols[ column ],
|
8205 |
+
data = settings.aoData,
|
8206 |
+
row, cells, i, ien, tr;
|
8207 |
+
|
8208 |
+
// Get
|
8209 |
+
if ( vis === undefined ) {
|
8210 |
+
return col.bVisible;
|
8211 |
+
}
|
8212 |
+
|
8213 |
+
// Set
|
8214 |
+
// No change
|
8215 |
+
if ( col.bVisible === vis ) {
|
8216 |
+
return;
|
8217 |
+
}
|
8218 |
+
|
8219 |
+
if ( vis ) {
|
8220 |
+
// Insert column
|
8221 |
+
// Need to decide if we should use appendChild or insertBefore
|
8222 |
+
var insertBefore = $.inArray( true, _pluck(cols, 'bVisible'), column+1 );
|
8223 |
+
|
8224 |
+
for ( i=0, ien=data.length ; i<ien ; i++ ) {
|
8225 |
+
tr = data[i].nTr;
|
8226 |
+
cells = data[i].anCells;
|
8227 |
+
|
8228 |
+
if ( tr ) {
|
8229 |
+
// insertBefore can act like appendChild if 2nd arg is null
|
8230 |
+
tr.insertBefore( cells[ column ], cells[ insertBefore ] || null );
|
8231 |
+
}
|
8232 |
+
}
|
8233 |
+
}
|
8234 |
+
else {
|
8235 |
+
// Remove column
|
8236 |
+
$( _pluck( settings.aoData, 'anCells', column ) ).detach();
|
8237 |
+
}
|
8238 |
+
|
8239 |
+
// Common actions
|
8240 |
+
col.bVisible = vis;
|
8241 |
+
_fnDrawHead( settings, settings.aoHeader );
|
8242 |
+
_fnDrawHead( settings, settings.aoFooter );
|
8243 |
+
|
8244 |
+
if ( recalc === undefined || recalc ) {
|
8245 |
+
// Automatically adjust column sizing
|
8246 |
+
_fnAdjustColumnSizing( settings );
|
8247 |
+
|
8248 |
+
// Realign columns for scrolling
|
8249 |
+
if ( settings.oScroll.sX || settings.oScroll.sY ) {
|
8250 |
+
_fnScrollDraw( settings );
|
8251 |
+
}
|
8252 |
+
}
|
8253 |
+
|
8254 |
+
_fnCallbackFire( settings, null, 'column-visibility', [settings, column, vis] );
|
8255 |
+
|
8256 |
+
_fnSaveState( settings );
|
8257 |
+
};
|
8258 |
+
|
8259 |
+
|
8260 |
+
/**
|
8261 |
+
*
|
8262 |
+
*/
|
8263 |
+
_api_register( 'columns()', function ( selector, opts ) {
|
8264 |
+
// argument shifting
|
8265 |
+
if ( selector === undefined ) {
|
8266 |
+
selector = '';
|
8267 |
+
}
|
8268 |
+
else if ( $.isPlainObject( selector ) ) {
|
8269 |
+
opts = selector;
|
8270 |
+
selector = '';
|
8271 |
+
}
|
8272 |
+
|
8273 |
+
opts = _selector_opts( opts );
|
8274 |
+
|
8275 |
+
var inst = this.iterator( 'table', function ( settings ) {
|
8276 |
+
return __column_selector( settings, selector, opts );
|
8277 |
+
}, 1 );
|
8278 |
+
|
8279 |
+
// Want argument shifting here and in _row_selector?
|
8280 |
+
inst.selector.cols = selector;
|
8281 |
+
inst.selector.opts = opts;
|
8282 |
+
|
8283 |
+
return inst;
|
8284 |
+
} );
|
8285 |
+
|
8286 |
+
|
8287 |
+
/**
|
8288 |
+
*
|
8289 |
+
*/
|
8290 |
+
_api_registerPlural( 'columns().header()', 'column().header()', function ( selector, opts ) {
|
8291 |
+
return this.iterator( 'column', function ( settings, column ) {
|
8292 |
+
return settings.aoColumns[column].nTh;
|
8293 |
+
}, 1 );
|
8294 |
+
} );
|
8295 |
+
|
8296 |
+
|
8297 |
+
/**
|
8298 |
+
*
|
8299 |
+
*/
|
8300 |
+
_api_registerPlural( 'columns().footer()', 'column().footer()', function ( selector, opts ) {
|
8301 |
+
return this.iterator( 'column', function ( settings, column ) {
|
8302 |
+
return settings.aoColumns[column].nTf;
|
8303 |
+
}, 1 );
|
8304 |
+
} );
|
8305 |
+
|
8306 |
+
|
8307 |
+
/**
|
8308 |
+
*
|
8309 |
+
*/
|
8310 |
+
_api_registerPlural( 'columns().data()', 'column().data()', function () {
|
8311 |
+
return this.iterator( 'column-rows', __columnData, 1 );
|
8312 |
+
} );
|
8313 |
+
|
8314 |
+
|
8315 |
+
_api_registerPlural( 'columns().dataSrc()', 'column().dataSrc()', function () {
|
8316 |
+
return this.iterator( 'column', function ( settings, column ) {
|
8317 |
+
return settings.aoColumns[column].mData;
|
8318 |
+
}, 1 );
|
8319 |
+
} );
|
8320 |
+
|
8321 |
+
|
8322 |
+
_api_registerPlural( 'columns().cache()', 'column().cache()', function ( type ) {
|
8323 |
+
return this.iterator( 'column-rows', function ( settings, column, i, j, rows ) {
|
8324 |
+
return _pluck_order( settings.aoData, rows,
|
8325 |
+
type === 'search' ? '_aFilterData' : '_aSortData', column
|
8326 |
+
);
|
8327 |
+
}, 1 );
|
8328 |
+
} );
|
8329 |
+
|
8330 |
+
|
8331 |
+
_api_registerPlural( 'columns().nodes()', 'column().nodes()', function () {
|
8332 |
+
return this.iterator( 'column-rows', function ( settings, column, i, j, rows ) {
|
8333 |
+
return _pluck_order( settings.aoData, rows, 'anCells', column ) ;
|
8334 |
+
}, 1 );
|
8335 |
+
} );
|
8336 |
+
|
8337 |
+
|
8338 |
+
|
8339 |
+
_api_registerPlural( 'columns().visible()', 'column().visible()', function ( vis, calc ) {
|
8340 |
+
return this.iterator( 'column', function ( settings, column ) {
|
8341 |
+
if ( vis === undefined ) {
|
8342 |
+
return settings.aoColumns[ column ].bVisible;
|
8343 |
+
} // else
|
8344 |
+
__setColumnVis( settings, column, vis, calc );
|
8345 |
+
} );
|
8346 |
+
} );
|
8347 |
+
|
8348 |
+
|
8349 |
+
|
8350 |
+
_api_registerPlural( 'columns().indexes()', 'column().index()', function ( type ) {
|
8351 |
+
return this.iterator( 'column', function ( settings, column ) {
|
8352 |
+
return type === 'visible' ?
|
8353 |
+
_fnColumnIndexToVisible( settings, column ) :
|
8354 |
+
column;
|
8355 |
+
}, 1 );
|
8356 |
+
} );
|
8357 |
+
|
8358 |
+
|
8359 |
+
// _api_register( 'columns().show()', function () {
|
8360 |
+
// var selector = this.selector;
|
8361 |
+
// return this.columns( selector.cols, selector.opts ).visible( true );
|
8362 |
+
// } );
|
8363 |
+
|
8364 |
+
|
8365 |
+
// _api_register( 'columns().hide()', function () {
|
8366 |
+
// var selector = this.selector;
|
8367 |
+
// return this.columns( selector.cols, selector.opts ).visible( false );
|
8368 |
+
// } );
|
8369 |
+
|
8370 |
+
|
8371 |
+
|
8372 |
+
_api_register( 'columns.adjust()', function () {
|
8373 |
+
return this.iterator( 'table', function ( settings ) {
|
8374 |
+
_fnAdjustColumnSizing( settings );
|
8375 |
+
}, 1 );
|
8376 |
+
} );
|
8377 |
+
|
8378 |
+
|
8379 |
+
// Convert from one column index type, to another type
|
8380 |
+
_api_register( 'column.index()', function ( type, idx ) {
|
8381 |
+
if ( this.context.length !== 0 ) {
|
8382 |
+
var ctx = this.context[0];
|
8383 |
+
|
8384 |
+
if ( type === 'fromVisible' || type === 'toData' ) {
|
8385 |
+
return _fnVisibleToColumnIndex( ctx, idx );
|
8386 |
+
}
|
8387 |
+
else if ( type === 'fromData' || type === 'toVisible' ) {
|
8388 |
+
return _fnColumnIndexToVisible( ctx, idx );
|
8389 |
+
}
|
8390 |
+
}
|
8391 |
+
} );
|
8392 |
+
|
8393 |
+
|
8394 |
+
_api_register( 'column()', function ( selector, opts ) {
|
8395 |
+
return _selector_first( this.columns( selector, opts ) );
|
8396 |
+
} );
|
8397 |
+
|
8398 |
+
|
8399 |
+
|
8400 |
+
|
8401 |
+
var __cell_selector = function ( settings, selector, opts )
|
8402 |
+
{
|
8403 |
+
var data = settings.aoData;
|
8404 |
+
var rows = _selector_row_indexes( settings, opts );
|
8405 |
+
var cells = _removeEmpty( _pluck_order( data, rows, 'anCells' ) );
|
8406 |
+
var allCells = $( [].concat.apply([], cells) );
|
8407 |
+
var row;
|
8408 |
+
var columns = settings.aoColumns.length;
|
8409 |
+
var a, i, ien, j, o, host;
|
8410 |
+
|
8411 |
+
return _selector_run( selector, function ( s ) {
|
8412 |
+
var fnSelector = typeof s === 'function';
|
8413 |
+
|
8414 |
+
if ( s === null || s === undefined || fnSelector ) {
|
8415 |
+
// All cells and function selectors
|
8416 |
+
a = [];
|
8417 |
+
|
8418 |
+
for ( i=0, ien=rows.length ; i<ien ; i++ ) {
|
8419 |
+
row = rows[i];
|
8420 |
+
|
8421 |
+
for ( j=0 ; j<columns ; j++ ) {
|
8422 |
+
o = {
|
8423 |
+
row: row,
|
8424 |
+
column: j
|
8425 |
+
};
|
8426 |
+
|
8427 |
+
if ( fnSelector ) {
|
8428 |
+
// Selector - function
|
8429 |
+
host = settings.aoData[ row ];
|
8430 |
+
|
8431 |
+
if ( s( o, _fnGetCellData(settings, row, j), host.anCells[j] ) ) {
|
8432 |
+
a.push( o );
|
8433 |
+
}
|
8434 |
+
}
|
8435 |
+
else {
|
8436 |
+
// Selector - all
|
8437 |
+
a.push( o );
|
8438 |
+
}
|
8439 |
+
}
|
8440 |
+
}
|
8441 |
+
|
8442 |
+
return a;
|
8443 |
+
}
|
8444 |
+
|
8445 |
+
// Selector - index
|
8446 |
+
if ( $.isPlainObject( s ) ) {
|
8447 |
+
return [s];
|
8448 |
+
}
|
8449 |
+
|
8450 |
+
// Selector - jQuery filtered cells
|
8451 |
+
return allCells
|
8452 |
+
.filter( s )
|
8453 |
+
.map( function (i, el) {
|
8454 |
+
row = el.parentNode._DT_RowIndex;
|
8455 |
+
|
8456 |
+
return {
|
8457 |
+
row: row,
|
8458 |
+
column: $.inArray( el, data[ row ].anCells )
|
8459 |
+
};
|
8460 |
+
} )
|
8461 |
+
.toArray();
|
8462 |
+
} );
|
8463 |
+
};
|
8464 |
+
|
8465 |
+
|
8466 |
+
|
8467 |
+
|
8468 |
+
_api_register( 'cells()', function ( rowSelector, columnSelector, opts ) {
|
8469 |
+
// Argument shifting
|
8470 |
+
if ( $.isPlainObject( rowSelector ) ) {
|
8471 |
+
// Indexes
|
8472 |
+
if ( typeof rowSelector.row !== undefined ) {
|
8473 |
+
opts = columnSelector;
|
8474 |
+
columnSelector = null;
|
8475 |
+
}
|
8476 |
+
else {
|
8477 |
+
opts = rowSelector;
|
8478 |
+
rowSelector = null;
|
8479 |
+
}
|
8480 |
+
}
|
8481 |
+
if ( $.isPlainObject( columnSelector ) ) {
|
8482 |
+
opts = columnSelector;
|
8483 |
+
columnSelector = null;
|
8484 |
+
}
|
8485 |
+
|
8486 |
+
// Cell selector
|
8487 |
+
if ( columnSelector === null || columnSelector === undefined ) {
|
8488 |
+
return this.iterator( 'table', function ( settings ) {
|
8489 |
+
return __cell_selector( settings, rowSelector, _selector_opts( opts ) );
|
8490 |
+
} );
|
8491 |
+
}
|
8492 |
+
|
8493 |
+
// Row + column selector
|
8494 |
+
var columns = this.columns( columnSelector, opts );
|
8495 |
+
var rows = this.rows( rowSelector, opts );
|
8496 |
+
var a, i, ien, j, jen;
|
8497 |
+
|
8498 |
+
var cells = this.iterator( 'table', function ( settings, idx ) {
|
8499 |
+
a = [];
|
8500 |
+
|
8501 |
+
for ( i=0, ien=rows[idx].length ; i<ien ; i++ ) {
|
8502 |
+
for ( j=0, jen=columns[idx].length ; j<jen ; j++ ) {
|
8503 |
+
a.push( {
|
8504 |
+
row: rows[idx][i],
|
8505 |
+
column: columns[idx][j]
|
8506 |
+
} );
|
8507 |
+
}
|
8508 |
+
}
|
8509 |
+
|
8510 |
+
return a;
|
8511 |
+
}, 1 );
|
8512 |
+
|
8513 |
+
$.extend( cells.selector, {
|
8514 |
+
cols: columnSelector,
|
8515 |
+
rows: rowSelector,
|
8516 |
+
opts: opts
|
8517 |
+
} );
|
8518 |
+
|
8519 |
+
return cells;
|
8520 |
+
} );
|
8521 |
+
|
8522 |
+
|
8523 |
+
_api_registerPlural( 'cells().nodes()', 'cell().node()', function () {
|
8524 |
+
return this.iterator( 'cell', function ( settings, row, column ) {
|
8525 |
+
var cells = settings.aoData[ row ].anCells;
|
8526 |
+
return cells ?
|
8527 |
+
cells[ column ] :
|
8528 |
+
undefined;
|
8529 |
+
}, 1 );
|
8530 |
+
} );
|
8531 |
+
|
8532 |
+
|
8533 |
+
_api_register( 'cells().data()', function () {
|
8534 |
+
return this.iterator( 'cell', function ( settings, row, column ) {
|
8535 |
+
return _fnGetCellData( settings, row, column );
|
8536 |
+
}, 1 );
|
8537 |
+
} );
|
8538 |
+
|
8539 |
+
|
8540 |
+
_api_registerPlural( 'cells().cache()', 'cell().cache()', function ( type ) {
|
8541 |
+
type = type === 'search' ? '_aFilterData' : '_aSortData';
|
8542 |
+
|
8543 |
+
return this.iterator( 'cell', function ( settings, row, column ) {
|
8544 |
+
return settings.aoData[ row ][ type ][ column ];
|
8545 |
+
}, 1 );
|
8546 |
+
} );
|
8547 |
+
|
8548 |
+
|
8549 |
+
_api_registerPlural( 'cells().render()', 'cell().render()', function ( type ) {
|
8550 |
+
return this.iterator( 'cell', function ( settings, row, column ) {
|
8551 |
+
return _fnGetCellData( settings, row, column, type );
|
8552 |
+
}, 1 );
|
8553 |
+
} );
|
8554 |
+
|
8555 |
+
|
8556 |
+
_api_registerPlural( 'cells().indexes()', 'cell().index()', function () {
|
8557 |
+
return this.iterator( 'cell', function ( settings, row, column ) {
|
8558 |
+
return {
|
8559 |
+
row: row,
|
8560 |
+
column: column,
|
8561 |
+
columnVisible: _fnColumnIndexToVisible( settings, column )
|
8562 |
+
};
|
8563 |
+
}, 1 );
|
8564 |
+
} );
|
8565 |
+
|
8566 |
+
|
8567 |
+
_api_registerPlural( 'cells().invalidate()', 'cell().invalidate()', function ( src ) {
|
8568 |
+
return this.iterator( 'cell', function ( settings, row, column ) {
|
8569 |
+
_fnInvalidate( settings, row, src, column );
|
8570 |
+
} );
|
8571 |
+
} );
|
8572 |
+
|
8573 |
+
|
8574 |
+
|
8575 |
+
_api_register( 'cell()', function ( rowSelector, columnSelector, opts ) {
|
8576 |
+
return _selector_first( this.cells( rowSelector, columnSelector, opts ) );
|
8577 |
+
} );
|
8578 |
+
|
8579 |
+
|
8580 |
+
_api_register( 'cell().data()', function ( data ) {
|
8581 |
+
var ctx = this.context;
|
8582 |
+
var cell = this[0];
|
8583 |
+
|
8584 |
+
if ( data === undefined ) {
|
8585 |
+
// Get
|
8586 |
+
return ctx.length && cell.length ?
|
8587 |
+
_fnGetCellData( ctx[0], cell[0].row, cell[0].column ) :
|
8588 |
+
undefined;
|
8589 |
+
}
|
8590 |
+
|
8591 |
+
// Set
|
8592 |
+
_fnSetCellData( ctx[0], cell[0].row, cell[0].column, data );
|
8593 |
+
_fnInvalidate( ctx[0], cell[0].row, 'data', cell[0].column );
|
8594 |
+
|
8595 |
+
return this;
|
8596 |
+
} );
|
8597 |
+
|
8598 |
+
|
8599 |
+
|
8600 |
+
/**
|
8601 |
+
* Get current ordering (sorting) that has been applied to the table.
|
8602 |
+
*
|
8603 |
+
* @returns {array} 2D array containing the sorting information for the first
|
8604 |
+
* table in the current context. Each element in the parent array represents
|
8605 |
+
* a column being sorted upon (i.e. multi-sorting with two columns would have
|
8606 |
+
* 2 inner arrays). The inner arrays may have 2 or 3 elements. The first is
|
8607 |
+
* the column index that the sorting condition applies to, the second is the
|
8608 |
+
* direction of the sort (`desc` or `asc`) and, optionally, the third is the
|
8609 |
+
* index of the sorting order from the `column.sorting` initialisation array.
|
8610 |
+
*//**
|
8611 |
+
* Set the ordering for the table.
|
8612 |
+
*
|
8613 |
+
* @param {integer} order Column index to sort upon.
|
8614 |
+
* @param {string} direction Direction of the sort to be applied (`asc` or `desc`)
|
8615 |
+
* @returns {DataTables.Api} this
|
8616 |
+
*//**
|
8617 |
+
* Set the ordering for the table.
|
8618 |
+
*
|
8619 |
+
* @param {array} order 1D array of sorting information to be applied.
|
8620 |
+
* @param {array} [...] Optional additional sorting conditions
|
8621 |
+
* @returns {DataTables.Api} this
|
8622 |
+
*//**
|
8623 |
+
* Set the ordering for the table.
|
8624 |
+
*
|
8625 |
+
* @param {array} order 2D array of sorting information to be applied.
|
8626 |
+
* @returns {DataTables.Api} this
|
8627 |
+
*/
|
8628 |
+
_api_register( 'order()', function ( order, dir ) {
|
8629 |
+
var ctx = this.context;
|
8630 |
+
|
8631 |
+
if ( order === undefined ) {
|
8632 |
+
// get
|
8633 |
+
return ctx.length !== 0 ?
|
8634 |
+
ctx[0].aaSorting :
|
8635 |
+
undefined;
|
8636 |
+
}
|
8637 |
+
|
8638 |
+
// set
|
8639 |
+
if ( typeof order === 'number' ) {
|
8640 |
+
// Simple column / direction passed in
|
8641 |
+
order = [ [ order, dir ] ];
|
8642 |
+
}
|
8643 |
+
else if ( ! $.isArray( order[0] ) ) {
|
8644 |
+
// Arguments passed in (list of 1D arrays)
|
8645 |
+
order = Array.prototype.slice.call( arguments );
|
8646 |
+
}
|
8647 |
+
// otherwise a 2D array was passed in
|
8648 |
+
|
8649 |
+
return this.iterator( 'table', function ( settings ) {
|
8650 |
+
settings.aaSorting = order.slice();
|
8651 |
+
} );
|
8652 |
+
} );
|
8653 |
+
|
8654 |
+
|
8655 |
+
/**
|
8656 |
+
* Attach a sort listener to an element for a given column
|
8657 |
+
*
|
8658 |
+
* @param {node|jQuery|string} node Identifier for the element(s) to attach the
|
8659 |
+
* listener to. This can take the form of a single DOM node, a jQuery
|
8660 |
+
* collection of nodes or a jQuery selector which will identify the node(s).
|
8661 |
+
* @param {integer} column the column that a click on this node will sort on
|
8662 |
+
* @param {function} [callback] callback function when sort is run
|
8663 |
+
* @returns {DataTables.Api} this
|
8664 |
+
*/
|
8665 |
+
_api_register( 'order.listener()', function ( node, column, callback ) {
|
8666 |
+
return this.iterator( 'table', function ( settings ) {
|
8667 |
+
_fnSortAttachListener( settings, node, column, callback );
|
8668 |
+
} );
|
8669 |
+
} );
|
8670 |
+
|
8671 |
+
|
8672 |
+
// Order by the selected column(s)
|
8673 |
+
_api_register( [
|
8674 |
+
'columns().order()',
|
8675 |
+
'column().order()'
|
8676 |
+
], function ( dir ) {
|
8677 |
+
var that = this;
|
8678 |
+
|
8679 |
+
return this.iterator( 'table', function ( settings, i ) {
|
8680 |
+
var sort = [];
|
8681 |
+
|
8682 |
+
$.each( that[i], function (j, col) {
|
8683 |
+
sort.push( [ col, dir ] );
|
8684 |
} );
|
8685 |
+
|
8686 |
+
settings.aaSorting = sort;
|
8687 |
+
} );
|
8688 |
+
} );
|
8689 |
+
|
8690 |
+
|
8691 |
+
|
8692 |
+
_api_register( 'search()', function ( input, regex, smart, caseInsen ) {
|
8693 |
+
var ctx = this.context;
|
8694 |
+
|
8695 |
+
if ( input === undefined ) {
|
8696 |
+
// get
|
8697 |
+
return ctx.length !== 0 ?
|
8698 |
+
ctx[0].oPreviousSearch.sSearch :
|
8699 |
+
undefined;
|
8700 |
+
}
|
8701 |
+
|
8702 |
+
// set
|
8703 |
+
return this.iterator( 'table', function ( settings ) {
|
8704 |
+
if ( ! settings.oFeatures.bFilter ) {
|
8705 |
+
return;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8706 |
}
|
8707 |
+
|
8708 |
+
_fnFilterComplete( settings, $.extend( {}, settings.oPreviousSearch, {
|
8709 |
+
"sSearch": input+"",
|
8710 |
+
"bRegex": regex === null ? false : regex,
|
8711 |
+
"bSmart": smart === null ? true : smart,
|
8712 |
+
"bCaseInsensitive": caseInsen === null ? true : caseInsen
|
8713 |
+
} ), 1 );
|
8714 |
+
} );
|
8715 |
+
} );
|
8716 |
+
|
8717 |
+
|
8718 |
+
_api_registerPlural(
|
8719 |
+
'columns().search()',
|
8720 |
+
'column().search()',
|
8721 |
+
function ( input, regex, smart, caseInsen ) {
|
8722 |
+
return this.iterator( 'column', function ( settings, column ) {
|
8723 |
+
var preSearch = settings.aoPreSearchCols;
|
8724 |
+
|
8725 |
+
if ( input === undefined ) {
|
8726 |
+
// get
|
8727 |
+
return preSearch[ column ].sSearch;
|
8728 |
}
|
8729 |
+
|
8730 |
+
// set
|
8731 |
+
if ( ! settings.oFeatures.bFilter ) {
|
8732 |
+
return;
|
8733 |
+
}
|
8734 |
+
|
8735 |
+
$.extend( preSearch[ column ], {
|
8736 |
+
"sSearch": input+"",
|
8737 |
+
"bRegex": regex === null ? false : regex,
|
8738 |
+
"bSmart": smart === null ? true : smart,
|
8739 |
+
"bCaseInsensitive": caseInsen === null ? true : caseInsen
|
8740 |
+
} );
|
8741 |
+
|
8742 |
+
_fnFilterComplete( settings, settings.oPreviousSearch, 1 );
|
8743 |
+
} );
|
8744 |
+
}
|
8745 |
+
);
|
8746 |
+
|
8747 |
+
/*
|
8748 |
+
* State API methods
|
8749 |
+
*/
|
8750 |
+
|
8751 |
+
_api_register( 'state()', function () {
|
8752 |
+
return this.context.length ?
|
8753 |
+
this.context[0].oSavedState :
|
8754 |
+
null;
|
8755 |
+
} );
|
8756 |
+
|
8757 |
+
|
8758 |
+
_api_register( 'state.clear()', function () {
|
8759 |
+
return this.iterator( 'table', function ( settings ) {
|
8760 |
+
// Save an empty object
|
8761 |
+
settings.fnStateSaveCallback.call( settings.oInstance, settings, {} );
|
8762 |
} );
|
8763 |
+
} );
|
8764 |
+
|
8765 |
+
|
8766 |
+
_api_register( 'state.loaded()', function () {
|
8767 |
+
return this.context.length ?
|
8768 |
+
this.context[0].oLoadedState :
|
8769 |
+
null;
|
8770 |
+
} );
|
8771 |
+
|
8772 |
+
|
8773 |
+
_api_register( 'state.save()', function () {
|
8774 |
+
return this.iterator( 'table', function ( settings ) {
|
8775 |
+
_fnSaveState( settings );
|
8776 |
+
} );
|
8777 |
+
} );
|
8778 |
+
|
8779 |
|
8780 |
|
8781 |
/**
|
8782 |
+
* Provide a common method for plug-ins to check the version of DataTables being
|
8783 |
+
* used, in order to ensure compatibility.
|
8784 |
+
*
|
8785 |
+
* @param {string} version Version string to check for, in the format "X.Y.Z".
|
8786 |
+
* Note that the formats "X" and "X.Y" are also acceptable.
|
8787 |
+
* @returns {boolean} true if this version of DataTables is greater or equal to
|
8788 |
+
* the required version, or false if this version of DataTales is not
|
8789 |
+
* suitable
|
8790 |
* @static
|
8791 |
* @dtopt API-Static
|
8792 |
*
|
8793 |
* @example
|
8794 |
+
* alert( $.fn.dataTable.versionCheck( '1.9.0' ) );
|
8795 |
*/
|
8796 |
+
DataTable.versionCheck = DataTable.fnVersionCheck = function( version )
|
8797 |
{
|
8798 |
+
var aThis = DataTable.version.split('.');
|
8799 |
+
var aThat = version.split('.');
|
8800 |
+
var iThis, iThat;
|
8801 |
+
|
8802 |
+
for ( var i=0, iLen=aThat.length ; i<iLen ; i++ ) {
|
8803 |
+
iThis = parseInt( aThis[i], 10 ) || 0;
|
8804 |
+
iThat = parseInt( aThat[i], 10 ) || 0;
|
8805 |
+
|
8806 |
+
// Parts are the same, keep comparing
|
8807 |
+
if (iThis === iThat) {
|
8808 |
+
continue;
|
8809 |
}
|
8810 |
+
|
8811 |
+
// Parts are different, return immediately
|
8812 |
+
return iThis > iThat;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8813 |
}
|
8814 |
+
|
8815 |
+
return true;
|
8816 |
};
|
8817 |
|
8818 |
|
8819 |
/**
|
8820 |
+
* Check if a `<table>` node is a DataTable table already or not.
|
8821 |
+
*
|
8822 |
+
* @param {node|jquery|string} table Table node, jQuery object or jQuery
|
8823 |
+
* selector for the table to test. Note that if more than more than one
|
8824 |
+
* table is passed on, only the first will be checked
|
8825 |
* @returns {boolean} true the table given is a DataTable, or false otherwise
|
8826 |
* @static
|
8827 |
* @dtopt API-Static
|
8828 |
*
|
8829 |
* @example
|
8830 |
+
* if ( ! $.fn.DataTable.isDataTable( '#example' ) ) {
|
8831 |
+
* $('#example').dataTable();
|
|
|
8832 |
* }
|
8833 |
*/
|
8834 |
+
DataTable.isDataTable = DataTable.fnIsDataTable = function ( table )
|
8835 |
{
|
8836 |
+
var t = $(table).get(0);
|
8837 |
+
var is = false;
|
8838 |
|
8839 |
+
$.each( DataTable.settings, function (i, o) {
|
8840 |
+
if ( o.nTable === t ||
|
8841 |
+
$('table', o.nScrollHead)[0] === t ||
|
8842 |
+
$('table', o.nScrollFoot)[0] === t
|
8843 |
+
) {
|
8844 |
+
is = true;
|
8845 |
}
|
8846 |
+
} );
|
8847 |
|
8848 |
+
return is;
|
8849 |
};
|
8850 |
|
8851 |
|
8852 |
/**
|
8853 |
+
* Get all DataTable tables that have been initialised - optionally you can
|
8854 |
+
* select to get only currently visible tables.
|
8855 |
+
*
|
8856 |
+
* @param {boolean} [visible=false] Flag to indicate if you want all (default)
|
8857 |
+
* or visible tables only.
|
8858 |
+
* @returns {array} Array of `table` nodes (not DataTable instances) which are
|
8859 |
+
* DataTables
|
8860 |
* @static
|
8861 |
* @dtopt API-Static
|
8862 |
*
|
8863 |
* @example
|
8864 |
+
* $.each( $.fn.dataTable.tables(true), function () {
|
8865 |
+
* $(table).DataTable().columns.adjust();
|
8866 |
+
* } );
|
|
|
8867 |
*/
|
8868 |
+
DataTable.tables = DataTable.fnTables = function ( visible )
|
8869 |
{
|
8870 |
+
return $.map( DataTable.settings, function (o) {
|
8871 |
+
if ( !visible || (visible && $(o.nTable).is(':visible')) ) {
|
8872 |
+
return o.nTable;
|
|
|
|
|
|
|
8873 |
}
|
8874 |
} );
|
|
|
|
|
8875 |
};
|
8876 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8877 |
|
8878 |
/**
|
8879 |
+
* DataTables utility methods
|
|
|
|
|
|
|
8880 |
*
|
8881 |
+
* This namespace provides helper methods that DataTables uses internally to
|
8882 |
+
* create a DataTable, but which are not exclusively used only for DataTables.
|
8883 |
+
* These methods can be used by extension authors to save the duplication of
|
8884 |
+
* code.
|
8885 |
+
*
|
8886 |
* @namespace
|
8887 |
*/
|
8888 |
+
DataTable.util = {
|
8889 |
/**
|
8890 |
+
* Throttle the calls to a function. Arguments and context are maintained
|
8891 |
+
* for the throttled function.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8892 |
*
|
8893 |
+
* @param {function} fn Function to be called
|
8894 |
+
* @param {integer} freq Call frequency in mS
|
8895 |
+
* @return {function} Wrapped function
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8896 |
*/
|
8897 |
+
throttle: _fnThrottle,
|
8898 |
|
8899 |
|
8900 |
/**
|
8901 |
+
* Escape a string such that it can be used in a regular expression
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8902 |
*
|
8903 |
+
* @param {string} sVal string to escape
|
8904 |
+
* @returns {string} escaped string
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8905 |
*/
|
8906 |
+
escapeRegex: _fnEscapeRegex
|
8907 |
+
};
|
8908 |
|
8909 |
|
8910 |
+
/**
|
8911 |
+
* Convert from camel case parameters to Hungarian notation. This is made public
|
8912 |
+
* for the extensions to provide the same ability as DataTables core to accept
|
8913 |
+
* either the 1.9 style Hungarian notation, or the 1.10+ style camelCase
|
8914 |
+
* parameters.
|
8915 |
+
*
|
8916 |
+
* @param {object} src The model object which holds all parameters that can be
|
8917 |
+
* mapped.
|
8918 |
+
* @param {object} user The object to convert from camel case to Hungarian.
|
8919 |
+
* @param {boolean} force When set to `true`, properties which already have a
|
8920 |
+
* Hungarian value in the `user` object will be overwritten. Otherwise they
|
8921 |
+
* won't be.
|
8922 |
+
*/
|
8923 |
+
DataTable.camelToHungarian = _fnCamelToHungarian;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8924 |
|
8925 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8926 |
|
8927 |
+
/**
|
8928 |
+
*
|
8929 |
+
*/
|
8930 |
+
_api_register( '$()', function ( selector, opts ) {
|
8931 |
+
var
|
8932 |
+
rows = this.rows( opts ).nodes(), // Get all rows
|
8933 |
+
jqRows = $(rows);
|
8934 |
+
|
8935 |
+
return $( [].concat(
|
8936 |
+
jqRows.filter( selector ).toArray(),
|
8937 |
+
jqRows.find( selector ).toArray()
|
8938 |
+
) );
|
8939 |
+
} );
|
8940 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8941 |
|
8942 |
+
// jQuery functions to operate on the tables
|
8943 |
+
$.each( [ 'on', 'one', 'off' ], function (i, key) {
|
8944 |
+
_api_register( key+'()', function ( /* event, handler */ ) {
|
8945 |
+
var args = Array.prototype.slice.call(arguments);
|
8946 |
|
8947 |
+
// Add the `dt` namespace automatically if it isn't already present
|
8948 |
+
if ( ! args[0].match(/\.dt\b/) ) {
|
8949 |
+
args[0] += '.dt';
|
8950 |
+
}
|
|
|
|
|
8951 |
|
8952 |
+
var inst = $( this.tables().nodes() );
|
8953 |
+
inst[key].apply( inst, args );
|
8954 |
+
return this;
|
8955 |
+
} );
|
8956 |
+
} );
|
8957 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8958 |
|
8959 |
+
_api_register( 'clear()', function () {
|
8960 |
+
return this.iterator( 'table', function ( settings ) {
|
8961 |
+
_fnClearTable( settings );
|
8962 |
+
} );
|
8963 |
+
} );
|
8964 |
+
|
8965 |
+
|
8966 |
+
_api_register( 'settings()', function () {
|
8967 |
+
return new _Api( this.context, this.context );
|
8968 |
+
} );
|
8969 |
+
|
8970 |
+
|
8971 |
+
_api_register( 'data()', function () {
|
8972 |
+
return this.iterator( 'table', function ( settings ) {
|
8973 |
+
return _pluck( settings.aoData, '_aData' );
|
8974 |
+
} ).flatten();
|
8975 |
+
} );
|
8976 |
+
|
8977 |
+
|
8978 |
+
_api_register( 'destroy()', function ( remove ) {
|
8979 |
+
remove = remove || false;
|
8980 |
+
|
8981 |
+
return this.iterator( 'table', function ( settings ) {
|
8982 |
+
var orig = settings.nTableWrapper.parentNode;
|
8983 |
+
var classes = settings.oClasses;
|
8984 |
+
var table = settings.nTable;
|
8985 |
+
var tbody = settings.nTBody;
|
8986 |
+
var thead = settings.nTHead;
|
8987 |
+
var tfoot = settings.nTFoot;
|
8988 |
+
var jqTable = $(table);
|
8989 |
+
var jqTbody = $(tbody);
|
8990 |
+
var jqWrapper = $(settings.nTableWrapper);
|
8991 |
+
var rows = $.map( settings.aoData, function (r) { return r.nTr; } );
|
8992 |
+
var i, ien;
|
8993 |
|
8994 |
+
// Flag to note that the table is currently being destroyed - no action
|
8995 |
+
// should be taken
|
8996 |
+
settings.bDestroying = true;
|
|
|
|
|
|
|
8997 |
|
8998 |
+
// Fire off the destroy callbacks for plug-ins etc
|
8999 |
+
_fnCallbackFire( settings, "aoDestroyCallback", "destroy", [settings] );
|
9000 |
|
9001 |
+
// If not being removed from the document, make all columns visible
|
9002 |
+
if ( ! remove ) {
|
9003 |
+
new _Api( settings ).columns().visible( true );
|
9004 |
+
}
|
|
|
|
|
|
|
9005 |
|
9006 |
+
// Blitz all `DT` namespaced events (these are internal events, the
|
9007 |
+
// lowercase, `dt` events are user subscribed and they are responsible
|
9008 |
+
// for removing them
|
9009 |
+
jqWrapper.unbind('.DT').find(':not(tbody *)').unbind('.DT');
|
9010 |
+
$(window).unbind('.DT-'+settings.sInstance);
|
|
|
9011 |
|
9012 |
+
// When scrolling we had to break the table up - restore it
|
9013 |
+
if ( table != thead.parentNode ) {
|
9014 |
+
jqTable.children('thead').detach();
|
9015 |
+
jqTable.append( thead );
|
9016 |
+
}
|
9017 |
|
9018 |
+
if ( tfoot && table != tfoot.parentNode ) {
|
9019 |
+
jqTable.children('tfoot').detach();
|
9020 |
+
jqTable.append( tfoot );
|
9021 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9022 |
|
9023 |
+
// Remove the DataTables generated nodes, events and classes
|
9024 |
+
jqTable.detach();
|
9025 |
+
jqWrapper.detach();
|
9026 |
|
9027 |
+
settings.aaSorting = [];
|
9028 |
+
settings.aaSortingFixed = [];
|
9029 |
+
_fnSortingClasses( settings );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9030 |
|
9031 |
+
$( rows ).removeClass( settings.asStripeClasses.join(' ') );
|
9032 |
|
9033 |
+
$('th, td', thead).removeClass( classes.sSortable+' '+
|
9034 |
+
classes.sSortableAsc+' '+classes.sSortableDesc+' '+classes.sSortableNone
|
9035 |
+
);
|
|
|
|
|
|
|
|
|
|
|
9036 |
|
9037 |
+
if ( settings.bJUI ) {
|
9038 |
+
$('th span.'+classes.sSortIcon+ ', td span.'+classes.sSortIcon, thead).detach();
|
9039 |
+
$('th, td', thead).each( function () {
|
9040 |
+
var wrapper = $('div.'+classes.sSortJUIWrapper, this);
|
9041 |
+
$(this).append( wrapper.contents() );
|
9042 |
+
wrapper.detach();
|
9043 |
+
} );
|
9044 |
+
}
|
9045 |
|
9046 |
+
if ( ! remove && orig ) {
|
9047 |
+
// insertBefore acts like appendChild if !arg[1]
|
9048 |
+
orig.insertBefore( table, settings.nTableReinsertBefore );
|
9049 |
+
}
|
|
|
|
|
9050 |
|
9051 |
+
// Add the TR elements back into the table in their original order
|
9052 |
+
jqTbody.children().detach();
|
9053 |
+
jqTbody.append( rows );
|
9054 |
|
9055 |
+
// Restore the width of the original table - was read from the style property,
|
9056 |
+
// so we can restore directly to that
|
9057 |
+
jqTable
|
9058 |
+
.css( 'width', settings.sDestroyWidth )
|
9059 |
+
.removeClass( classes.sTable );
|
9060 |
+
|
9061 |
+
// If the were originally stripe classes - then we add them back here.
|
9062 |
+
// Note this is not fool proof (for example if not all rows had stripe
|
9063 |
+
// classes - but it's a good effort without getting carried away
|
9064 |
+
ien = settings.asDestroyStripes.length;
|
9065 |
+
|
9066 |
+
if ( ien ) {
|
9067 |
+
jqTbody.children().each( function (i) {
|
9068 |
+
$(this).addClass( settings.asDestroyStripes[i % ien] );
|
9069 |
+
} );
|
9070 |
+
}
|
9071 |
+
|
9072 |
+
/* Remove the settings object from the settings array */
|
9073 |
+
var idx = $.inArray( settings, DataTable.settings );
|
9074 |
+
if ( idx !== -1 ) {
|
9075 |
+
DataTable.settings.splice( idx, 1 );
|
9076 |
+
}
|
9077 |
+
} );
|
9078 |
+
} );
|
9079 |
|
9080 |
+
|
9081 |
+
/**
|
9082 |
+
* Version string for plug-ins to check compatibility. Allowed format is
|
9083 |
+
* `a.b.c-d` where: a:int, b:int, c:int, d:string(dev|beta|alpha). `d` is used
|
9084 |
+
* only for non-release builds. See http://semver.org/ for more information.
|
9085 |
+
* @member
|
9086 |
+
* @type string
|
9087 |
+
* @default Version number
|
9088 |
+
*/
|
9089 |
+
DataTable.version = "1.10.5";
|
9090 |
+
|
9091 |
+
/**
|
9092 |
+
* Private data store, containing all of the settings objects that are
|
9093 |
+
* created for the tables on a given page.
|
9094 |
+
*
|
9095 |
+
* Note that the `DataTable.settings` object is aliased to
|
9096 |
+
* `jQuery.fn.dataTableExt` through which it may be accessed and
|
9097 |
+
* manipulated, or `jQuery.fn.dataTable.settings`.
|
9098 |
+
* @member
|
9099 |
+
* @type array
|
9100 |
+
* @default []
|
9101 |
+
* @private
|
9102 |
+
*/
|
9103 |
+
DataTable.settings = [];
|
9104 |
+
|
9105 |
+
/**
|
9106 |
+
* Object models container, for the various models that DataTables has
|
9107 |
+
* available to it. These models define the objects that are used to hold
|
9108 |
+
* the active state and configuration of the table.
|
9109 |
+
* @namespace
|
9110 |
+
*/
|
9111 |
+
DataTable.models = {};
|
9112 |
|
9113 |
|
9114 |
|
9154 |
|
9155 |
/**
|
9156 |
* Template object for the way in which DataTables holds information about
|
9157 |
+
* each individual row. This is the object format used for the settings
|
9158 |
* aoData array.
|
9159 |
* @namespace
|
9160 |
*/
|
9166 |
*/
|
9167 |
"nTr": null,
|
9168 |
|
9169 |
+
/**
|
9170 |
+
* Array of TD elements for each row. This is null until the row has been
|
9171 |
+
* created.
|
9172 |
+
* @type array nodes
|
9173 |
+
* @default []
|
9174 |
+
*/
|
9175 |
+
"anCells": null,
|
9176 |
+
|
9177 |
/**
|
9178 |
* Data object from the original data source for the row. This is either
|
9179 |
* an array if using the traditional form of DataTables, or an object if
|
9180 |
* using mData options. The exact type will depend on the passed in
|
9181 |
+
* data from the data source, or will be an array if using DOM a data
|
9182 |
* source.
|
9183 |
* @type array|object
|
9184 |
* @default []
|
9187 |
|
9188 |
/**
|
9189 |
* Sorting data cache - this array is ostensibly the same length as the
|
9190 |
+
* number of columns (although each index is generated only as it is
|
9191 |
* needed), and holds the data that is used for sorting each column in the
|
9192 |
* row. We do this cache generation at the start of the sort in order that
|
9193 |
* the formatting of the sort data need be done only once for each cell
|
9194 |
* per sort. This array should not be read from or written to by anything
|
9195 |
* other than the master sorting methods.
|
9196 |
* @type array
|
9197 |
+
* @default null
|
9198 |
* @private
|
9199 |
*/
|
9200 |
+
"_aSortData": null,
|
9201 |
|
9202 |
/**
|
9203 |
+
* Per cell filtering data cache. As per the sort data cache, used to
|
9204 |
+
* increase the performance of the filtering in DataTables
|
9205 |
+
* @type array
|
9206 |
+
* @default null
|
9207 |
+
* @private
|
9208 |
+
*/
|
9209 |
+
"_aFilterData": null,
|
9210 |
+
|
9211 |
+
/**
|
9212 |
+
* Filtering data cache. This is the same as the cell filtering cache, but
|
9213 |
+
* in this case a string rather than an array. This is easily computed with
|
9214 |
+
* a join on `_aFilterData`, but is provided as a cache so the join isn't
|
9215 |
+
* needed on every search (memory traded for performance)
|
9216 |
+
* @type array
|
9217 |
+
* @default null
|
9218 |
* @private
|
9219 |
*/
|
9220 |
+
"_sFilterRow": null,
|
9221 |
|
9222 |
/**
|
9223 |
* Cache of the class name that DataTables has applied to the row, so we
|
9227 |
* @default <i>Empty string</i>
|
9228 |
* @private
|
9229 |
*/
|
9230 |
+
"_sRowStripe": "",
|
|
|
9231 |
|
9232 |
+
/**
|
9233 |
+
* Denote if the original data source was from the DOM, or the data source
|
9234 |
+
* object. This is used for invalidating data, so DataTables can
|
9235 |
+
* automatically read data from the original source, unless uninstructed
|
9236 |
+
* otherwise.
|
9237 |
+
* @type string
|
9238 |
+
* @default null
|
9239 |
+
* @private
|
9240 |
+
*/
|
9241 |
+
"src": null
|
9242 |
+
};
|
9243 |
|
9244 |
|
9245 |
/**
|
9246 |
* Template object for the column information object in DataTables. This object
|
9247 |
* is held in the settings aoColumns array and contains all the information that
|
9248 |
* DataTables needs about each individual column.
|
9249 |
+
*
|
9250 |
+
* Note that this object is related to {@link DataTable.defaults.column}
|
9251 |
* but this one is the internal data store for DataTables's cache of columns.
|
9252 |
* It should NOT be manipulated outside of DataTables. Any configuration should
|
9253 |
* be done through the initialisation options.
|
9254 |
* @namespace
|
9255 |
*/
|
9256 |
DataTable.models.oColumn = {
|
9257 |
+
/**
|
9258 |
+
* Column index. This could be worked out on-the-fly with $.inArray, but it
|
9259 |
+
* is faster to just hold it as a variable
|
9260 |
+
* @type integer
|
9261 |
+
* @default null
|
9262 |
+
*/
|
9263 |
+
"idx": null,
|
9264 |
+
|
9265 |
/**
|
9266 |
* A list of the columns that sorting should occur on when this column
|
9267 |
* is sorted. That this property is an array allows multi-column sorting
|
9282 |
* @type array
|
9283 |
*/
|
9284 |
"asSorting": null,
|
9285 |
+
|
9286 |
/**
|
9287 |
* Flag to indicate if the column is searchable, and thus should be included
|
9288 |
* in the filtering or not.
|
9289 |
* @type boolean
|
9290 |
*/
|
9291 |
"bSearchable": null,
|
9292 |
+
|
9293 |
/**
|
9294 |
* Flag to indicate if the column is sortable or not.
|
9295 |
* @type boolean
|
9296 |
*/
|
9297 |
"bSortable": null,
|
9298 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9299 |
/**
|
9300 |
* Flag to indicate if the column is currently visible in the table or not
|
9301 |
* @type boolean
|
9302 |
*/
|
9303 |
"bVisible": null,
|
9304 |
+
|
9305 |
+
/**
|
9306 |
+
* Store for manual type assignment using the `column.type` option. This
|
9307 |
+
* is held in store so we can manipulate the column's `sType` property.
|
9308 |
+
* @type string
|
9309 |
+
* @default null
|
9310 |
+
* @private
|
9311 |
+
*/
|
9312 |
+
"_sManualType": null,
|
9313 |
+
|
9314 |
/**
|
9315 |
+
* Flag to indicate if HTML5 data attributes should be used as the data
|
9316 |
+
* source for filtering or sorting. True is either are.
|
9317 |
* @type boolean
|
9318 |
+
* @default false
|
9319 |
* @private
|
9320 |
*/
|
9321 |
+
"_bAttrSrc": false,
|
9322 |
+
|
9323 |
/**
|
9324 |
* Developer definable function that is called whenever a cell is created (Ajax source,
|
9325 |
* etc) or processed for input (DOM source). This can be used as a compliment to mRender
|
9333 |
* @default null
|
9334 |
*/
|
9335 |
"fnCreatedCell": null,
|
9336 |
+
|
9337 |
/**
|
9338 |
* Function to get data from a cell in a column. You should <b>never</b>
|
9339 |
* access data directly through _aData internally in DataTables - always use
|
9340 |
* the method attached to this property. It allows mData to function as
|
9341 |
+
* required. This function is automatically assigned by the column
|
9342 |
* initialisation method
|
9343 |
* @type function
|
9344 |
+
* @param {array|object} oData The data array/object for the array
|
9345 |
* (i.e. aoData[]._aData)
|
9346 |
+
* @param {string} sSpecific The specific data type you want to get -
|
9347 |
* 'display', 'type' 'filter' 'sort'
|
9348 |
* @returns {*} The data for the cell from the given row's data
|
9349 |
* @default null
|
9350 |
*/
|
9351 |
"fnGetData": null,
|
9352 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9353 |
/**
|
9354 |
+
* Function to set data for a cell in the column. You should <b>never</b>
|
9355 |
* set the data directly to _aData internally in DataTables - always use
|
9356 |
* this method. It allows mData to function as required. This function
|
9357 |
* is automatically assigned by the column initialisation method
|
9358 |
* @type function
|
9359 |
+
* @param {array|object} oData The data array/object for the array
|
9360 |
* (i.e. aoData[]._aData)
|
9361 |
* @param {*} sValue Value to set
|
9362 |
* @default null
|
9363 |
*/
|
9364 |
"fnSetData": null,
|
9365 |
+
|
9366 |
/**
|
9367 |
+
* Property to read the value for the cells in the column from the data
|
9368 |
* source array / object. If null, then the default content is used, if a
|
9369 |
* function is given then the return from the function is used.
|
9370 |
* @type function|int|string|null
|
9371 |
* @default null
|
9372 |
*/
|
9373 |
"mData": null,
|
9374 |
+
|
9375 |
/**
|
9376 |
* Partner property to mData which is used (only when defined) to get
|
9377 |
* the data - i.e. it is basically the same as mData, but without the
|
9381 |
* @default null
|
9382 |
*/
|
9383 |
"mRender": null,
|
9384 |
+
|
9385 |
/**
|
9386 |
* Unique header TH/TD element for this column - this is what the sorting
|
9387 |
* listener is attached to (if sorting is enabled.)
|
9389 |
* @default null
|
9390 |
*/
|
9391 |
"nTh": null,
|
9392 |
+
|
9393 |
/**
|
9394 |
+
* Unique footer TH/TD element for this column (if there is one). Not used
|
9395 |
+
* in DataTables as such, but can be used for plug-ins to reference the
|
9396 |
* footer for each column.
|
9397 |
* @type node
|
9398 |
* @default null
|
9399 |
*/
|
9400 |
"nTf": null,
|
9401 |
+
|
9402 |
/**
|
9403 |
* The class to apply to all TD elements in the table's TBODY for the column
|
9404 |
* @type string
|
9405 |
* @default null
|
9406 |
*/
|
9407 |
"sClass": null,
|
9408 |
+
|
9409 |
/**
|
9410 |
* When DataTables calculates the column widths to assign to each column,
|
9411 |
* it finds the longest string in each column and then constructs a
|
9412 |
* temporary table and reads the widths from that. The problem with this
|
9413 |
+
* is that "mmm" is much wider then "iiii", but the latter is a longer
|
9414 |
* string - thus the calculation can go wrong (doing it properly and putting
|
9415 |
* it into an DOM object and measuring that is horribly(!) slow). Thus as
|
9416 |
* a "work around" we provide this option. It will append its value to the
|
9418 |
* @type string
|
9419 |
*/
|
9420 |
"sContentPadding": null,
|
9421 |
+
|
9422 |
/**
|
9423 |
* Allows a default value to be given for a column's data, and will be used
|
9424 |
* whenever a null data source is encountered (this can be because mData
|
9427 |
* @default null
|
9428 |
*/
|
9429 |
"sDefaultContent": null,
|
9430 |
+
|
9431 |
/**
|
9432 |
* Name for the column, allowing reference to the column by name as well as
|
9433 |
* by index (needs a lookup to work by name).
|
9434 |
* @type string
|
9435 |
*/
|
9436 |
"sName": null,
|
9437 |
+
|
9438 |
/**
|
9439 |
* Custom sorting data type - defines which of the available plug-ins in
|
9440 |
* afnSortData the custom sorting will use - if any is defined.
|
9442 |
* @default std
|
9443 |
*/
|
9444 |
"sSortDataType": 'std',
|
9445 |
+
|
9446 |
/**
|
9447 |
* Class to be applied to the header element when sorting on this column
|
9448 |
* @type string
|
9449 |
* @default null
|
9450 |
*/
|
9451 |
"sSortingClass": null,
|
9452 |
+
|
9453 |
/**
|
9454 |
* Class to be applied to the header element when sorting on this column -
|
9455 |
* when jQuery UI theming is used.
|
9457 |
* @default null
|
9458 |
*/
|
9459 |
"sSortingClassJUI": null,
|
9460 |
+
|
9461 |
/**
|
9462 |
* Title of the column - what is seen in the TH element (nTh).
|
9463 |
* @type string
|
9464 |
*/
|
9465 |
"sTitle": null,
|
9466 |
+
|
9467 |
/**
|
9468 |
* Column sorting and filtering type
|
9469 |
* @type string
|
9470 |
* @default null
|
9471 |
*/
|
9472 |
"sType": null,
|
9473 |
+
|
9474 |
/**
|
9475 |
* Width of the column
|
9476 |
* @type string
|
9477 |
* @default null
|
9478 |
*/
|
9479 |
"sWidth": null,
|
9480 |
+
|
9481 |
/**
|
9482 |
* Width of the column when it was first "encountered"
|
9483 |
* @type string
|
9487 |
};
|
9488 |
|
9489 |
|
9490 |
+
/*
|
9491 |
+
* Developer note: The properties of the object below are given in Hungarian
|
9492 |
+
* notation, that was used as the interface for DataTables prior to v1.10, however
|
9493 |
+
* from v1.10 onwards the primary interface is camel case. In order to avoid
|
9494 |
+
* breaking backwards compatibility utterly with this change, the Hungarian
|
9495 |
+
* version is still, internally the primary interface, but is is not documented
|
9496 |
+
* - hence the @name tags in each doc comment. This allows a Javascript function
|
9497 |
+
* to create a map from Hungarian notation to camel case (going the other direction
|
9498 |
+
* would require each property to be listed, which would at around 3K to the size
|
9499 |
+
* of DataTables, while this method is about a 0.5K hit.
|
9500 |
+
*
|
9501 |
+
* Ultimately this does pave the way for Hungarian notation to be dropped
|
9502 |
+
* completely, but that is a massive amount of work and will break current
|
9503 |
+
* installs (therefore is on-hold until v2).
|
9504 |
+
*/
|
9505 |
|
9506 |
/**
|
9507 |
+
* Initialisation options that can be given to DataTables at initialisation
|
9508 |
* time.
|
9509 |
* @namespace
|
9510 |
*/
|
9511 |
DataTable.defaults = {
|
9512 |
/**
|
9513 |
+
* An array of data to use for the table, passed in at initialisation which
|
9514 |
* will be used in preference to any data which is already in the DOM. This is
|
9515 |
* particularly useful for constructing tables purely in Javascript, for
|
9516 |
* example with a custom Ajax call.
|
9517 |
* @type array
|
9518 |
* @default null
|
9519 |
+
*
|
9520 |
* @dtopt Option
|
9521 |
+
* @name DataTable.defaults.data
|
9522 |
+
*
|
9523 |
* @example
|
9524 |
* // Using a 2D array data source
|
9525 |
* $(document).ready( function () {
|
9526 |
* $('#example').dataTable( {
|
9527 |
+
* "data": [
|
9528 |
* ['Trident', 'Internet Explorer 4.0', 'Win 95+', 4, 'X'],
|
9529 |
* ['Trident', 'Internet Explorer 5.0', 'Win 95+', 5, 'C'],
|
9530 |
* ],
|
9531 |
+
* "columns": [
|
9532 |
+
* { "title": "Engine" },
|
9533 |
+
* { "title": "Browser" },
|
9534 |
+
* { "title": "Platform" },
|
9535 |
+
* { "title": "Version" },
|
9536 |
+
* { "title": "Grade" }
|
9537 |
* ]
|
9538 |
* } );
|
9539 |
* } );
|
9540 |
+
*
|
9541 |
* @example
|
9542 |
+
* // Using an array of objects as a data source (`data`)
|
9543 |
* $(document).ready( function () {
|
9544 |
* $('#example').dataTable( {
|
9545 |
+
* "data": [
|
9546 |
* {
|
9547 |
* "engine": "Trident",
|
9548 |
* "browser": "Internet Explorer 4.0",
|
9558 |
* "grade": "C"
|
9559 |
* }
|
9560 |
* ],
|
9561 |
+
* "columns": [
|
9562 |
+
* { "title": "Engine", "data": "engine" },
|
9563 |
+
* { "title": "Browser", "data": "browser" },
|
9564 |
+
* { "title": "Platform", "data": "platform" },
|
9565 |
+
* { "title": "Version", "data": "version" },
|
9566 |
+
* { "title": "Grade", "data": "grade" }
|
9567 |
* ]
|
9568 |
* } );
|
9569 |
* } );
|
9572 |
|
9573 |
|
9574 |
/**
|
9575 |
+
* If ordering is enabled, then DataTables will perform a first pass sort on
|
9576 |
+
* initialisation. You can define which column(s) the sort is performed
|
9577 |
+
* upon, and the sorting direction, with this variable. The `sorting` array
|
9578 |
+
* should contain an array for each column to be sorted initially containing
|
9579 |
+
* the column's index and a direction string ('asc' or 'desc').
|
9580 |
* @type array
|
9581 |
* @default [[0,'asc']]
|
9582 |
+
*
|
9583 |
* @dtopt Option
|
9584 |
+
* @name DataTable.defaults.order
|
9585 |
+
*
|
9586 |
* @example
|
9587 |
* // Sort by 3rd column first, and then 4th column
|
9588 |
* $(document).ready( function() {
|
9589 |
* $('#example').dataTable( {
|
9590 |
+
* "order": [[2,'asc'], [3,'desc']]
|
9591 |
* } );
|
9592 |
* } );
|
9593 |
+
*
|
9594 |
* // No initial sorting
|
9595 |
* $(document).ready( function() {
|
9596 |
* $('#example').dataTable( {
|
9597 |
+
* "order": []
|
9598 |
* } );
|
9599 |
* } );
|
9600 |
*/
|
9602 |
|
9603 |
|
9604 |
/**
|
9605 |
+
* This parameter is basically identical to the `sorting` parameter, but
|
9606 |
+
* cannot be overridden by user interaction with the table. What this means
|
9607 |
+
* is that you could have a column (visible or hidden) which the sorting
|
9608 |
+
* will always be forced on first - any sorting after that (from the user)
|
9609 |
+
* will then be performed as required. This can be useful for grouping rows
|
9610 |
* together.
|
9611 |
* @type array
|
9612 |
* @default null
|
9613 |
+
*
|
9614 |
* @dtopt Option
|
9615 |
+
* @name DataTable.defaults.orderFixed
|
9616 |
+
*
|
9617 |
* @example
|
9618 |
* $(document).ready( function() {
|
9619 |
* $('#example').dataTable( {
|
9620 |
+
* "orderFixed": [[0,'asc']]
|
9621 |
* } );
|
9622 |
* } )
|
9623 |
*/
|
9624 |
+
"aaSortingFixed": [],
|
9625 |
+
|
9626 |
+
|
9627 |
+
/**
|
9628 |
+
* DataTables can be instructed to load data to display in the table from a
|
9629 |
+
* Ajax source. This option defines how that Ajax call is made and where to.
|
9630 |
+
*
|
9631 |
+
* The `ajax` property has three different modes of operation, depending on
|
9632 |
+
* how it is defined. These are:
|
9633 |
+
*
|
9634 |
+
* * `string` - Set the URL from where the data should be loaded from.
|
9635 |
+
* * `object` - Define properties for `jQuery.ajax`.
|
9636 |
+
* * `function` - Custom data get function
|
9637 |
+
*
|
9638 |
+
* `string`
|
9639 |
+
* --------
|
9640 |
+
*
|
9641 |
+
* As a string, the `ajax` property simply defines the URL from which
|
9642 |
+
* DataTables will load data.
|
9643 |
+
*
|
9644 |
+
* `object`
|
9645 |
+
* --------
|
9646 |
+
*
|
9647 |
+
* As an object, the parameters in the object are passed to
|
9648 |
+
* [jQuery.ajax](http://api.jquery.com/jQuery.ajax/) allowing fine control
|
9649 |
+
* of the Ajax request. DataTables has a number of default parameters which
|
9650 |
+
* you can override using this option. Please refer to the jQuery
|
9651 |
+
* documentation for a full description of the options available, although
|
9652 |
+
* the following parameters provide additional options in DataTables or
|
9653 |
+
* require special consideration:
|
9654 |
+
*
|
9655 |
+
* * `data` - As with jQuery, `data` can be provided as an object, but it
|
9656 |
+
* can also be used as a function to manipulate the data DataTables sends
|
9657 |
+
* to the server. The function takes a single parameter, an object of
|
9658 |
+
* parameters with the values that DataTables has readied for sending. An
|
9659 |
+
* object may be returned which will be merged into the DataTables
|
9660 |
+
* defaults, or you can add the items to the object that was passed in and
|
9661 |
+
* not return anything from the function. This supersedes `fnServerParams`
|
9662 |
+
* from DataTables 1.9-.
|
9663 |
+
*
|
9664 |
+
* * `dataSrc` - By default DataTables will look for the property `data` (or
|
9665 |
+
* `aaData` for compatibility with DataTables 1.9-) when obtaining data
|
9666 |
+
* from an Ajax source or for server-side processing - this parameter
|
9667 |
+
* allows that property to be changed. You can use Javascript dotted
|
9668 |
+
* object notation to get a data source for multiple levels of nesting, or
|
9669 |
+
* it my be used as a function. As a function it takes a single parameter,
|
9670 |
+
* the JSON returned from the server, which can be manipulated as
|
9671 |
+
* required, with the returned value being that used by DataTables as the
|
9672 |
+
* data source for the table. This supersedes `sAjaxDataProp` from
|
9673 |
+
* DataTables 1.9-.
|
9674 |
+
*
|
9675 |
+
* * `success` - Should not be overridden it is used internally in
|
9676 |
+
* DataTables. To manipulate / transform the data returned by the server
|
9677 |
+
* use `ajax.dataSrc`, or use `ajax` as a function (see below).
|
9678 |
+
*
|
9679 |
+
* `function`
|
9680 |
+
* ----------
|
9681 |
+
*
|
9682 |
+
* As a function, making the Ajax call is left up to yourself allowing
|
9683 |
+
* complete control of the Ajax request. Indeed, if desired, a method other
|
9684 |
+
* than Ajax could be used to obtain the required data, such as Web storage
|
9685 |
+
* or an AIR database.
|
9686 |
+
*
|
9687 |
+
* The function is given four parameters and no return is required. The
|
9688 |
+
* parameters are:
|
9689 |
+
*
|
9690 |
+
* 1. _object_ - Data to send to the server
|
9691 |
+
* 2. _function_ - Callback function that must be executed when the required
|
9692 |
+
* data has been obtained. That data should be passed into the callback
|
9693 |
+
* as the only parameter
|
9694 |
+
* 3. _object_ - DataTables settings object for the table
|
9695 |
+
*
|
9696 |
+
* Note that this supersedes `fnServerData` from DataTables 1.9-.
|
9697 |
+
*
|
9698 |
+
* @type string|object|function
|
9699 |
+
* @default null
|
9700 |
+
*
|
9701 |
+
* @dtopt Option
|
9702 |
+
* @name DataTable.defaults.ajax
|
9703 |
+
* @since 1.10.0
|
9704 |
+
*
|
9705 |
+
* @example
|
9706 |
+
* // Get JSON data from a file via Ajax.
|
9707 |
+
* // Note DataTables expects data in the form `{ data: [ ...data... ] }` by default).
|
9708 |
+
* $('#example').dataTable( {
|
9709 |
+
* "ajax": "data.json"
|
9710 |
+
* } );
|
9711 |
+
*
|
9712 |
+
* @example
|
9713 |
+
* // Get JSON data from a file via Ajax, using `dataSrc` to change
|
9714 |
+
* // `data` to `tableData` (i.e. `{ tableData: [ ...data... ] }`)
|
9715 |
+
* $('#example').dataTable( {
|
9716 |
+
* "ajax": {
|
9717 |
+
* "url": "data.json",
|
9718 |
+
* "dataSrc": "tableData"
|
9719 |
+
* }
|
9720 |
+
* } );
|
9721 |
+
*
|
9722 |
+
* @example
|
9723 |
+
* // Get JSON data from a file via Ajax, using `dataSrc` to read data
|
9724 |
+
* // from a plain array rather than an array in an object
|
9725 |
+
* $('#example').dataTable( {
|
9726 |
+
* "ajax": {
|
9727 |
+
* "url": "data.json",
|
9728 |
+
* "dataSrc": ""
|
9729 |
+
* }
|
9730 |
+
* } );
|
9731 |
+
*
|
9732 |
+
* @example
|
9733 |
+
* // Manipulate the data returned from the server - add a link to data
|
9734 |
+
* // (note this can, should, be done using `render` for the column - this
|
9735 |
+
* // is just a simple example of how the data can be manipulated).
|
9736 |
+
* $('#example').dataTable( {
|
9737 |
+
* "ajax": {
|
9738 |
+
* "url": "data.json",
|
9739 |
+
* "dataSrc": function ( json ) {
|
9740 |
+
* for ( var i=0, ien=json.length ; i<ien ; i++ ) {
|
9741 |
+
* json[i][0] = '<a href="/message/'+json[i][0]+'>View message</a>';
|
9742 |
+
* }
|
9743 |
+
* return json;
|
9744 |
+
* }
|
9745 |
+
* }
|
9746 |
+
* } );
|
9747 |
+
*
|
9748 |
+
* @example
|
9749 |
+
* // Add data to the request
|
9750 |
+
* $('#example').dataTable( {
|
9751 |
+
* "ajax": {
|
9752 |
+
* "url": "data.json",
|
9753 |
+
* "data": function ( d ) {
|
9754 |
+
* return {
|
9755 |
+
* "extra_search": $('#extra').val()
|
9756 |
+
* };
|
9757 |
+
* }
|
9758 |
+
* }
|
9759 |
+
* } );
|
9760 |
+
*
|
9761 |
+
* @example
|
9762 |
+
* // Send request as POST
|
9763 |
+
* $('#example').dataTable( {
|
9764 |
+
* "ajax": {
|
9765 |
+
* "url": "data.json",
|
9766 |
+
* "type": "POST"
|
9767 |
+
* }
|
9768 |
+
* } );
|
9769 |
+
*
|
9770 |
+
* @example
|
9771 |
+
* // Get the data from localStorage (could interface with a form for
|
9772 |
+
* // adding, editing and removing rows).
|
9773 |
+
* $('#example').dataTable( {
|
9774 |
+
* "ajax": function (data, callback, settings) {
|
9775 |
+
* callback(
|
9776 |
+
* JSON.parse( localStorage.getItem('dataTablesData') )
|
9777 |
+
* );
|
9778 |
+
* }
|
9779 |
+
* } );
|
9780 |
+
*/
|
9781 |
+
"ajax": null,
|
9782 |
|
9783 |
|
9784 |
/**
|
9785 |
* This parameter allows you to readily specify the entries in the length drop
|
9786 |
+
* down menu that DataTables shows when pagination is enabled. It can be
|
9787 |
+
* either a 1D array of options which will be used for both the displayed
|
9788 |
+
* option and the value, or a 2D array which will use the array in the first
|
9789 |
+
* position as the value, and the array in the second position as the
|
9790 |
* displayed options (useful for language strings such as 'All').
|
9791 |
+
*
|
9792 |
+
* Note that the `pageLength` property will be automatically set to the
|
9793 |
+
* first value given in this array, unless `pageLength` is also provided.
|
9794 |
* @type array
|
9795 |
* @default [ 10, 25, 50, 100 ]
|
9796 |
+
*
|
9797 |
* @dtopt Option
|
9798 |
+
* @name DataTable.defaults.lengthMenu
|
9799 |
+
*
|
|
|
|
|
|
|
|
|
|
|
|
|
9800 |
* @example
|
|
|
|
|
|
|
9801 |
* $(document).ready( function() {
|
9802 |
* $('#example').dataTable( {
|
9803 |
+
* "lengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]]
|
|
|
9804 |
* } );
|
9805 |
* } );
|
9806 |
*/
|
9808 |
|
9809 |
|
9810 |
/**
|
9811 |
+
* The `columns` option in the initialisation parameter allows you to define
|
9812 |
* details about the way individual columns behave. For a full list of
|
9813 |
+
* column options that can be set, please see
|
9814 |
+
* {@link DataTable.defaults.column}. Note that if you use `columns` to
|
9815 |
* define your columns, you must have an entry in the array for every single
|
9816 |
* column that you have in your table (these can be null if you don't which
|
9817 |
* to specify any options).
|
9818 |
* @member
|
9819 |
+
*
|
9820 |
+
* @name DataTable.defaults.column
|
9821 |
*/
|
9822 |
"aoColumns": null,
|
9823 |
|
9824 |
/**
|
9825 |
+
* Very similar to `columns`, `columnDefs` allows you to target a specific
|
9826 |
+
* column, multiple columns, or all columns, using the `targets` property of
|
9827 |
+
* each object in the array. This allows great flexibility when creating
|
9828 |
+
* tables, as the `columnDefs` arrays can be of any length, targeting the
|
9829 |
+
* columns you specifically want. `columnDefs` may use any of the column
|
9830 |
+
* options available: {@link DataTable.defaults.column}, but it _must_
|
9831 |
+
* have `targets` defined in each object in the array. Values in the `targets`
|
9832 |
* array may be:
|
9833 |
* <ul>
|
9834 |
* <li>a string - class name will be matched on the TH for the column</li>
|
9837 |
* <li>the string "_all" - all columns (i.e. assign a default)</li>
|
9838 |
* </ul>
|
9839 |
* @member
|
9840 |
+
*
|
9841 |
+
* @name DataTable.defaults.columnDefs
|
9842 |
*/
|
9843 |
"aoColumnDefs": null,
|
9844 |
|
9845 |
|
9846 |
/**
|
9847 |
+
* Basically the same as `search`, this parameter defines the individual column
|
9848 |
+
* filtering state at initialisation time. The array must be of the same size
|
9849 |
* as the number of columns, and each element be an object with the parameters
|
9850 |
+
* `search` and `escapeRegex` (the latter is optional). 'null' is also
|
9851 |
* accepted and the default will be used.
|
9852 |
* @type array
|
9853 |
* @default []
|
9854 |
+
*
|
9855 |
* @dtopt Option
|
9856 |
+
* @name DataTable.defaults.searchCols
|
9857 |
+
*
|
9858 |
* @example
|
9859 |
* $(document).ready( function() {
|
9860 |
* $('#example').dataTable( {
|
9861 |
+
* "searchCols": [
|
9862 |
* null,
|
9863 |
+
* { "search": "My filter" },
|
9864 |
* null,
|
9865 |
+
* { "search": "^[0-9]", "escapeRegex": false }
|
9866 |
* ]
|
9867 |
* } );
|
9868 |
* } )
|
9871 |
|
9872 |
|
9873 |
/**
|
9874 |
+
* An array of CSS classes that should be applied to displayed rows. This
|
9875 |
+
* array may be of any length, and DataTables will apply each class
|
9876 |
* sequentially, looping when required.
|
9877 |
* @type array
|
9878 |
+
* @default null <i>Will take the values determined by the `oClasses.stripe*`
|
9879 |
* options</i>
|
9880 |
+
*
|
9881 |
* @dtopt Option
|
9882 |
+
* @name DataTable.defaults.stripeClasses
|
9883 |
+
*
|
9884 |
* @example
|
9885 |
* $(document).ready( function() {
|
9886 |
* $('#example').dataTable( {
|
9887 |
+
* "stripeClasses": [ 'strip1', 'strip2', 'strip3' ]
|
9888 |
* } );
|
9889 |
* } )
|
9890 |
*/
|
9894 |
/**
|
9895 |
* Enable or disable automatic column width calculation. This can be disabled
|
9896 |
* as an optimisation (it takes some time to calculate the widths) if the
|
9897 |
+
* tables widths are passed in using `columns`.
|
9898 |
* @type boolean
|
9899 |
* @default true
|
9900 |
+
*
|
9901 |
* @dtopt Features
|
9902 |
+
* @name DataTable.defaults.autoWidth
|
9903 |
+
*
|
9904 |
* @example
|
9905 |
* $(document).ready( function () {
|
9906 |
* $('#example').dataTable( {
|
9907 |
+
* "autoWidth": false
|
9908 |
* } );
|
9909 |
* } );
|
9910 |
*/
|
9919 |
* time.
|
9920 |
* @type boolean
|
9921 |
* @default false
|
9922 |
+
*
|
9923 |
* @dtopt Features
|
9924 |
+
* @name DataTable.defaults.deferRender
|
9925 |
+
*
|
9926 |
* @example
|
9927 |
* $(document).ready( function() {
|
9928 |
+
* $('#example').dataTable( {
|
9929 |
+
* "ajax": "sources/arrays.txt",
|
9930 |
+
* "deferRender": true
|
9931 |
* } );
|
9932 |
* } );
|
9933 |
*/
|
9935 |
|
9936 |
|
9937 |
/**
|
9938 |
+
* Replace a DataTable which matches the given selector and replace it with
|
9939 |
* one which has the properties of the new initialisation object passed. If no
|
9940 |
* table matches the selector, then the new DataTable will be constructed as
|
9941 |
* per normal.
|
9942 |
* @type boolean
|
9943 |
* @default false
|
9944 |
+
*
|
9945 |
* @dtopt Options
|
9946 |
+
* @name DataTable.defaults.destroy
|
9947 |
+
*
|
9948 |
* @example
|
9949 |
* $(document).ready( function() {
|
9950 |
* $('#example').dataTable( {
|
9951 |
+
* "srollY": "200px",
|
9952 |
+
* "paginate": false
|
9953 |
* } );
|
9954 |
+
*
|
9955 |
* // Some time later....
|
9956 |
* $('#example').dataTable( {
|
9957 |
+
* "filter": false,
|
9958 |
+
* "destroy": true
|
9959 |
* } );
|
9960 |
* } );
|
9961 |
*/
|
9969 |
* specified (this allow matching across multiple columns). Note that if you
|
9970 |
* wish to use filtering in DataTables this must remain 'true' - to remove the
|
9971 |
* default filtering input box and retain filtering abilities, please use
|
9972 |
+
* {@link DataTable.defaults.dom}.
|
9973 |
* @type boolean
|
9974 |
* @default true
|
9975 |
+
*
|
9976 |
* @dtopt Features
|
9977 |
+
* @name DataTable.defaults.searching
|
9978 |
+
*
|
9979 |
* @example
|
9980 |
* $(document).ready( function () {
|
9981 |
* $('#example').dataTable( {
|
9982 |
+
* "searching": false
|
9983 |
* } );
|
9984 |
* } );
|
9985 |
*/
|
9987 |
|
9988 |
|
9989 |
/**
|
9990 |
+
* Enable or disable the table information display. This shows information
|
9991 |
* about the data that is currently visible on the page, including information
|
9992 |
* about filtered data if that action is being performed.
|
9993 |
* @type boolean
|
9994 |
* @default true
|
9995 |
+
*
|
9996 |
* @dtopt Features
|
9997 |
+
* @name DataTable.defaults.info
|
9998 |
+
*
|
9999 |
* @example
|
10000 |
* $(document).ready( function () {
|
10001 |
* $('#example').dataTable( {
|
10002 |
+
* "info": false
|
10003 |
* } );
|
10004 |
* } );
|
10005 |
*/
|
10012 |
* traditionally used).
|
10013 |
* @type boolean
|
10014 |
* @default false
|
10015 |
+
*
|
10016 |
* @dtopt Features
|
10017 |
+
* @name DataTable.defaults.jQueryUI
|
10018 |
+
*
|
10019 |
* @example
|
10020 |
* $(document).ready( function() {
|
10021 |
* $('#example').dataTable( {
|
10022 |
+
* "jQueryUI": true
|
10023 |
* } );
|
10024 |
* } );
|
10025 |
*/
|
10028 |
|
10029 |
/**
|
10030 |
* Allows the end user to select the size of a formatted page from a select
|
10031 |
+
* menu (sizes are 10, 25, 50 and 100). Requires pagination (`paginate`).
|
10032 |
* @type boolean
|
10033 |
* @default true
|
10034 |
+
*
|
10035 |
* @dtopt Features
|
10036 |
+
* @name DataTable.defaults.lengthChange
|
10037 |
+
*
|
10038 |
* @example
|
10039 |
* $(document).ready( function () {
|
10040 |
* $('#example').dataTable( {
|
10041 |
+
* "lengthChange": false
|
10042 |
* } );
|
10043 |
* } );
|
10044 |
*/
|
10049 |
* Enable or disable pagination.
|
10050 |
* @type boolean
|
10051 |
* @default true
|
10052 |
+
*
|
10053 |
* @dtopt Features
|
10054 |
+
* @name DataTable.defaults.paging
|
10055 |
+
*
|
10056 |
* @example
|
10057 |
* $(document).ready( function () {
|
10058 |
* $('#example').dataTable( {
|
10059 |
+
* "paging": false
|
10060 |
* } );
|
10061 |
* } );
|
10062 |
*/
|
10070 |
* the entries.
|
10071 |
* @type boolean
|
10072 |
* @default false
|
10073 |
+
*
|
10074 |
* @dtopt Features
|
10075 |
+
* @name DataTable.defaults.processing
|
10076 |
+
*
|
10077 |
* @example
|
10078 |
* $(document).ready( function () {
|
10079 |
* $('#example').dataTable( {
|
10080 |
+
* "processing": true
|
10081 |
* } );
|
10082 |
* } );
|
10083 |
*/
|
10090 |
* to simply return the object that has already been set up - it will not take
|
10091 |
* account of any changes you might have made to the initialisation object
|
10092 |
* passed to DataTables (setting this parameter to true is an acknowledgement
|
10093 |
+
* that you understand this). `destroy` can be used to reinitialise a table if
|
10094 |
* you need.
|
10095 |
* @type boolean
|
10096 |
* @default false
|
10097 |
+
*
|
10098 |
* @dtopt Options
|
10099 |
+
* @name DataTable.defaults.retrieve
|
10100 |
+
*
|
10101 |
* @example
|
10102 |
* $(document).ready( function() {
|
10103 |
* initTable();
|
10104 |
* tableActions();
|
10105 |
* } );
|
10106 |
+
*
|
10107 |
* function initTable ()
|
10108 |
* {
|
10109 |
* return $('#example').dataTable( {
|
10110 |
+
* "scrollY": "200px",
|
10111 |
+
* "paginate": false,
|
10112 |
+
* "retrieve": true
|
10113 |
* } );
|
10114 |
* }
|
10115 |
+
*
|
10116 |
* function tableActions ()
|
10117 |
* {
|
10118 |
+
* var table = initTable();
|
10119 |
+
* // perform API operations with oTable
|
10120 |
* }
|
10121 |
*/
|
10122 |
"bRetrieve": false,
|
10123 |
|
10124 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10125 |
/**
|
10126 |
* When vertical (y) scrolling is enabled, DataTables will force the height of
|
10127 |
* the table's viewport to the given height at all times (useful for layout).
|
10131 |
* the result set will fit within the given Y height.
|
10132 |
* @type boolean
|
10133 |
* @default false
|
10134 |
+
*
|
10135 |
* @dtopt Options
|
10136 |
+
* @name DataTable.defaults.scrollCollapse
|
10137 |
+
*
|
10138 |
* @example
|
10139 |
* $(document).ready( function() {
|
10140 |
* $('#example').dataTable( {
|
10141 |
+
* "scrollY": "200",
|
10142 |
+
* "scrollCollapse": true
|
10143 |
* } );
|
10144 |
* } );
|
10145 |
*/
|
10147 |
|
10148 |
|
10149 |
/**
|
10150 |
+
* Configure DataTables to use server-side processing. Note that the
|
10151 |
+
* `ajax` parameter must also be given in order to give DataTables a
|
10152 |
+
* source to obtain the required data for each draw.
|
|
|
|
|
|
|
10153 |
* @type boolean
|
10154 |
* @default false
|
10155 |
+
*
|
10156 |
* @dtopt Features
|
10157 |
+
* @dtopt Server-side
|
10158 |
+
* @name DataTable.defaults.serverSide
|
10159 |
+
*
|
10160 |
* @example
|
10161 |
+
* $(document).ready( function () {
|
10162 |
* $('#example').dataTable( {
|
10163 |
+
* "serverSide": true,
|
10164 |
+
* "ajax": "xhr.php"
|
|
|
10165 |
* } );
|
10166 |
* } );
|
10167 |
*/
|
10168 |
+
"bServerSide": false,
|
10169 |
|
10170 |
|
10171 |
/**
|
10172 |
+
* Enable or disable sorting of columns. Sorting of individual columns can be
|
10173 |
+
* disabled by the `sortable` option for each column.
|
|
|
10174 |
* @type boolean
|
10175 |
+
* @default true
|
10176 |
+
*
|
10177 |
* @dtopt Features
|
10178 |
+
* @name DataTable.defaults.ordering
|
10179 |
+
*
|
10180 |
* @example
|
10181 |
* $(document).ready( function () {
|
10182 |
* $('#example').dataTable( {
|
10183 |
+
* "ordering": false
|
|
|
10184 |
* } );
|
10185 |
* } );
|
10186 |
*/
|
10187 |
+
"bSort": true,
|
10188 |
|
10189 |
|
10190 |
/**
|
10191 |
+
* Enable or display DataTables' ability to sort multiple columns at the
|
10192 |
+
* same time (activated by shift-click by the user).
|
10193 |
* @type boolean
|
10194 |
* @default true
|
10195 |
+
*
|
10196 |
+
* @dtopt Options
|
10197 |
+
* @name DataTable.defaults.orderMulti
|
10198 |
+
*
|
10199 |
* @example
|
10200 |
+
* // Disable multiple column sorting ability
|
10201 |
* $(document).ready( function () {
|
10202 |
* $('#example').dataTable( {
|
10203 |
+
* "orderMulti": false
|
10204 |
* } );
|
10205 |
* } );
|
10206 |
*/
|
10207 |
+
"bSortMulti": true,
|
10208 |
|
10209 |
|
10210 |
/**
|
10213 |
* This is useful when using complex headers.
|
10214 |
* @type boolean
|
10215 |
* @default false
|
10216 |
+
*
|
10217 |
* @dtopt Options
|
10218 |
+
* @name DataTable.defaults.orderCellsTop
|
10219 |
+
*
|
10220 |
* @example
|
10221 |
* $(document).ready( function() {
|
10222 |
* $('#example').dataTable( {
|
10223 |
+
* "orderCellsTop": true
|
10224 |
* } );
|
10225 |
* } );
|
10226 |
*/
|
10228 |
|
10229 |
|
10230 |
/**
|
10231 |
+
* Enable or disable the addition of the classes `sorting\_1`, `sorting\_2` and
|
10232 |
+
* `sorting\_3` to the columns which are currently being sorted on. This is
|
10233 |
* presented as a feature switch as it can increase processing time (while
|
10234 |
* classes are removed and added) so for large data sets you might want to
|
10235 |
* turn this off.
|
10236 |
* @type boolean
|
10237 |
* @default true
|
10238 |
+
*
|
10239 |
* @dtopt Features
|
10240 |
+
* @name DataTable.defaults.orderClasses
|
10241 |
+
*
|
10242 |
* @example
|
10243 |
* $(document).ready( function () {
|
10244 |
* $('#example').dataTable( {
|
10245 |
+
* "orderClasses": false
|
10246 |
* } );
|
10247 |
* } );
|
10248 |
*/
|
10250 |
|
10251 |
|
10252 |
/**
|
10253 |
+
* Enable or disable state saving. When enabled HTML5 `localStorage` will be
|
10254 |
+
* used to save table display information such as pagination information,
|
10255 |
+
* display length, filtering and sorting. As such when the end user reloads
|
10256 |
+
* the page the display display will match what thy had previously set up.
|
10257 |
+
*
|
10258 |
+
* Due to the use of `localStorage` the default state saving is not supported
|
10259 |
+
* in IE6 or 7. If state saving is required in those browsers, use
|
10260 |
+
* `stateSaveCallback` to provide a storage solution such as cookies.
|
10261 |
* @type boolean
|
10262 |
* @default false
|
10263 |
+
*
|
10264 |
* @dtopt Features
|
10265 |
+
* @name DataTable.defaults.stateSave
|
10266 |
+
*
|
10267 |
* @example
|
10268 |
* $(document).ready( function () {
|
10269 |
* $('#example').dataTable( {
|
10270 |
+
* "stateSave": true
|
10271 |
* } );
|
10272 |
* } );
|
10273 |
*/
|
10274 |
"bStateSave": false,
|
10275 |
|
10276 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10277 |
/**
|
10278 |
* This function is called when a TR element is created (and all TD child
|
10279 |
* elements have been inserted), or registered if using a DOM source, allowing
|
10280 |
* manipulation of the TR element (adding classes etc).
|
10281 |
* @type function
|
10282 |
+
* @param {node} row "TR" element for the current row
|
10283 |
+
* @param {array} data Raw data array for this row
|
10284 |
+
* @param {int} dataIndex The index of this row in the internal aoData array
|
10285 |
+
*
|
10286 |
* @dtopt Callbacks
|
10287 |
+
* @name DataTable.defaults.createdRow
|
10288 |
+
*
|
10289 |
* @example
|
10290 |
* $(document).ready( function() {
|
10291 |
* $('#example').dataTable( {
|
10292 |
+
* "createdRow": function( row, data, dataIndex ) {
|
10293 |
* // Bold the grade for all 'A' grade browsers
|
10294 |
+
* if ( data[4] == "A" )
|
10295 |
* {
|
10296 |
+
* $('td:eq(4)', row).html( '<b>A</b>' );
|
10297 |
* }
|
10298 |
* }
|
10299 |
* } );
|
10306 |
* This function is called on every 'draw' event, and allows you to
|
10307 |
* dynamically modify any aspect you want about the created DOM.
|
10308 |
* @type function
|
10309 |
+
* @param {object} settings DataTables settings object
|
10310 |
+
*
|
10311 |
* @dtopt Callbacks
|
10312 |
+
* @name DataTable.defaults.drawCallback
|
10313 |
+
*
|
10314 |
* @example
|
10315 |
* $(document).ready( function() {
|
10316 |
* $('#example').dataTable( {
|
10317 |
+
* "drawCallback": function( settings ) {
|
10318 |
* alert( 'DataTables has redrawn the table' );
|
10319 |
* }
|
10320 |
* } );
|
10325 |
|
10326 |
/**
|
10327 |
* Identical to fnHeaderCallback() but for the table footer this function
|
10328 |
+
* allows you to modify the table footer on every 'draw' event.
|
10329 |
* @type function
|
10330 |
+
* @param {node} foot "TR" element for the footer
|
10331 |
+
* @param {array} data Full table data (as derived from the original HTML)
|
10332 |
+
* @param {int} start Index for the current display starting point in the
|
10333 |
* display array
|
10334 |
+
* @param {int} end Index for the current display ending point in the
|
10335 |
* display array
|
10336 |
+
* @param {array int} display Index array to translate the visual position
|
10337 |
* to the full data array
|
10338 |
+
*
|
10339 |
* @dtopt Callbacks
|
10340 |
+
* @name DataTable.defaults.footerCallback
|
10341 |
+
*
|
10342 |
* @example
|
10343 |
* $(document).ready( function() {
|
10344 |
* $('#example').dataTable( {
|
10345 |
+
* "footerCallback": function( tfoot, data, start, end, display ) {
|
10346 |
+
* tfoot.getElementsByTagName('th')[0].innerHTML = "Starting index is "+start;
|
10347 |
* }
|
10348 |
* } );
|
10349 |
* } )
|
10359 |
* function will override the default method DataTables uses.
|
10360 |
* @type function
|
10361 |
* @member
|
10362 |
+
* @param {int} toFormat number to be formatted
|
10363 |
* @returns {string} formatted string for DataTables to show the number
|
10364 |
+
*
|
10365 |
* @dtopt Callbacks
|
10366 |
+
* @name DataTable.defaults.formatNumber
|
10367 |
+
*
|
10368 |
* @example
|
10369 |
+
* // Format a number using a single quote for the separator (note that
|
10370 |
+
* // this can also be done with the language.thousands option)
|
10371 |
* $(document).ready( function() {
|
10372 |
* $('#example').dataTable( {
|
10373 |
+
* "formatNumber": function ( toFormat ) {
|
10374 |
+
* return toFormat.toString().replace(
|
10375 |
+
* /\B(?=(\d{3})+(?!\d))/g, "'"
|
10376 |
+
* );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10377 |
* };
|
10378 |
* } );
|
10379 |
* } );
|
10380 |
*/
|
10381 |
+
"fnFormatNumber": function ( toFormat ) {
|
10382 |
+
return toFormat.toString().replace(
|
10383 |
+
/\B(?=(\d{3})+(?!\d))/g,
|
10384 |
+
this.oLanguage.sThousands
|
10385 |
+
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10386 |
},
|
10387 |
|
10388 |
|
10391 |
* dynamically modify the header row. This can be used to calculate and
|
10392 |
* display useful information about the table.
|
10393 |
* @type function
|
10394 |
+
* @param {node} head "TR" element for the header
|
10395 |
+
* @param {array} data Full table data (as derived from the original HTML)
|
10396 |
+
* @param {int} start Index for the current display starting point in the
|
10397 |
* display array
|
10398 |
+
* @param {int} end Index for the current display ending point in the
|
10399 |
* display array
|
10400 |
+
* @param {array int} display Index array to translate the visual position
|
10401 |
* to the full data array
|
10402 |
+
*
|
10403 |
* @dtopt Callbacks
|
10404 |
+
* @name DataTable.defaults.headerCallback
|
10405 |
+
*
|
10406 |
* @example
|
10407 |
* $(document).ready( function() {
|
10408 |
* $('#example').dataTable( {
|
10409 |
+
* "fheaderCallback": function( head, data, start, end, display ) {
|
10410 |
+
* head.getElementsByTagName('th')[0].innerHTML = "Displaying "+(end-start)+" records";
|
10411 |
* }
|
10412 |
* } );
|
10413 |
* } )
|
10423 |
* allows you to do exactly that.
|
10424 |
* @type function
|
10425 |
* @param {object} oSettings DataTables settings object
|
10426 |
+
* @param {int} start Starting position in data for the draw
|
10427 |
+
* @param {int} end End position in data for the draw
|
10428 |
+
* @param {int} max Total number of rows in the table (regardless of
|
10429 |
* filtering)
|
10430 |
+
* @param {int} total Total number of rows in the data set, after filtering
|
10431 |
+
* @param {string} pre The string that DataTables has formatted using it's
|
10432 |
* own rules
|
10433 |
* @returns {string} The string to be displayed in the information element.
|
10434 |
+
*
|
10435 |
* @dtopt Callbacks
|
10436 |
+
* @name DataTable.defaults.infoCallback
|
10437 |
+
*
|
10438 |
* @example
|
10439 |
* $('#example').dataTable( {
|
10440 |
+
* "infoCallback": function( settings, start, end, max, total, pre ) {
|
10441 |
+
* return start +" to "+ end;
|
10442 |
* }
|
10443 |
* } );
|
10444 |
*/
|
10451 |
* however, this does not hold true when using external language information
|
10452 |
* since that is obtained using an async XHR call.
|
10453 |
* @type function
|
10454 |
+
* @param {object} settings DataTables settings object
|
10455 |
* @param {object} json The JSON object request from the server - only
|
10456 |
* present if client-side Ajax sourced data is used
|
10457 |
+
*
|
10458 |
* @dtopt Callbacks
|
10459 |
+
* @name DataTable.defaults.initComplete
|
10460 |
+
*
|
10461 |
* @example
|
10462 |
* $(document).ready( function() {
|
10463 |
* $('#example').dataTable( {
|
10464 |
+
* "initComplete": function(settings, json) {
|
10465 |
* alert( 'DataTables has finished its initialisation.' );
|
10466 |
* }
|
10467 |
* } );
|
10475 |
* draw by returning false, any other return (including undefined) results in
|
10476 |
* the full draw occurring).
|
10477 |
* @type function
|
10478 |
+
* @param {object} settings DataTables settings object
|
10479 |
* @returns {boolean} False will cancel the draw, anything else (including no
|
10480 |
* return) will allow it to complete.
|
10481 |
+
*
|
10482 |
* @dtopt Callbacks
|
10483 |
+
* @name DataTable.defaults.preDrawCallback
|
10484 |
+
*
|
10485 |
* @example
|
10486 |
* $(document).ready( function() {
|
10487 |
* $('#example').dataTable( {
|
10488 |
+
* "preDrawCallback": function( settings ) {
|
10489 |
* if ( $('#test').val() == 1 ) {
|
10490 |
* return false;
|
10491 |
* }
|
10501 |
* generated for each table draw, but before it is rendered on screen. This
|
10502 |
* function might be used for setting the row class name etc.
|
10503 |
* @type function
|
10504 |
+
* @param {node} row "TR" element for the current row
|
10505 |
+
* @param {array} data Raw data array for this row
|
10506 |
+
* @param {int} displayIndex The display index for the current table draw
|
10507 |
+
* @param {int} displayIndexFull The index of the data in the full list of
|
10508 |
* rows (after filtering)
|
10509 |
+
*
|
10510 |
* @dtopt Callbacks
|
10511 |
+
* @name DataTable.defaults.rowCallback
|
10512 |
+
*
|
10513 |
* @example
|
10514 |
* $(document).ready( function() {
|
10515 |
* $('#example').dataTable( {
|
10516 |
+
* "rowCallback": function( row, data, displayIndex, displayIndexFull ) {
|
10517 |
* // Bold the grade for all 'A' grade browsers
|
10518 |
+
* if ( data[4] == "A" ) {
|
10519 |
+
* $('td:eq(4)', row).html( '<b>A</b>' );
|
|
|
10520 |
* }
|
10521 |
* }
|
10522 |
* } );
|
10526 |
|
10527 |
|
10528 |
/**
|
10529 |
+
* __Deprecated__ The functionality provided by this parameter has now been
|
10530 |
+
* superseded by that provided through `ajax`, which should be used instead.
|
10531 |
+
*
|
10532 |
* This parameter allows you to override the default function which obtains
|
10533 |
+
* the data from the server so something more suitable for your application.
|
10534 |
+
* For example you could use POST data, or pull information from a Gears or
|
10535 |
+
* AIR database.
|
10536 |
* @type function
|
10537 |
* @member
|
10538 |
+
* @param {string} source HTTP source to obtain the data from (`ajax`)
|
10539 |
+
* @param {array} data A key/value pair object containing the data to send
|
10540 |
* to the server
|
10541 |
+
* @param {function} callback to be called on completion of the data get
|
10542 |
* process that will draw the data on the page.
|
10543 |
+
* @param {object} settings DataTables settings object
|
10544 |
+
*
|
10545 |
* @dtopt Callbacks
|
10546 |
* @dtopt Server-side
|
10547 |
+
* @name DataTable.defaults.serverData
|
10548 |
+
*
|
10549 |
+
* @deprecated 1.10. Please use `ajax` for this functionality now.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10550 |
*/
|
10551 |
+
"fnServerData": null,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10552 |
|
10553 |
|
10554 |
/**
|
10555 |
+
* __Deprecated__ The functionality provided by this parameter has now been
|
10556 |
+
* superseded by that provided through `ajax`, which should be used instead.
|
10557 |
+
*
|
10558 |
+
* It is often useful to send extra data to the server when making an Ajax
|
10559 |
* request - for example custom filtering information, and this callback
|
10560 |
* function makes it trivial to send extra information to the server. The
|
10561 |
* passed in parameter is the data set that has been constructed by
|
10562 |
* DataTables, and you can add to this or modify it as you require.
|
10563 |
* @type function
|
10564 |
+
* @param {array} data Data array (array of objects which are name/value
|
10565 |
* pairs) that has been constructed by DataTables and will be sent to the
|
10566 |
* server. In the case of Ajax sourced data with server-side processing
|
10567 |
* this will be an empty array, for server-side processing there will be a
|
10568 |
* significant number of parameters!
|
10569 |
+
* @returns {undefined} Ensure that you modify the data array passed in,
|
10570 |
* as this is passed by reference.
|
10571 |
+
*
|
10572 |
* @dtopt Callbacks
|
10573 |
* @dtopt Server-side
|
10574 |
+
* @name DataTable.defaults.serverParams
|
10575 |
+
*
|
10576 |
+
* @deprecated 1.10. Please use `ajax` for this functionality now.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10577 |
*/
|
10578 |
"fnServerParams": null,
|
10579 |
|
10580 |
|
10581 |
/**
|
10582 |
* Load the table state. With this function you can define from where, and how, the
|
10583 |
+
* state of a table is loaded. By default DataTables will load from `localStorage`
|
10584 |
+
* but you might wish to use a server-side database or cookies.
|
10585 |
* @type function
|
10586 |
* @member
|
10587 |
+
* @param {object} settings DataTables settings object
|
10588 |
* @return {object} The DataTables state object to be loaded
|
10589 |
+
*
|
10590 |
* @dtopt Callbacks
|
10591 |
+
* @name DataTable.defaults.stateLoadCallback
|
10592 |
+
*
|
10593 |
* @example
|
10594 |
* $(document).ready( function() {
|
10595 |
* $('#example').dataTable( {
|
10596 |
+
* "stateSave": true,
|
10597 |
+
* "stateLoadCallback": function (settings) {
|
10598 |
* var o;
|
10599 |
+
*
|
10600 |
* // Send an Ajax request to the server to get the data. Note that
|
10601 |
* // this is a synchronous request.
|
10602 |
* $.ajax( {
|
10607 |
* o = json;
|
10608 |
* }
|
10609 |
* } );
|
10610 |
+
*
|
10611 |
* return o;
|
10612 |
* }
|
10613 |
* } );
|
10614 |
* } );
|
10615 |
*/
|
10616 |
+
"fnStateLoadCallback": function ( settings ) {
|
|
|
|
|
|
|
10617 |
try {
|
10618 |
+
return JSON.parse(
|
10619 |
+
(settings.iStateDuration === -1 ? sessionStorage : localStorage).getItem(
|
10620 |
+
'DataTables_'+settings.sInstance+'_'+location.pathname
|
10621 |
+
)
|
10622 |
+
);
|
10623 |
+
} catch (e) {}
|
|
|
10624 |
},
|
10625 |
|
10626 |
|
10627 |
/**
|
10628 |
* Callback which allows modification of the saved state prior to loading that state.
|
10629 |
* This callback is called when the table is loading state from the stored data, but
|
10630 |
+
* prior to the settings object being modified by the saved state. Note that for
|
10631 |
+
* plug-in authors, you should use the `stateLoadParams` event to load parameters for
|
10632 |
* a plug-in.
|
10633 |
* @type function
|
10634 |
+
* @param {object} settings DataTables settings object
|
10635 |
+
* @param {object} data The state object that is to be loaded
|
10636 |
+
*
|
10637 |
* @dtopt Callbacks
|
10638 |
+
* @name DataTable.defaults.stateLoadParams
|
10639 |
+
*
|
10640 |
* @example
|
10641 |
* // Remove a saved filter, so filtering is never loaded
|
10642 |
* $(document).ready( function() {
|
10643 |
* $('#example').dataTable( {
|
10644 |
+
* "stateSave": true,
|
10645 |
+
* "stateLoadParams": function (settings, data) {
|
10646 |
+
* data.oSearch.sSearch = "";
|
10647 |
* }
|
10648 |
* } );
|
10649 |
* } );
|
10650 |
+
*
|
10651 |
* @example
|
10652 |
* // Disallow state loading by returning false
|
10653 |
* $(document).ready( function() {
|
10654 |
* $('#example').dataTable( {
|
10655 |
+
* "stateSave": true,
|
10656 |
+
* "stateLoadParams": function (settings, data) {
|
10657 |
* return false;
|
10658 |
* }
|
10659 |
* } );
|
10666 |
* Callback that is called when the state has been loaded from the state saving method
|
10667 |
* and the DataTables settings object has been modified as a result of the loaded state.
|
10668 |
* @type function
|
10669 |
+
* @param {object} settings DataTables settings object
|
10670 |
+
* @param {object} data The state object that was loaded
|
10671 |
+
*
|
10672 |
* @dtopt Callbacks
|
10673 |
+
* @name DataTable.defaults.stateLoaded
|
10674 |
+
*
|
10675 |
* @example
|
10676 |
* // Show an alert with the filtering value that was saved
|
10677 |
* $(document).ready( function() {
|
10678 |
* $('#example').dataTable( {
|
10679 |
+
* "stateSave": true,
|
10680 |
+
* "stateLoaded": function (settings, data) {
|
10681 |
+
* alert( 'Saved filter was: '+data.oSearch.sSearch );
|
10682 |
* }
|
10683 |
* } );
|
10684 |
* } );
|
10688 |
|
10689 |
/**
|
10690 |
* Save the table state. This function allows you to define where and how the state
|
10691 |
+
* information for the table is stored By default DataTables will use `localStorage`
|
10692 |
+
* but you might wish to use a server-side database or cookies.
|
10693 |
* @type function
|
10694 |
* @member
|
10695 |
+
* @param {object} settings DataTables settings object
|
10696 |
+
* @param {object} data The state object to be saved
|
10697 |
+
*
|
10698 |
* @dtopt Callbacks
|
10699 |
+
* @name DataTable.defaults.stateSaveCallback
|
10700 |
+
*
|
10701 |
* @example
|
10702 |
* $(document).ready( function() {
|
10703 |
* $('#example').dataTable( {
|
10704 |
+
* "stateSave": true,
|
10705 |
+
* "stateSaveCallback": function (settings, data) {
|
10706 |
* // Send an Ajax request to the server with the state object
|
10707 |
* $.ajax( {
|
10708 |
* "url": "/state_save",
|
10709 |
+
* "data": data,
|
10710 |
* "dataType": "json",
|
10711 |
* "method": "POST"
|
10712 |
* "success": function () {}
|
10715 |
* } );
|
10716 |
* } );
|
10717 |
*/
|
10718 |
+
"fnStateSaveCallback": function ( settings, data ) {
|
10719 |
+
try {
|
10720 |
+
(settings.iStateDuration === -1 ? sessionStorage : localStorage).setItem(
|
10721 |
+
'DataTables_'+settings.sInstance+'_'+location.pathname,
|
10722 |
+
JSON.stringify( data )
|
10723 |
+
);
|
10724 |
+
} catch (e) {}
|
|
|
10725 |
},
|
10726 |
|
10727 |
|
10728 |
/**
|
10729 |
+
* Callback which allows modification of the state to be saved. Called when the table
|
10730 |
* has changed state a new state save is required. This method allows modification of
|
10731 |
+
* the state saving object prior to actually doing the save, including addition or
|
10732 |
+
* other state properties or modification. Note that for plug-in authors, you should
|
10733 |
+
* use the `stateSaveParams` event to save parameters for a plug-in.
|
10734 |
* @type function
|
10735 |
+
* @param {object} settings DataTables settings object
|
10736 |
+
* @param {object} data The state object to be saved
|
10737 |
+
*
|
10738 |
* @dtopt Callbacks
|
10739 |
+
* @name DataTable.defaults.stateSaveParams
|
10740 |
+
*
|
10741 |
* @example
|
10742 |
* // Remove a saved filter, so filtering is never saved
|
10743 |
* $(document).ready( function() {
|
10744 |
* $('#example').dataTable( {
|
10745 |
+
* "stateSave": true,
|
10746 |
+
* "stateSaveParams": function (settings, data) {
|
10747 |
+
* data.oSearch.sSearch = "";
|
10748 |
* }
|
10749 |
* } );
|
10750 |
* } );
|
10753 |
|
10754 |
|
10755 |
/**
|
10756 |
+
* Duration for which the saved state information is considered valid. After this period
|
10757 |
+
* has elapsed the state will be returned to the default.
|
10758 |
+
* Value is given in seconds.
|
10759 |
* @type int
|
10760 |
* @default 7200 <i>(2 hours)</i>
|
10761 |
+
*
|
10762 |
* @dtopt Options
|
10763 |
+
* @name DataTable.defaults.stateDuration
|
10764 |
+
*
|
10765 |
* @example
|
10766 |
* $(document).ready( function() {
|
10767 |
* $('#example').dataTable( {
|
10768 |
+
* "stateDuration": 60*60*24; // 1 day
|
10769 |
* } );
|
10770 |
* } )
|
10771 |
*/
|
10772 |
+
"iStateDuration": 7200,
|
10773 |
|
10774 |
|
10775 |
/**
|
10776 |
* When enabled DataTables will not make a request to the server for the first
|
10777 |
* page draw - rather it will use the data already on the page (no sorting etc
|
10778 |
+
* will be applied to it), thus saving on an XHR at load time. `deferLoading`
|
10779 |
* is used to indicate that deferred loading is required, but it is also used
|
10780 |
* to tell DataTables how many records there are in the full table (allowing
|
10781 |
* the information element and pagination to be displayed correctly). In the case
|
10786 |
* to be shown correctly).
|
10787 |
* @type int | array
|
10788 |
* @default null
|
10789 |
+
*
|
10790 |
* @dtopt Options
|
10791 |
+
* @name DataTable.defaults.deferLoading
|
10792 |
+
*
|
10793 |
* @example
|
10794 |
* // 57 records available in the table, no filtering applied
|
10795 |
* $(document).ready( function() {
|
10796 |
* $('#example').dataTable( {
|
10797 |
+
* "serverSide": true,
|
10798 |
+
* "ajax": "scripts/server_processing.php",
|
10799 |
+
* "deferLoading": 57
|
10800 |
* } );
|
10801 |
* } );
|
10802 |
+
*
|
10803 |
* @example
|
10804 |
* // 57 records after filtering, 100 without filtering (an initial filter applied)
|
10805 |
* $(document).ready( function() {
|
10806 |
* $('#example').dataTable( {
|
10807 |
+
* "serverSide": true,
|
10808 |
+
* "ajax": "scripts/server_processing.php",
|
10809 |
+
* "deferLoading": [ 57, 100 ],
|
10810 |
+
* "search": {
|
10811 |
+
* "search": "my_filter"
|
10812 |
* }
|
10813 |
* } );
|
10814 |
* } );
|
10818 |
|
10819 |
/**
|
10820 |
* Number of rows to display on a single page when using pagination. If
|
10821 |
+
* feature enabled (`lengthChange`) then the end user will be able to override
|
10822 |
* this to a custom setting using a pop-up menu.
|
10823 |
* @type int
|
10824 |
* @default 10
|
10825 |
+
*
|
10826 |
* @dtopt Options
|
10827 |
+
* @name DataTable.defaults.pageLength
|
10828 |
+
*
|
10829 |
* @example
|
10830 |
* $(document).ready( function() {
|
10831 |
* $('#example').dataTable( {
|
10832 |
+
* "pageLength": 50
|
10833 |
* } );
|
10834 |
* } )
|
10835 |
*/
|
10843 |
* the third page, it should be "20".
|
10844 |
* @type int
|
10845 |
* @default 0
|
10846 |
+
*
|
10847 |
* @dtopt Options
|
10848 |
+
* @name DataTable.defaults.displayStart
|
10849 |
+
*
|
10850 |
* @example
|
10851 |
* $(document).ready( function() {
|
10852 |
* $('#example').dataTable( {
|
10853 |
+
* "displayStart": 20
|
10854 |
* } );
|
10855 |
* } )
|
10856 |
*/
|
10857 |
"iDisplayStart": 0,
|
10858 |
|
10859 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10860 |
/**
|
10861 |
* By default DataTables allows keyboard navigation of the table (sorting, paging,
|
10862 |
+
* and filtering) by adding a `tabindex` attribute to the required elements. This
|
10863 |
* allows you to tab through the controls and press the enter key to activate them.
|
10864 |
* The tabindex is default 0, meaning that the tab follows the flow of the document.
|
10865 |
* You can overrule this using this parameter if you wish. Use a value of -1 to
|
10866 |
* disable built-in keyboard navigation.
|
10867 |
* @type int
|
10868 |
* @default 0
|
10869 |
+
*
|
10870 |
* @dtopt Options
|
10871 |
+
* @name DataTable.defaults.tabIndex
|
10872 |
+
*
|
10873 |
* @example
|
10874 |
* $(document).ready( function() {
|
10875 |
* $('#example').dataTable( {
|
10876 |
+
* "tabIndex": 1
|
10877 |
* } );
|
10878 |
* } );
|
10879 |
*/
|
10880 |
"iTabIndex": 0,
|
10881 |
|
10882 |
|
10883 |
+
/**
|
10884 |
+
* Classes that DataTables assigns to the various components and features
|
10885 |
+
* that it adds to the HTML table. This allows classes to be configured
|
10886 |
+
* during initialisation in addition to through the static
|
10887 |
+
* {@link DataTable.ext.oStdClasses} object).
|
10888 |
+
* @namespace
|
10889 |
+
* @name DataTable.defaults.classes
|
10890 |
+
*/
|
10891 |
+
"oClasses": {},
|
10892 |
+
|
10893 |
+
|
10894 |
/**
|
10895 |
* All strings that DataTables uses in the user interface that it creates
|
10896 |
* are defined in this object, allowing you to modified them individually or
|
10897 |
* completely replace them all as required.
|
10898 |
* @namespace
|
10899 |
+
* @name DataTable.defaults.language
|
10900 |
*/
|
10901 |
"oLanguage": {
|
10902 |
/**
|
10904 |
* actually visible on the page, but will be read by screenreaders, and thus
|
10905 |
* must be internationalised as well).
|
10906 |
* @namespace
|
10907 |
+
* @name DataTable.defaults.language.aria
|
10908 |
*/
|
10909 |
"oAria": {
|
10910 |
/**
|
10913 |
* Note that the column header is prefixed to this string.
|
10914 |
* @type string
|
10915 |
* @default : activate to sort column ascending
|
10916 |
+
*
|
10917 |
* @dtopt Language
|
10918 |
+
* @name DataTable.defaults.language.aria.sortAscending
|
10919 |
+
*
|
10920 |
* @example
|
10921 |
* $(document).ready( function() {
|
10922 |
* $('#example').dataTable( {
|
10923 |
+
* "language": {
|
10924 |
+
* "aria": {
|
10925 |
+
* "sortAscending": " - click/return to sort ascending"
|
10926 |
* }
|
10927 |
* }
|
10928 |
* } );
|
10936 |
* Note that the column header is prefixed to this string.
|
10937 |
* @type string
|
10938 |
* @default : activate to sort column ascending
|
10939 |
+
*
|
10940 |
* @dtopt Language
|
10941 |
+
* @name DataTable.defaults.language.aria.sortDescending
|
10942 |
+
*
|
10943 |
* @example
|
10944 |
* $(document).ready( function() {
|
10945 |
* $('#example').dataTable( {
|
10946 |
+
* "language": {
|
10947 |
+
* "aria": {
|
10948 |
+
* "sortDescending": " - click/return to sort descending"
|
10949 |
* }
|
10950 |
* }
|
10951 |
* } );
|
10955 |
},
|
10956 |
|
10957 |
/**
|
10958 |
+
* Pagination string used by DataTables for the built-in pagination
|
10959 |
+
* control types.
|
10960 |
* @namespace
|
10961 |
+
* @name DataTable.defaults.language.paginate
|
10962 |
*/
|
10963 |
"oPaginate": {
|
10964 |
/**
|
10966 |
* button to take the user to the first page.
|
10967 |
* @type string
|
10968 |
* @default First
|
10969 |
+
*
|
10970 |
* @dtopt Language
|
10971 |
+
* @name DataTable.defaults.language.paginate.first
|
10972 |
+
*
|
10973 |
* @example
|
10974 |
* $(document).ready( function() {
|
10975 |
* $('#example').dataTable( {
|
10976 |
+
* "language": {
|
10977 |
+
* "paginate": {
|
10978 |
+
* "first": "First page"
|
10979 |
* }
|
10980 |
* }
|
10981 |
* } );
|
10982 |
* } );
|
10983 |
*/
|
10984 |
"sFirst": "First",
|
10985 |
+
|
10986 |
+
|
10987 |
/**
|
10988 |
* Text to use when using the 'full_numbers' type of pagination for the
|
10989 |
* button to take the user to the last page.
|
10990 |
* @type string
|
10991 |
* @default Last
|
10992 |
+
*
|
10993 |
* @dtopt Language
|
10994 |
+
* @name DataTable.defaults.language.paginate.last
|
10995 |
+
*
|
10996 |
* @example
|
10997 |
* $(document).ready( function() {
|
10998 |
* $('#example').dataTable( {
|
10999 |
+
* "language": {
|
11000 |
+
* "paginate": {
|
11001 |
+
* "last": "Last page"
|
11002 |
* }
|
11003 |
* }
|
11004 |
* } );
|
11005 |
* } );
|
11006 |
*/
|
11007 |
"sLast": "Last",
|
11008 |
+
|
11009 |
+
|
11010 |
/**
|
11011 |
+
* Text to use for the 'next' pagination button (to take the user to the
|
11012 |
* next page).
|
11013 |
* @type string
|
11014 |
* @default Next
|
11015 |
+
*
|
11016 |
* @dtopt Language
|
11017 |
+
* @name DataTable.defaults.language.paginate.next
|
11018 |
+
*
|
11019 |
* @example
|
11020 |
* $(document).ready( function() {
|
11021 |
* $('#example').dataTable( {
|
11022 |
+
* "language": {
|
11023 |
+
* "paginate": {
|
11024 |
+
* "next": "Next page"
|
11025 |
* }
|
11026 |
* }
|
11027 |
* } );
|
11028 |
* } );
|
11029 |
*/
|
11030 |
"sNext": "Next",
|
11031 |
+
|
11032 |
+
|
11033 |
/**
|
11034 |
+
* Text to use for the 'previous' pagination button (to take the user to
|
11035 |
* the previous page).
|
11036 |
* @type string
|
11037 |
* @default Previous
|
11038 |
+
*
|
11039 |
* @dtopt Language
|
11040 |
+
* @name DataTable.defaults.language.paginate.previous
|
11041 |
+
*
|
11042 |
* @example
|
11043 |
* $(document).ready( function() {
|
11044 |
* $('#example').dataTable( {
|
11045 |
+
* "language": {
|
11046 |
+
* "paginate": {
|
11047 |
+
* "previous": "Previous page"
|
11048 |
* }
|
11049 |
* }
|
11050 |
* } );
|
11052 |
*/
|
11053 |
"sPrevious": "Previous"
|
11054 |
},
|
11055 |
+
|
11056 |
/**
|
11057 |
+
* This string is shown in preference to `zeroRecords` when the table is
|
11058 |
* empty of data (regardless of filtering). Note that this is an optional
|
11059 |
+
* parameter - if it is not given, the value of `zeroRecords` will be used
|
11060 |
* instead (either the default or given value).
|
11061 |
* @type string
|
11062 |
* @default No data available in table
|
11063 |
+
*
|
11064 |
* @dtopt Language
|
11065 |
+
* @name DataTable.defaults.language.emptyTable
|
11066 |
+
*
|
11067 |
* @example
|
11068 |
* $(document).ready( function() {
|
11069 |
* $('#example').dataTable( {
|
11070 |
+
* "language": {
|
11071 |
+
* "emptyTable": "No data available in table"
|
11072 |
* }
|
11073 |
* } );
|
11074 |
* } );
|
11075 |
*/
|
11076 |
"sEmptyTable": "No data available in table",
|
11077 |
+
|
11078 |
+
|
11079 |
/**
|
11080 |
+
* This string gives information to the end user about the information
|
11081 |
+
* that is current on display on the page. The following tokens can be
|
11082 |
+
* used in the string and will be dynamically replaced as the table
|
11083 |
+
* display updates. This tokens can be placed anywhere in the string, or
|
11084 |
+
* removed as needed by the language requires:
|
11085 |
+
*
|
11086 |
+
* * `\_START\_` - Display index of the first record on the current page
|
11087 |
+
* * `\_END\_` - Display index of the last record on the current page
|
11088 |
+
* * `\_TOTAL\_` - Number of records in the table after filtering
|
11089 |
+
* * `\_MAX\_` - Number of records in the table without filtering
|
11090 |
+
* * `\_PAGE\_` - Current page number
|
11091 |
+
* * `\_PAGES\_` - Total number of pages of data in the table
|
11092 |
+
*
|
11093 |
* @type string
|
11094 |
* @default Showing _START_ to _END_ of _TOTAL_ entries
|
11095 |
+
*
|
11096 |
* @dtopt Language
|
11097 |
+
* @name DataTable.defaults.language.info
|
11098 |
+
*
|
11099 |
* @example
|
11100 |
* $(document).ready( function() {
|
11101 |
* $('#example').dataTable( {
|
11102 |
+
* "language": {
|
11103 |
+
* "info": "Showing page _PAGE_ of _PAGES_"
|
11104 |
* }
|
11105 |
* } );
|
11106 |
* } );
|
11107 |
*/
|
11108 |
"sInfo": "Showing _START_ to _END_ of _TOTAL_ entries",
|
11109 |
+
|
11110 |
+
|
11111 |
/**
|
11112 |
+
* Display information string for when the table is empty. Typically the
|
11113 |
+
* format of this string should match `info`.
|
11114 |
* @type string
|
11115 |
* @default Showing 0 to 0 of 0 entries
|
11116 |
+
*
|
11117 |
* @dtopt Language
|
11118 |
+
* @name DataTable.defaults.language.infoEmpty
|
11119 |
+
*
|
11120 |
* @example
|
11121 |
* $(document).ready( function() {
|
11122 |
* $('#example').dataTable( {
|
11123 |
+
* "language": {
|
11124 |
+
* "infoEmpty": "No entries to show"
|
11125 |
* }
|
11126 |
* } );
|
11127 |
* } );
|
11128 |
*/
|
11129 |
"sInfoEmpty": "Showing 0 to 0 of 0 entries",
|
11130 |
+
|
11131 |
+
|
11132 |
/**
|
11133 |
+
* When a user filters the information in a table, this string is appended
|
11134 |
+
* to the information (`info`) to give an idea of how strong the filtering
|
11135 |
* is. The variable _MAX_ is dynamically updated.
|
11136 |
* @type string
|
11137 |
* @default (filtered from _MAX_ total entries)
|
11138 |
+
*
|
11139 |
* @dtopt Language
|
11140 |
+
* @name DataTable.defaults.language.infoFiltered
|
11141 |
+
*
|
11142 |
* @example
|
11143 |
* $(document).ready( function() {
|
11144 |
* $('#example').dataTable( {
|
11145 |
+
* "language": {
|
11146 |
+
* "infoFiltered": " - filtering from _MAX_ records"
|
11147 |
* }
|
11148 |
* } );
|
11149 |
* } );
|
11150 |
*/
|
11151 |
"sInfoFiltered": "(filtered from _MAX_ total entries)",
|
11152 |
+
|
11153 |
+
|
11154 |
/**
|
11155 |
* If can be useful to append extra information to the info string at times,
|
11156 |
* and this variable does exactly that. This information will be appended to
|
11157 |
+
* the `info` (`infoEmpty` and `infoFiltered` in whatever combination they are
|
11158 |
* being used) at all times.
|
11159 |
* @type string
|
11160 |
* @default <i>Empty string</i>
|
11161 |
+
*
|
11162 |
* @dtopt Language
|
11163 |
+
* @name DataTable.defaults.language.infoPostFix
|
11164 |
+
*
|
11165 |
* @example
|
11166 |
* $(document).ready( function() {
|
11167 |
* $('#example').dataTable( {
|
11168 |
+
* "language": {
|
11169 |
+
* "infoPostFix": "All records shown are derived from real information."
|
11170 |
* }
|
11171 |
* } );
|
11172 |
* } );
|
11173 |
*/
|
11174 |
"sInfoPostFix": "",
|
11175 |
+
|
11176 |
+
|
11177 |
+
/**
|
11178 |
+
* This decimal place operator is a little different from the other
|
11179 |
+
* language options since DataTables doesn't output floating point
|
11180 |
+
* numbers, so it won't ever use this for display of a number. Rather,
|
11181 |
+
* what this parameter does is modify the sort methods of the table so
|
11182 |
+
* that numbers which are in a format which has a character other than
|
11183 |
+
* a period (`.`) as a decimal place will be sorted numerically.
|
11184 |
+
*
|
11185 |
+
* Note that numbers with different decimal places cannot be shown in
|
11186 |
+
* the same table and still be sortable, the table must be consistent.
|
11187 |
+
* However, multiple different tables on the page can use different
|
11188 |
+
* decimal place characters.
|
11189 |
+
* @type string
|
11190 |
+
* @default
|
11191 |
+
*
|
11192 |
+
* @dtopt Language
|
11193 |
+
* @name DataTable.defaults.language.decimal
|
11194 |
+
*
|
11195 |
+
* @example
|
11196 |
+
* $(document).ready( function() {
|
11197 |
+
* $('#example').dataTable( {
|
11198 |
+
* "language": {
|
11199 |
+
* "decimal": ","
|
11200 |
+
* "thousands": "."
|
11201 |
+
* }
|
11202 |
+
* } );
|
11203 |
+
* } );
|
11204 |
+
*/
|
11205 |
+
"sDecimal": "",
|
11206 |
+
|
11207 |
+
|
11208 |
/**
|
11209 |
+
* DataTables has a build in number formatter (`formatNumber`) which is
|
11210 |
+
* used to format large numbers that are used in the table information.
|
11211 |
+
* By default a comma is used, but this can be trivially changed to any
|
11212 |
* character you wish with this parameter.
|
11213 |
* @type string
|
11214 |
* @default ,
|
11215 |
+
*
|
11216 |
* @dtopt Language
|
11217 |
+
* @name DataTable.defaults.language.thousands
|
11218 |
+
*
|
11219 |
* @example
|
11220 |
* $(document).ready( function() {
|
11221 |
* $('#example').dataTable( {
|
11222 |
+
* "language": {
|
11223 |
+
* "thousands": "'"
|
11224 |
* }
|
11225 |
* } );
|
11226 |
* } );
|
11227 |
*/
|
11228 |
+
"sThousands": ",",
|
11229 |
+
|
11230 |
+
|
11231 |
/**
|
11232 |
* Detail the action that will be taken when the drop down menu for the
|
11233 |
* pagination length option is changed. The '_MENU_' variable is replaced
|
11235 |
* with a custom select box if required.
|
11236 |
* @type string
|
11237 |
* @default Show _MENU_ entries
|
11238 |
+
*
|
11239 |
* @dtopt Language
|
11240 |
+
* @name DataTable.defaults.language.lengthMenu
|
11241 |
+
*
|
11242 |
* @example
|
11243 |
* // Language change only
|
11244 |
* $(document).ready( function() {
|
11245 |
* $('#example').dataTable( {
|
11246 |
+
* "language": {
|
11247 |
+
* "lengthMenu": "Display _MENU_ records"
|
11248 |
* }
|
11249 |
* } );
|
11250 |
* } );
|
11251 |
+
*
|
11252 |
* @example
|
11253 |
* // Language and options change
|
11254 |
* $(document).ready( function() {
|
11255 |
* $('#example').dataTable( {
|
11256 |
+
* "language": {
|
11257 |
+
* "lengthMenu": 'Display <select>'+
|
11258 |
* '<option value="10">10</option>'+
|
11259 |
* '<option value="20">20</option>'+
|
11260 |
* '<option value="30">30</option>'+
|
11267 |
* } );
|
11268 |
*/
|
11269 |
"sLengthMenu": "Show _MENU_ entries",
|
11270 |
+
|
11271 |
+
|
11272 |
/**
|
11273 |
* When using Ajax sourced data and during the first draw when DataTables is
|
11274 |
* gathering the data, this message is shown in an empty row in the table to
|
11277 |
* Ajax sourced data with client-side processing.
|
11278 |
* @type string
|
11279 |
* @default Loading...
|
11280 |
+
*
|
11281 |
* @dtopt Language
|
11282 |
+
* @name DataTable.defaults.language.loadingRecords
|
11283 |
+
*
|
11284 |
* @example
|
11285 |
* $(document).ready( function() {
|
11286 |
* $('#example').dataTable( {
|
11287 |
+
* "language": {
|
11288 |
+
* "loadingRecords": "Please wait - loading..."
|
11289 |
* }
|
11290 |
* } );
|
11291 |
* } );
|
11292 |
*/
|
11293 |
"sLoadingRecords": "Loading...",
|
11294 |
+
|
11295 |
+
|
11296 |
/**
|
11297 |
* Text which is displayed when the table is processing a user action
|
11298 |
* (usually a sort command or similar).
|
11299 |
* @type string
|
11300 |
* @default Processing...
|
11301 |
+
*
|
11302 |
* @dtopt Language
|
11303 |
+
* @name DataTable.defaults.language.processing
|
11304 |
+
*
|
11305 |
* @example
|
11306 |
* $(document).ready( function() {
|
11307 |
* $('#example').dataTable( {
|
11308 |
+
* "language": {
|
11309 |
+
* "processing": "DataTables is currently busy"
|
11310 |
* }
|
11311 |
* } );
|
11312 |
* } );
|
11313 |
*/
|
11314 |
"sProcessing": "Processing...",
|
11315 |
+
|
11316 |
+
|
11317 |
/**
|
11318 |
* Details the actions that will be taken when the user types into the
|
11319 |
* filtering input text box. The variable "_INPUT_", if used in the string,
|
11322 |
* then the input box is appended to the string automatically.
|
11323 |
* @type string
|
11324 |
* @default Search:
|
11325 |
+
*
|
11326 |
* @dtopt Language
|
11327 |
+
* @name DataTable.defaults.language.search
|
11328 |
+
*
|
11329 |
* @example
|
11330 |
* // Input text box will be appended at the end automatically
|
11331 |
* $(document).ready( function() {
|
11332 |
* $('#example').dataTable( {
|
11333 |
+
* "language": {
|
11334 |
+
* "search": "Filter records:"
|
11335 |
* }
|
11336 |
* } );
|
11337 |
* } );
|
11338 |
+
*
|
11339 |
* @example
|
11340 |
* // Specify where the filter should appear
|
11341 |
* $(document).ready( function() {
|
11342 |
* $('#example').dataTable( {
|
11343 |
+
* "language": {
|
11344 |
+
* "search": "Apply filter _INPUT_ to table"
|
11345 |
* }
|
11346 |
* } );
|
11347 |
* } );
|
11348 |
*/
|
11349 |
"sSearch": "Search:",
|
11350 |
+
|
11351 |
+
|
11352 |
+
/**
|
11353 |
+
* Assign a `placeholder` attribute to the search `input` element
|
11354 |
+
* @type string
|
11355 |
+
* @default
|
11356 |
+
*
|
11357 |
+
* @dtopt Language
|
11358 |
+
* @name DataTable.defaults.language.searchPlaceholder
|
11359 |
+
*/
|
11360 |
+
"sSearchPlaceholder": "",
|
11361 |
+
|
11362 |
+
|
11363 |
/**
|
11364 |
* All of the language information can be stored in a file on the
|
11365 |
* server-side, which DataTables will look up if this parameter is passed.
|
11369 |
* the example language files to see how this works in action.
|
11370 |
* @type string
|
11371 |
* @default <i>Empty string - i.e. disabled</i>
|
11372 |
+
*
|
11373 |
* @dtopt Language
|
11374 |
+
* @name DataTable.defaults.language.url
|
11375 |
+
*
|
11376 |
* @example
|
11377 |
* $(document).ready( function() {
|
11378 |
* $('#example').dataTable( {
|
11379 |
+
* "language": {
|
11380 |
+
* "url": "http://www.sprymedia.co.uk/dataTables/lang.txt"
|
11381 |
* }
|
11382 |
* } );
|
11383 |
* } );
|
11384 |
*/
|
11385 |
"sUrl": "",
|
11386 |
+
|
11387 |
+
|
11388 |
/**
|
11389 |
* Text shown inside the table records when the is no information to be
|
11390 |
+
* displayed after filtering. `emptyTable` is shown when there is simply no
|
11391 |
* information in the table at all (regardless of filtering).
|
11392 |
* @type string
|
11393 |
* @default No matching records found
|
11394 |
+
*
|
11395 |
* @dtopt Language
|
11396 |
+
* @name DataTable.defaults.language.zeroRecords
|
11397 |
+
*
|
11398 |
* @example
|
11399 |
* $(document).ready( function() {
|
11400 |
* $('#example').dataTable( {
|
11401 |
+
* "language": {
|
11402 |
+
* "zeroRecords": "No records to display"
|
11403 |
* }
|
11404 |
* } );
|
11405 |
* } );
|
11410 |
|
11411 |
/**
|
11412 |
* This parameter allows you to have define the global filtering state at
|
11413 |
+
* initialisation time. As an object the `search` parameter must be
|
11414 |
+
* defined, but all other parameters are optional. When `regex` is true,
|
11415 |
* the search string will be treated as a regular expression, when false
|
11416 |
+
* (default) it will be treated as a straight string. When `smart`
|
11417 |
* DataTables will use it's smart filtering methods (to word match at
|
11418 |
* any point in the data), when false this will not be done.
|
11419 |
* @namespace
|
11420 |
* @extends DataTable.models.oSearch
|
11421 |
+
*
|
11422 |
* @dtopt Options
|
11423 |
+
* @name DataTable.defaults.search
|
11424 |
+
*
|
11425 |
* @example
|
11426 |
* $(document).ready( function() {
|
11427 |
* $('#example').dataTable( {
|
11428 |
+
* "search": {"search": "Initial search"}
|
11429 |
* } );
|
11430 |
* } )
|
11431 |
*/
|
11433 |
|
11434 |
|
11435 |
/**
|
11436 |
+
* __Deprecated__ The functionality provided by this parameter has now been
|
11437 |
+
* superseded by that provided through `ajax`, which should be used instead.
|
11438 |
+
*
|
11439 |
+
* By default DataTables will look for the property `data` (or `aaData` for
|
11440 |
+
* compatibility with DataTables 1.9-) when obtaining data from an Ajax
|
11441 |
+
* source or for server-side processing - this parameter allows that
|
11442 |
+
* property to be changed. You can use Javascript dotted object notation to
|
11443 |
+
* get a data source for multiple levels of nesting.
|
11444 |
* @type string
|
11445 |
+
* @default data
|
11446 |
+
*
|
11447 |
* @dtopt Options
|
11448 |
* @dtopt Server-side
|
11449 |
+
* @name DataTable.defaults.ajaxDataProp
|
11450 |
+
*
|
11451 |
+
* @deprecated 1.10. Please use `ajax` for this functionality now.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11452 |
*/
|
11453 |
+
"sAjaxDataProp": "data",
|
11454 |
|
11455 |
|
11456 |
/**
|
11457 |
+
* __Deprecated__ The functionality provided by this parameter has now been
|
11458 |
+
* superseded by that provided through `ajax`, which should be used instead.
|
11459 |
+
*
|
11460 |
+
* You can instruct DataTables to load data from an external
|
11461 |
+
* source using this parameter (use aData if you want to pass data in you
|
11462 |
+
* already have). Simply provide a url a JSON object can be obtained from.
|
11463 |
* @type string
|
11464 |
* @default null
|
11465 |
+
*
|
11466 |
* @dtopt Options
|
11467 |
* @dtopt Server-side
|
11468 |
+
* @name DataTable.defaults.ajaxSource
|
11469 |
+
*
|
11470 |
+
* @deprecated 1.10. Please use `ajax` for this functionality now.
|
|
|
|
|
|
|
|
|
11471 |
*/
|
11472 |
"sAjaxSource": null,
|
11473 |
|
11474 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11475 |
/**
|
11476 |
* This initialisation variable allows you to specify exactly where in the
|
11477 |
* DOM you want DataTables to inject the various controls it adds to the page
|
11479 |
* table). DIV elements (with or without a custom class) can also be added to
|
11480 |
* aid styling. The follow syntax is used:
|
11481 |
* <ul>
|
11482 |
+
* <li>The following options are allowed:
|
11483 |
* <ul>
|
11484 |
+
* <li>'l' - Length changing</li>
|
11485 |
* <li>'f' - Filtering input</li>
|
11486 |
* <li>'t' - The table!</li>
|
11487 |
* <li>'i' - Information</li>
|
11510 |
* </li>
|
11511 |
* </ul>
|
11512 |
* @type string
|
11513 |
+
* @default lfrtip <i>(when `jQueryUI` is false)</i> <b>or</b>
|
11514 |
+
* <"H"lfr>t<"F"ip> <i>(when `jQueryUI` is true)</i>
|
11515 |
+
*
|
11516 |
* @dtopt Options
|
11517 |
+
* @name DataTable.defaults.dom
|
11518 |
+
*
|
11519 |
* @example
|
11520 |
* $(document).ready( function() {
|
11521 |
* $('#example').dataTable( {
|
11522 |
+
* "dom": '<"top"i>rt<"bottom"flp><"clear">'
|
11523 |
* } );
|
11524 |
* } );
|
11525 |
*/
|
11527 |
|
11528 |
|
11529 |
/**
|
11530 |
+
* Search delay option. This will throttle full table searches that use the
|
11531 |
+
* DataTables provided search input element (it does not effect calls to
|
11532 |
+
* `dt-api search()`, providing a delay before the search is made.
|
11533 |
+
* @type integer
|
11534 |
+
* @default 0
|
11535 |
+
*
|
11536 |
* @dtopt Options
|
11537 |
+
* @name DataTable.defaults.searchDelay
|
11538 |
+
*
|
11539 |
* @example
|
11540 |
* $(document).ready( function() {
|
11541 |
* $('#example').dataTable( {
|
11542 |
+
* "searchDelay": 200
|
11543 |
* } );
|
11544 |
* } )
|
11545 |
*/
|
11546 |
+
"searchDelay": null,
|
11547 |
|
11548 |
|
11549 |
/**
|
11550 |
+
* DataTables features four different built-in options for the buttons to
|
11551 |
+
* display for pagination control:
|
11552 |
+
*
|
11553 |
+
* * `simple` - 'Previous' and 'Next' buttons only
|
11554 |
+
* * 'simple_numbers` - 'Previous' and 'Next' buttons, plus page numbers
|
11555 |
+
* * `full` - 'First', 'Previous', 'Next' and 'Last' buttons
|
11556 |
+
* * `full_numbers` - 'First', 'Previous', 'Next' and 'Last' buttons, plus
|
11557 |
+
* page numbers
|
11558 |
+
*
|
11559 |
+
* Further methods can be added using {@link DataTable.ext.oPagination}.
|
11560 |
* @type string
|
11561 |
+
* @default simple_numbers
|
11562 |
+
*
|
11563 |
+
* @dtopt Options
|
11564 |
+
* @name DataTable.defaults.pagingType
|
11565 |
+
*
|
11566 |
+
* @example
|
11567 |
+
* $(document).ready( function() {
|
11568 |
+
* $('#example').dataTable( {
|
11569 |
+
* "pagingType": "full_numbers"
|
11570 |
+
* } );
|
11571 |
+
* } )
|
11572 |
+
*/
|
11573 |
+
"sPaginationType": "simple_numbers",
|
11574 |
+
|
11575 |
+
|
11576 |
+
/**
|
11577 |
+
* Enable horizontal scrolling. When a table is too wide to fit into a
|
11578 |
+
* certain layout, or you have a large number of columns in the table, you
|
11579 |
+
* can enable x-scrolling to show the table in a viewport, which can be
|
11580 |
+
* scrolled. This property can be `true` which will allow the table to
|
11581 |
+
* scroll horizontally when needed, or any CSS unit, or a number (in which
|
11582 |
+
* case it will be treated as a pixel measurement). Setting as simply `true`
|
11583 |
+
* is recommended.
|
11584 |
+
* @type boolean|string
|
11585 |
* @default <i>blank string - i.e. disabled</i>
|
11586 |
+
*
|
11587 |
* @dtopt Features
|
11588 |
+
* @name DataTable.defaults.scrollX
|
11589 |
+
*
|
11590 |
* @example
|
11591 |
* $(document).ready( function() {
|
11592 |
* $('#example').dataTable( {
|
11593 |
+
* "scrollX": true,
|
11594 |
+
* "scrollCollapse": true
|
11595 |
* } );
|
11596 |
* } );
|
11597 |
*/
|
11607 |
* measurement).
|
11608 |
* @type string
|
11609 |
* @default <i>blank string - i.e. disabled</i>
|
11610 |
+
*
|
11611 |
* @dtopt Options
|
11612 |
+
* @name DataTable.defaults.scrollXInner
|
11613 |
+
*
|
11614 |
* @example
|
11615 |
* $(document).ready( function() {
|
11616 |
* $('#example').dataTable( {
|
11617 |
+
* "scrollX": "100%",
|
11618 |
+
* "scrollXInner": "110%"
|
11619 |
* } );
|
11620 |
* } );
|
11621 |
*/
|
11631 |
* (in which case it will be treated as a pixel measurement).
|
11632 |
* @type string
|
11633 |
* @default <i>blank string - i.e. disabled</i>
|
11634 |
+
*
|
11635 |
* @dtopt Features
|
11636 |
+
* @name DataTable.defaults.scrollY
|
11637 |
+
*
|
11638 |
* @example
|
11639 |
* $(document).ready( function() {
|
11640 |
* $('#example').dataTable( {
|
11641 |
+
* "scrollY": "200px",
|
11642 |
+
* "paginate": false
|
11643 |
* } );
|
11644 |
* } );
|
11645 |
*/
|
11647 |
|
11648 |
|
11649 |
/**
|
11650 |
+
* __Deprecated__ The functionality provided by this parameter has now been
|
11651 |
+
* superseded by that provided through `ajax`, which should be used instead.
|
11652 |
+
*
|
11653 |
* Set the HTTP method that is used to make the Ajax call for server-side
|
11654 |
* processing or Ajax sourced data.
|
11655 |
* @type string
|
11656 |
* @default GET
|
11657 |
+
*
|
11658 |
* @dtopt Options
|
11659 |
* @dtopt Server-side
|
11660 |
+
* @name DataTable.defaults.serverMethod
|
11661 |
+
*
|
11662 |
+
* @deprecated 1.10. Please use `ajax` for this functionality now.
|
|
|
|
|
|
|
|
|
|
|
|
|
11663 |
*/
|
11664 |
+
"sServerMethod": "GET",
|
11665 |
+
|
11666 |
+
|
11667 |
+
/**
|
11668 |
+
* DataTables makes use of renderers when displaying HTML elements for
|
11669 |
+
* a table. These renderers can be added or modified by plug-ins to
|
11670 |
+
* generate suitable mark-up for a site. For example the Bootstrap
|
11671 |
+
* integration plug-in for DataTables uses a paging button renderer to
|
11672 |
+
* display pagination buttons in the mark-up required by Bootstrap.
|
11673 |
+
*
|
11674 |
+
* For further information about the renderers available see
|
11675 |
+
* DataTable.ext.renderer
|
11676 |
+
* @type string|object
|
11677 |
+
* @default null
|
11678 |
+
*
|
11679 |
+
* @name DataTable.defaults.renderer
|
11680 |
+
*
|
11681 |
+
*/
|
11682 |
+
"renderer": null
|
11683 |
};
|
11684 |
|
11685 |
+
_fnHungarianMap( DataTable.defaults );
|
11686 |
|
11687 |
|
11688 |
+
|
11689 |
+
/*
|
11690 |
+
* Developer note - See note in model.defaults.js about the use of Hungarian
|
11691 |
+
* notation and camel case.
|
11692 |
+
*/
|
11693 |
+
|
11694 |
/**
|
11695 |
* Column options that can be given to DataTables at initialisation time.
|
11696 |
* @namespace
|
11697 |
*/
|
11698 |
+
DataTable.defaults.column = {
|
11699 |
+
/**
|
11700 |
+
* Define which column(s) an order will occur on for this column. This
|
11701 |
+
* allows a column's ordering to take multiple columns into account when
|
11702 |
+
* doing a sort or use the data from a different column. For example first
|
11703 |
+
* name / last name columns make sense to do a multi-column sort over the
|
11704 |
+
* two columns.
|
11705 |
+
* @type array|int
|
11706 |
* @default null <i>Takes the value of the column index automatically</i>
|
11707 |
+
*
|
11708 |
+
* @name DataTable.defaults.column.orderData
|
11709 |
* @dtopt Columns
|
11710 |
+
*
|
11711 |
* @example
|
11712 |
+
* // Using `columnDefs`
|
11713 |
* $(document).ready( function() {
|
11714 |
* $('#example').dataTable( {
|
11715 |
+
* "columnDefs": [
|
11716 |
+
* { "orderData": [ 0, 1 ], "targets": [ 0 ] },
|
11717 |
+
* { "orderData": [ 1, 0 ], "targets": [ 1 ] },
|
11718 |
+
* { "orderData": 2, "targets": [ 2 ] }
|
11719 |
* ]
|
11720 |
* } );
|
11721 |
* } );
|
11722 |
+
*
|
11723 |
* @example
|
11724 |
+
* // Using `columns`
|
11725 |
* $(document).ready( function() {
|
11726 |
* $('#example').dataTable( {
|
11727 |
+
* "columns": [
|
11728 |
+
* { "orderData": [ 0, 1 ] },
|
11729 |
+
* { "orderData": [ 1, 0 ] },
|
11730 |
+
* { "orderData": 2 },
|
11731 |
* null,
|
11732 |
* null
|
11733 |
* ]
|
11735 |
* } );
|
11736 |
*/
|
11737 |
"aDataSort": null,
|
11738 |
+
"iDataSort": -1,
|
11739 |
|
11740 |
|
11741 |
/**
|
11742 |
+
* You can control the default ordering direction, and even alter the
|
11743 |
+
* behaviour of the sort handler (i.e. only allow ascending ordering etc)
|
11744 |
+
* using this parameter.
|
11745 |
* @type array
|
11746 |
* @default [ 'asc', 'desc' ]
|
11747 |
+
*
|
11748 |
+
* @name DataTable.defaults.column.orderSequence
|
11749 |
* @dtopt Columns
|
11750 |
+
*
|
11751 |
* @example
|
11752 |
+
* // Using `columnDefs`
|
11753 |
* $(document).ready( function() {
|
11754 |
* $('#example').dataTable( {
|
11755 |
+
* "columnDefs": [
|
11756 |
+
* { "orderSequence": [ "asc" ], "targets": [ 1 ] },
|
11757 |
+
* { "orderSequence": [ "desc", "asc", "asc" ], "targets": [ 2 ] },
|
11758 |
+
* { "orderSequence": [ "desc" ], "targets": [ 3 ] }
|
11759 |
* ]
|
11760 |
* } );
|
11761 |
* } );
|
11762 |
+
*
|
11763 |
* @example
|
11764 |
+
* // Using `columns`
|
11765 |
* $(document).ready( function() {
|
11766 |
* $('#example').dataTable( {
|
11767 |
+
* "columns": [
|
11768 |
* null,
|
11769 |
+
* { "orderSequence": [ "asc" ] },
|
11770 |
+
* { "orderSequence": [ "desc", "asc", "asc" ] },
|
11771 |
+
* { "orderSequence": [ "desc" ] },
|
11772 |
* null
|
11773 |
* ]
|
11774 |
* } );
|
11781 |
* Enable or disable filtering on the data in this column.
|
11782 |
* @type boolean
|
11783 |
* @default true
|
11784 |
+
*
|
11785 |
+
* @name DataTable.defaults.column.searchable
|
11786 |
* @dtopt Columns
|
11787 |
+
*
|
11788 |
* @example
|
11789 |
+
* // Using `columnDefs`
|
11790 |
* $(document).ready( function() {
|
11791 |
* $('#example').dataTable( {
|
11792 |
+
* "columnDefs": [
|
11793 |
+
* { "searchable": false, "targets": [ 0 ] }
|
11794 |
* ] } );
|
11795 |
* } );
|
11796 |
+
*
|
11797 |
* @example
|
11798 |
+
* // Using `columns`
|
11799 |
* $(document).ready( function() {
|
11800 |
* $('#example').dataTable( {
|
11801 |
+
* "columns": [
|
11802 |
+
* { "searchable": false },
|
11803 |
* null,
|
11804 |
* null,
|
11805 |
* null,
|
11811 |
|
11812 |
|
11813 |
/**
|
11814 |
+
* Enable or disable ordering on this column.
|
11815 |
* @type boolean
|
11816 |
* @default true
|
11817 |
+
*
|
11818 |
+
* @name DataTable.defaults.column.orderable
|
11819 |
* @dtopt Columns
|
11820 |
+
*
|
11821 |
* @example
|
11822 |
+
* // Using `columnDefs`
|
11823 |
* $(document).ready( function() {
|
11824 |
* $('#example').dataTable( {
|
11825 |
+
* "columnDefs": [
|
11826 |
+
* { "orderable": false, "targets": [ 0 ] }
|
11827 |
* ] } );
|
11828 |
* } );
|
11829 |
+
*
|
11830 |
* @example
|
11831 |
+
* // Using `columns`
|
11832 |
* $(document).ready( function() {
|
11833 |
* $('#example').dataTable( {
|
11834 |
+
* "columns": [
|
11835 |
+
* { "orderable": false },
|
11836 |
* null,
|
11837 |
* null,
|
11838 |
* null,
|
11843 |
"bSortable": true,
|
11844 |
|
11845 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11846 |
/**
|
11847 |
* Enable or disable the display of this column.
|
11848 |
* @type boolean
|
11849 |
* @default true
|
11850 |
+
*
|
11851 |
+
* @name DataTable.defaults.column.visible
|
11852 |
* @dtopt Columns
|
11853 |
+
*
|
11854 |
* @example
|
11855 |
+
* // Using `columnDefs`
|
11856 |
* $(document).ready( function() {
|
11857 |
* $('#example').dataTable( {
|
11858 |
+
* "columnDefs": [
|
11859 |
+
* { "visible": false, "targets": [ 0 ] }
|
11860 |
* ] } );
|
11861 |
* } );
|
11862 |
+
*
|
11863 |
* @example
|
11864 |
+
* // Using `columns`
|
11865 |
* $(document).ready( function() {
|
11866 |
* $('#example').dataTable( {
|
11867 |
+
* "columns": [
|
11868 |
+
* { "visible": false },
|
11869 |
* null,
|
11870 |
* null,
|
11871 |
* null,
|
11874 |
* } );
|
11875 |
*/
|
11876 |
"bVisible": true,
|
11877 |
+
|
11878 |
+
|
11879 |
/**
|
11880 |
* Developer definable function that is called whenever a cell is created (Ajax source,
|
11881 |
* etc) or processed for input (DOM source). This can be used as a compliment to mRender
|
11882 |
* allowing you to modify the DOM element (add background colour for example) when the
|
11883 |
* element is available.
|
11884 |
* @type function
|
11885 |
+
* @param {element} td The TD node that has been created
|
11886 |
+
* @param {*} cellData The Data for the cell
|
11887 |
+
* @param {array|object} rowData The data for the whole row
|
11888 |
+
* @param {int} row The row index for the aoData data store
|
11889 |
+
* @param {int} col The column index for aoColumns
|
11890 |
+
*
|
11891 |
+
* @name DataTable.defaults.column.createdCell
|
11892 |
* @dtopt Columns
|
11893 |
+
*
|
11894 |
* @example
|
11895 |
* $(document).ready( function() {
|
11896 |
* $('#example').dataTable( {
|
11897 |
+
* "columnDefs": [ {
|
11898 |
+
* "targets": [3],
|
11899 |
+
* "createdCell": function (td, cellData, rowData, row, col) {
|
11900 |
+
* if ( cellData == "1.7" ) {
|
11901 |
+
* $(td).css('color', 'blue')
|
11902 |
* }
|
11903 |
* }
|
11904 |
* } ]
|
11909 |
|
11910 |
|
11911 |
/**
|
11912 |
+
* This parameter has been replaced by `data` in DataTables to ensure naming
|
11913 |
+
* consistency. `dataProp` can still be used, as there is backwards
|
11914 |
+
* compatibility in DataTables for this option, but it is strongly
|
11915 |
+
* recommended that you use `data` in preference to `dataProp`.
|
11916 |
+
* @name DataTable.defaults.column.dataProp
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11917 |
*/
|
|
|
11918 |
|
11919 |
|
11920 |
/**
|
11921 |
+
* This property can be used to read data from any data source property,
|
11922 |
+
* including deeply nested objects / properties. `data` can be given in a
|
11923 |
+
* number of different ways which effect its behaviour:
|
11924 |
+
*
|
11925 |
+
* * `integer` - treated as an array index for the data source. This is the
|
11926 |
+
* default that DataTables uses (incrementally increased for each column).
|
11927 |
+
* * `string` - read an object property from the data source. There are
|
11928 |
+
* three 'special' options that can be used in the string to alter how
|
11929 |
+
* DataTables reads the data from the source object:
|
11930 |
+
* * `.` - Dotted Javascript notation. Just as you use a `.` in
|
11931 |
+
* Javascript to read from nested objects, so to can the options
|
11932 |
+
* specified in `data`. For example: `browser.version` or
|
11933 |
+
* `browser.name`. If your object parameter name contains a period, use
|
11934 |
+
* `\\` to escape it - i.e. `first\\.name`.
|
11935 |
+
* * `[]` - Array notation. DataTables can automatically combine data
|
11936 |
+
* from and array source, joining the data with the characters provided
|
11937 |
+
* between the two brackets. For example: `name[, ]` would provide a
|
11938 |
+
* comma-space separated list from the source array. If no characters
|
11939 |
+
* are provided between the brackets, the original array source is
|
11940 |
+
* returned.
|
11941 |
+
* * `()` - Function notation. Adding `()` to the end of a parameter will
|
11942 |
+
* execute a function of the name given. For example: `browser()` for a
|
11943 |
+
* simple function on the data source, `browser.version()` for a
|
11944 |
+
* function in a nested property or even `browser().version` to get an
|
11945 |
+
* object property if the function called returns an object. Note that
|
11946 |
+
* function notation is recommended for use in `render` rather than
|
11947 |
+
* `data` as it is much simpler to use as a renderer.
|
11948 |
+
* * `null` - use the original data source for the row rather than plucking
|
11949 |
+
* data directly from it. This action has effects on two other
|
11950 |
+
* initialisation options:
|
11951 |
+
* * `defaultContent` - When null is given as the `data` option and
|
11952 |
+
* `defaultContent` is specified for the column, the value defined by
|
11953 |
+
* `defaultContent` will be used for the cell.
|
11954 |
+
* * `render` - When null is used for the `data` option and the `render`
|
11955 |
+
* option is specified for the column, the whole data source for the
|
11956 |
+
* row is used for the renderer.
|
11957 |
+
* * `function` - the function given will be executed whenever DataTables
|
11958 |
+
* needs to set or get the data for a cell in the column. The function
|
11959 |
+
* takes three parameters:
|
11960 |
+
* * Parameters:
|
11961 |
+
* * `{array|object}` The data source for the row
|
11962 |
+
* * `{string}` The type call data requested - this will be 'set' when
|
11963 |
+
* setting data or 'filter', 'display', 'type', 'sort' or undefined
|
11964 |
+
* when gathering data. Note that when `undefined` is given for the
|
11965 |
+
* type DataTables expects to get the raw data for the object back<
|
11966 |
+
* * `{*}` Data to set when the second parameter is 'set'.
|
11967 |
+
* * Return:
|
11968 |
+
* * The return value from the function is not required when 'set' is
|
11969 |
+
* the type of call, but otherwise the return is what will be used
|
11970 |
+
* for the data requested.
|
11971 |
+
*
|
11972 |
+
* Note that `data` is a getter and setter option. If you just require
|
11973 |
+
* formatting of data for output, you will likely want to use `render` which
|
11974 |
+
* is simply a getter and thus simpler to use.
|
11975 |
+
*
|
11976 |
+
* Note that prior to DataTables 1.9.2 `data` was called `mDataProp`. The
|
11977 |
+
* name change reflects the flexibility of this property and is consistent
|
11978 |
+
* with the naming of mRender. If 'mDataProp' is given, then it will still
|
11979 |
+
* be used by DataTables, as it automatically maps the old name to the new
|
11980 |
+
* if required.
|
11981 |
+
*
|
11982 |
+
* @type string|int|function|null
|
11983 |
+
* @default null <i>Use automatically calculated column index</i>
|
11984 |
+
*
|
11985 |
+
* @name DataTable.defaults.column.data
|
11986 |
* @dtopt Columns
|
11987 |
+
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11988 |
* @example
|
11989 |
+
* // Read table data from objects
|
11990 |
+
* // JSON structure for each row:
|
11991 |
+
* // {
|
11992 |
+
* // "engine": {value},
|
11993 |
+
* // "browser": {value},
|
11994 |
+
* // "platform": {value},
|
11995 |
+
* // "version": {value},
|
11996 |
+
* // "grade": {value}
|
11997 |
+
* // }
|
11998 |
* $(document).ready( function() {
|
11999 |
* $('#example').dataTable( {
|
12000 |
+
* "ajaxSource": "sources/objects.txt",
|
12001 |
+
* "columns": [
|
12002 |
+
* { "data": "engine" },
|
12003 |
+
* { "data": "browser" },
|
12004 |
+
* { "data": "platform" },
|
12005 |
+
* { "data": "version" },
|
12006 |
+
* { "data": "grade" }
|
12007 |
* ]
|
12008 |
* } );
|
12009 |
+
* } );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12010 |
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12011 |
* @example
|
12012 |
+
* // Read information from deeply nested objects
|
12013 |
+
* // JSON structure for each row:
|
12014 |
+
* // {
|
12015 |
+
* // "engine": {value},
|
12016 |
+
* // "browser": {value},
|
12017 |
+
* // "platform": {
|
12018 |
+
* // "inner": {value}
|
12019 |
+
* // },
|
12020 |
+
* // "details": [
|
12021 |
+
* // {value}, {value}
|
12022 |
+
* // ]
|
12023 |
+
* // }
|
12024 |
* $(document).ready( function() {
|
12025 |
+
* $('#example').dataTable( {
|
12026 |
+
* "ajaxSource": "sources/deep.txt",
|
12027 |
+
* "columns": [
|
12028 |
+
* { "data": "engine" },
|
12029 |
+
* { "data": "browser" },
|
12030 |
+
* { "data": "platform.inner" },
|
12031 |
+
* { "data": "platform.details.0" },
|
12032 |
+
* { "data": "platform.details.1" }
|
12033 |
* ]
|
12034 |
* } );
|
12035 |
* } );
|
12036 |
+
*
|
12037 |
* @example
|
12038 |
+
* // Using `data` as a function to provide different information for
|
12039 |
* // sorting, filtering and display. In this case, currency (price)
|
12040 |
* $(document).ready( function() {
|
12041 |
+
* $('#example').dataTable( {
|
12042 |
+
* "columnDefs": [ {
|
12043 |
+
* "targets": [ 0 ],
|
12044 |
+
* "data": function ( source, type, val ) {
|
12045 |
* if (type === 'set') {
|
12046 |
* source.price = val;
|
12047 |
* // Store the computed dislay and filter values for efficiency
|
12061 |
* } ]
|
12062 |
* } );
|
12063 |
* } );
|
12064 |
+
*
|
12065 |
+
* @example
|
12066 |
+
* // Using default content
|
12067 |
+
* $(document).ready( function() {
|
12068 |
+
* $('#example').dataTable( {
|
12069 |
+
* "columnDefs": [ {
|
12070 |
+
* "targets": [ 0 ],
|
12071 |
+
* "data": null,
|
12072 |
+
* "defaultContent": "Click to edit"
|
12073 |
+
* } ]
|
12074 |
+
* } );
|
12075 |
+
* } );
|
12076 |
+
*
|
12077 |
+
* @example
|
12078 |
+
* // Using array notation - outputting a list from an array
|
12079 |
+
* $(document).ready( function() {
|
12080 |
+
* $('#example').dataTable( {
|
12081 |
+
* "columnDefs": [ {
|
12082 |
+
* "targets": [ 0 ],
|
12083 |
+
* "data": "name[, ]"
|
12084 |
+
* } ]
|
12085 |
+
* } );
|
12086 |
+
* } );
|
12087 |
+
*
|
12088 |
*/
|
12089 |
"mData": null,
|
12090 |
|
12091 |
|
12092 |
/**
|
12093 |
+
* This property is the rendering partner to `data` and it is suggested that
|
12094 |
+
* when you want to manipulate data for display (including filtering,
|
12095 |
+
* sorting etc) without altering the underlying data for the table, use this
|
12096 |
+
* property. `render` can be considered to be the the read only companion to
|
12097 |
+
* `data` which is read / write (then as such more complex). Like `data`
|
12098 |
+
* this option can be given in a number of different ways to effect its
|
12099 |
+
* behaviour:
|
12100 |
+
*
|
12101 |
+
* * `integer` - treated as an array index for the data source. This is the
|
12102 |
+
* default that DataTables uses (incrementally increased for each column).
|
12103 |
+
* * `string` - read an object property from the data source. There are
|
12104 |
+
* three 'special' options that can be used in the string to alter how
|
12105 |
+
* DataTables reads the data from the source object:
|
12106 |
+
* * `.` - Dotted Javascript notation. Just as you use a `.` in
|
12107 |
+
* Javascript to read from nested objects, so to can the options
|
12108 |
+
* specified in `data`. For example: `browser.version` or
|
12109 |
+
* `browser.name`. If your object parameter name contains a period, use
|
12110 |
+
* `\\` to escape it - i.e. `first\\.name`.
|
12111 |
+
* * `[]` - Array notation. DataTables can automatically combine data
|
12112 |
+
* from and array source, joining the data with the characters provided
|
12113 |
+
* between the two brackets. For example: `name[, ]` would provide a
|
12114 |
+
* comma-space separated list from the source array. If no characters
|
12115 |
+
* are provided between the brackets, the original array source is
|
12116 |
+
* returned.
|
12117 |
+
* * `()` - Function notation. Adding `()` to the end of a parameter will
|
12118 |
+
* execute a function of the name given. For example: `browser()` for a
|
12119 |
+
* simple function on the data source, `browser.version()` for a
|
12120 |
+
* function in a nested property or even `browser().version` to get an
|
12121 |
+
* object property if the function called returns an object.
|
12122 |
+
* * `object` - use different data for the different data types requested by
|
12123 |
+
* DataTables ('filter', 'display', 'type' or 'sort'). The property names
|
12124 |
+
* of the object is the data type the property refers to and the value can
|
12125 |
+
* defined using an integer, string or function using the same rules as
|
12126 |
+
* `render` normally does. Note that an `_` option _must_ be specified.
|
12127 |
+
* This is the default value to use if you haven't specified a value for
|
12128 |
+
* the data type requested by DataTables.
|
12129 |
+
* * `function` - the function given will be executed whenever DataTables
|
12130 |
+
* needs to set or get the data for a cell in the column. The function
|
12131 |
+
* takes three parameters:
|
12132 |
+
* * Parameters:
|
12133 |
+
* * {array|object} The data source for the row (based on `data`)
|
12134 |
+
* * {string} The type call data requested - this will be 'filter',
|
12135 |
+
* 'display', 'type' or 'sort'.
|
12136 |
+
* * {array|object} The full data source for the row (not based on
|
12137 |
+
* `data`)
|
12138 |
+
* * Return:
|
12139 |
+
* * The return value from the function is what will be used for the
|
12140 |
+
* data requested.
|
12141 |
+
*
|
12142 |
+
* @type string|int|function|object|null
|
12143 |
+
* @default null Use the data source value.
|
12144 |
+
*
|
12145 |
+
* @name DataTable.defaults.column.render
|
12146 |
* @dtopt Columns
|
12147 |
+
*
|
12148 |
* @example
|
12149 |
* // Create a comma separated list from an array of objects
|
12150 |
* $(document).ready( function() {
|
12151 |
+
* $('#example').dataTable( {
|
12152 |
+
* "ajaxSource": "sources/deep.txt",
|
12153 |
+
* "columns": [
|
12154 |
+
* { "data": "engine" },
|
12155 |
+
* { "data": "browser" },
|
12156 |
* {
|
12157 |
+
* "data": "platform",
|
12158 |
+
* "render": "[, ].name"
|
12159 |
* }
|
12160 |
* ]
|
12161 |
* } );
|
12162 |
* } );
|
12163 |
+
*
|
12164 |
+
* @example
|
12165 |
+
* // Execute a function to obtain data
|
12166 |
+
* $(document).ready( function() {
|
12167 |
+
* $('#example').dataTable( {
|
12168 |
+
* "columnDefs": [ {
|
12169 |
+
* "targets": [ 0 ],
|
12170 |
+
* "data": null, // Use the full data source object for the renderer's source
|
12171 |
+
* "render": "browserName()"
|
12172 |
+
* } ]
|
12173 |
+
* } );
|
12174 |
+
* } );
|
12175 |
+
*
|
12176 |
+
* @example
|
12177 |
+
* // As an object, extracting different data for the different types
|
12178 |
+
* // This would be used with a data source such as:
|
12179 |
+
* // { "phone": 5552368, "phone_filter": "5552368 555-2368", "phone_display": "555-2368" }
|
12180 |
+
* // Here the `phone` integer is used for sorting and type detection, while `phone_filter`
|
12181 |
+
* // (which has both forms) is used for filtering for if a user inputs either format, while
|
12182 |
+
* // the formatted phone number is the one that is shown in the table.
|
12183 |
+
* $(document).ready( function() {
|
12184 |
+
* $('#example').dataTable( {
|
12185 |
+
* "columnDefs": [ {
|
12186 |
+
* "targets": [ 0 ],
|
12187 |
+
* "data": null, // Use the full data source object for the renderer's source
|
12188 |
+
* "render": {
|
12189 |
+
* "_": "phone",
|
12190 |
+
* "filter": "phone_filter",
|
12191 |
+
* "display": "phone_display"
|
12192 |
+
* }
|
12193 |
+
* } ]
|
12194 |
+
* } );
|
12195 |
+
* } );
|
12196 |
+
*
|
12197 |
* @example
|
12198 |
* // Use as a function to create a link from the data source
|
12199 |
* $(document).ready( function() {
|
12200 |
+
* $('#example').dataTable( {
|
12201 |
+
* "columnDefs": [ {
|
12202 |
+
* "targets": [ 0 ],
|
12203 |
+
* "data": "download_link",
|
12204 |
+
* "render": function ( data, type, full ) {
|
|
|
12205 |
* return '<a href="'+data+'">Download</a>';
|
12206 |
* }
|
12207 |
+
* } ]
|
12208 |
* } );
|
12209 |
* } );
|
12210 |
*/
|
12217 |
* to act as a header for a row (you may wish to add scope='row' to the TH elements).
|
12218 |
* @type string
|
12219 |
* @default td
|
12220 |
+
*
|
12221 |
+
* @name DataTable.defaults.column.cellType
|
12222 |
* @dtopt Columns
|
12223 |
+
*
|
12224 |
* @example
|
12225 |
* // Make the first column use TH cells
|
12226 |
* $(document).ready( function() {
|
12227 |
+
* $('#example').dataTable( {
|
12228 |
+
* "columnDefs": [ {
|
12229 |
+
* "targets": [ 0 ],
|
12230 |
+
* "cellType": "th"
|
12231 |
* } ]
|
12232 |
* } );
|
12233 |
* } );
|
12239 |
* Class to give to each cell in this column.
|
12240 |
* @type string
|
12241 |
* @default <i>Empty string</i>
|
12242 |
+
*
|
12243 |
+
* @name DataTable.defaults.column.class
|
12244 |
* @dtopt Columns
|
12245 |
+
*
|
12246 |
* @example
|
12247 |
+
* // Using `columnDefs`
|
12248 |
* $(document).ready( function() {
|
12249 |
* $('#example').dataTable( {
|
12250 |
+
* "columnDefs": [
|
12251 |
+
* { "class": "my_class", "targets": [ 0 ] }
|
12252 |
* ]
|
12253 |
* } );
|
12254 |
* } );
|
12255 |
+
*
|
12256 |
* @example
|
12257 |
+
* // Using `columns`
|
12258 |
* $(document).ready( function() {
|
12259 |
* $('#example').dataTable( {
|
12260 |
+
* "columns": [
|
12261 |
+
* { "class": "my_class" },
|
12262 |
* null,
|
12263 |
* null,
|
12264 |
* null,
|
12268 |
* } );
|
12269 |
*/
|
12270 |
"sClass": "",
|
12271 |
+
|
12272 |
/**
|
12273 |
* When DataTables calculates the column widths to assign to each column,
|
12274 |
* it finds the longest string in each column and then constructs a
|
12275 |
* temporary table and reads the widths from that. The problem with this
|
12276 |
+
* is that "mmm" is much wider then "iiii", but the latter is a longer
|
12277 |
* string - thus the calculation can go wrong (doing it properly and putting
|
12278 |
* it into an DOM object and measuring that is horribly(!) slow). Thus as
|
12279 |
* a "work around" we provide this option. It will append its value to the
|
12280 |
* text that is found to be the longest string for the column - i.e. padding.
|
12281 |
+
* Generally you shouldn't need this!
|
|
|
12282 |
* @type string
|
12283 |
* @default <i>Empty string<i>
|
12284 |
+
*
|
12285 |
+
* @name DataTable.defaults.column.contentPadding
|
12286 |
* @dtopt Columns
|
12287 |
+
*
|
12288 |
* @example
|
12289 |
+
* // Using `columns`
|
12290 |
* $(document).ready( function() {
|
12291 |
* $('#example').dataTable( {
|
12292 |
+
* "columns": [
|
12293 |
* null,
|
12294 |
* null,
|
12295 |
* null,
|
12296 |
* {
|
12297 |
+
* "contentPadding": "mmm"
|
12298 |
* }
|
12299 |
* ]
|
12300 |
* } );
|
12305 |
|
12306 |
/**
|
12307 |
* Allows a default value to be given for a column's data, and will be used
|
12308 |
+
* whenever a null data source is encountered (this can be because `data`
|
12309 |
* is set to null, or because the data source itself is null).
|
12310 |
* @type string
|
12311 |
* @default null
|
12312 |
+
*
|
12313 |
+
* @name DataTable.defaults.column.defaultContent
|
12314 |
* @dtopt Columns
|
12315 |
+
*
|
12316 |
* @example
|
12317 |
+
* // Using `columnDefs`
|
12318 |
* $(document).ready( function() {
|
12319 |
* $('#example').dataTable( {
|
12320 |
+
* "columnDefs": [
|
12321 |
* {
|
12322 |
+
* "data": null,
|
12323 |
+
* "defaultContent": "Edit",
|
12324 |
+
* "targets": [ -1 ]
|
12325 |
* }
|
12326 |
* ]
|
12327 |
* } );
|
12328 |
* } );
|
12329 |
+
*
|
12330 |
* @example
|
12331 |
+
* // Using `columns`
|
12332 |
* $(document).ready( function() {
|
12333 |
* $('#example').dataTable( {
|
12334 |
+
* "columns": [
|
12335 |
* null,
|
12336 |
* null,
|
12337 |
* null,
|
12338 |
* {
|
12339 |
+
* "data": null,
|
12340 |
+
* "defaultContent": "Edit"
|
12341 |
* }
|
12342 |
* ]
|
12343 |
* } );
|
12355 |
* client-side, your server-side code does not also need updating).
|
12356 |
* @type string
|
12357 |
* @default <i>Empty string</i>
|
12358 |
+
*
|
12359 |
+
* @name DataTable.defaults.column.name
|
12360 |
* @dtopt Columns
|
12361 |
+
*
|
12362 |
* @example
|
12363 |
+
* // Using `columnDefs`
|
12364 |
* $(document).ready( function() {
|
12365 |
* $('#example').dataTable( {
|
12366 |
+
* "columnDefs": [
|
12367 |
+
* { "name": "engine", "targets": [ 0 ] },
|
12368 |
+
* { "name": "browser", "targets": [ 1 ] },
|
12369 |
+
* { "name": "platform", "targets": [ 2 ] },
|
12370 |
+
* { "name": "version", "targets": [ 3 ] },
|
12371 |
+
* { "name": "grade", "targets": [ 4 ] }
|
12372 |
* ]
|
12373 |
* } );
|
12374 |
* } );
|
12375 |
+
*
|
12376 |
* @example
|
12377 |
+
* // Using `columns`
|
12378 |
* $(document).ready( function() {
|
12379 |
* $('#example').dataTable( {
|
12380 |
+
* "columns": [
|
12381 |
+
* { "name": "engine" },
|
12382 |
+
* { "name": "browser" },
|
12383 |
+
* { "name": "platform" },
|
12384 |
+
* { "name": "version" },
|
12385 |
+
* { "name": "grade" }
|
12386 |
* ]
|
12387 |
* } );
|
12388 |
* } );
|
12391 |
|
12392 |
|
12393 |
/**
|
12394 |
+
* Defines a data source type for the ordering which can be used to read
|
12395 |
* real-time information from the table (updating the internally cached
|
12396 |
+
* version) prior to ordering. This allows ordering to occur on user
|
12397 |
+
* editable elements such as form inputs.
|
12398 |
* @type string
|
12399 |
* @default std
|
12400 |
+
*
|
12401 |
+
* @name DataTable.defaults.column.orderDataType
|
12402 |
* @dtopt Columns
|
12403 |
+
*
|
12404 |
* @example
|
12405 |
+
* // Using `columnDefs`
|
12406 |
* $(document).ready( function() {
|
12407 |
* $('#example').dataTable( {
|
12408 |
+
* "columnDefs": [
|
12409 |
+
* { "orderDataType": "dom-text", "targets": [ 2, 3 ] },
|
12410 |
+
* { "type": "numeric", "targets": [ 3 ] },
|
12411 |
+
* { "orderDataType": "dom-select", "targets": [ 4 ] },
|
12412 |
+
* { "orderDataType": "dom-checkbox", "targets": [ 5 ] }
|
12413 |
* ]
|
12414 |
* } );
|
12415 |
* } );
|
12416 |
+
*
|
12417 |
* @example
|
12418 |
+
* // Using `columns`
|
12419 |
* $(document).ready( function() {
|
12420 |
* $('#example').dataTable( {
|
12421 |
+
* "columns": [
|
12422 |
* null,
|
12423 |
* null,
|
12424 |
+
* { "orderDataType": "dom-text" },
|
12425 |
+
* { "orderDataType": "dom-text", "type": "numeric" },
|
12426 |
+
* { "orderDataType": "dom-select" },
|
12427 |
+
* { "orderDataType": "dom-checkbox" }
|
12428 |
* ]
|
12429 |
* } );
|
12430 |
* } );
|
12435 |
/**
|
12436 |
* The title of this column.
|
12437 |
* @type string
|
12438 |
+
* @default null <i>Derived from the 'TH' value for this column in the
|
12439 |
* original HTML table.</i>
|
12440 |
+
*
|
12441 |
+
* @name DataTable.defaults.column.title
|
12442 |
* @dtopt Columns
|
12443 |
+
*
|
12444 |
* @example
|
12445 |
+
* // Using `columnDefs`
|
12446 |
* $(document).ready( function() {
|
12447 |
* $('#example').dataTable( {
|
12448 |
+
* "columnDefs": [
|
12449 |
+
* { "title": "My column title", "targets": [ 0 ] }
|
12450 |
* ]
|
12451 |
* } );
|
12452 |
* } );
|
12453 |
+
*
|
12454 |
* @example
|
12455 |
+
* // Using `columns`
|
12456 |
* $(document).ready( function() {
|
12457 |
* $('#example').dataTable( {
|
12458 |
+
* "columns": [
|
12459 |
+
* { "title": "My column title" },
|
12460 |
* null,
|
12461 |
* null,
|
12462 |
* null,
|
12469 |
|
12470 |
|
12471 |
/**
|
12472 |
+
* The type allows you to specify how the data for this column will be
|
12473 |
+
* ordered. Four types (string, numeric, date and html (which will strip
|
12474 |
+
* HTML tags before ordering)) are currently available. Note that only date
|
12475 |
+
* formats understood by Javascript's Date() object will be accepted as type
|
12476 |
+
* date. For example: "Mar 26, 2008 5:03 PM". May take the values: 'string',
|
12477 |
+
* 'numeric', 'date' or 'html' (by default). Further types can be adding
|
12478 |
+
* through plug-ins.
|
12479 |
* @type string
|
12480 |
* @default null <i>Auto-detected from raw data</i>
|
12481 |
+
*
|
12482 |
+
* @name DataTable.defaults.column.type
|
12483 |
* @dtopt Columns
|
12484 |
+
*
|
12485 |
* @example
|
12486 |
+
* // Using `columnDefs`
|
12487 |
* $(document).ready( function() {
|
12488 |
* $('#example').dataTable( {
|
12489 |
+
* "columnDefs": [
|
12490 |
+
* { "type": "html", "targets": [ 0 ] }
|
12491 |
* ]
|
12492 |
* } );
|
12493 |
* } );
|
12494 |
+
*
|
12495 |
* @example
|
12496 |
+
* // Using `columns`
|
12497 |
* $(document).ready( function() {
|
12498 |
* $('#example').dataTable( {
|
12499 |
+
* "columns": [
|
12500 |
+
* { "type": "html" },
|
12501 |
* null,
|
12502 |
* null,
|
12503 |
* null,
|
12511 |
|
12512 |
/**
|
12513 |
* Defining the width of the column, this parameter may take any CSS value
|
12514 |
+
* (3em, 20px etc). DataTables applies 'smart' widths to columns which have not
|
12515 |
* been given a specific width through this interface ensuring that the table
|
12516 |
* remains readable.
|
12517 |
* @type string
|
12518 |
* @default null <i>Automatic</i>
|
12519 |
+
*
|
12520 |
+
* @name DataTable.defaults.column.width
|
12521 |
* @dtopt Columns
|
12522 |
+
*
|
12523 |
* @example
|
12524 |
+
* // Using `columnDefs`
|
12525 |
* $(document).ready( function() {
|
12526 |
* $('#example').dataTable( {
|
12527 |
+
* "columnDefs": [
|
12528 |
+
* { "width": "20%", "targets": [ 0 ] }
|
12529 |
* ]
|
12530 |
* } );
|
12531 |
* } );
|
12532 |
+
*
|
12533 |
* @example
|
12534 |
+
* // Using `columns`
|
12535 |
* $(document).ready( function() {
|
12536 |
* $('#example').dataTable( {
|
12537 |
+
* "columns": [
|
12538 |
+
* { "width": "20%" },
|
12539 |
* null,
|
12540 |
* null,
|
12541 |
* null,
|
12547 |
"sWidth": null
|
12548 |
};
|
12549 |
|
12550 |
+
_fnHungarianMap( DataTable.defaults.column );
|
12551 |
+
|
12552 |
|
12553 |
|
12554 |
/**
|
12556 |
* given table, including configuration, data and current application of the
|
12557 |
* table options. DataTables does not have a single instance for each DataTable
|
12558 |
* with the settings attached to that instance, but rather instances of the
|
12559 |
+
* DataTable "class" are created on-the-fly as needed (typically by a
|
12560 |
* $().dataTable() call) and the settings object is then applied to that
|
12561 |
* instance.
|
12562 |
+
*
|
12563 |
+
* Note that this object is related to {@link DataTable.defaults} but this
|
12564 |
* one is the internal data store for DataTables's cache of columns. It should
|
12565 |
* NOT be manipulated outside of DataTables. Any configuration should be done
|
12566 |
* through the initialisation options.
|
12568 |
* @todo Really should attach the settings object to individual instances so we
|
12569 |
* don't need to create new instances on each $().dataTable() call (if the
|
12570 |
* table already exists). It would also save passing oSettings around and
|
12571 |
+
* into every single function. However, this is a very significant
|
12572 |
* architecture change for DataTables and will almost certainly break
|
12573 |
* backwards compatibility with older installations. This is something that
|
12574 |
* will be done in 2.0.
|
12579 |
* @namespace
|
12580 |
*/
|
12581 |
"oFeatures": {
|
12582 |
+
|
12583 |
/**
|
12584 |
* Flag to say if DataTables should automatically try to calculate the
|
12585 |
* optimum table and columns widths (true) or not (false).
|
12599 |
* @type boolean
|
12600 |
*/
|
12601 |
"bDeferRender": null,
|
12602 |
+
|
12603 |
/**
|
12604 |
* Enable filtering on the table or not. Note that if this is disabled
|
12605 |
* then there is no filtering at all on the table, including fnFilter.
|
12609 |
* @type boolean
|
12610 |
*/
|
12611 |
"bFilter": null,
|
12612 |
+
|
12613 |
/**
|
12614 |
* Table information element (the 'Showing x of y records' div) enable
|
12615 |
* flag.
|
12618 |
* @type boolean
|
12619 |
*/
|
12620 |
"bInfo": null,
|
12621 |
+
|
12622 |
/**
|
12623 |
* Present a user control allowing the end user to change the page size
|
12624 |
* when pagination is enabled.
|
12636 |
* @type boolean
|
12637 |
*/
|
12638 |
"bPaginate": null,
|
12639 |
+
|
12640 |
/**
|
12641 |
* Processing indicator enable flag whenever DataTables is enacting a
|
12642 |
* user request - typically an Ajax request for server-side processing.
|
12645 |
* @type boolean
|
12646 |
*/
|
12647 |
"bProcessing": null,
|
12648 |
+
|
12649 |
/**
|
12650 |
* Server-side processing enabled flag - when enabled DataTables will
|
12651 |
* get all data from the server for every draw - there is no filtering,
|
12655 |
* @type boolean
|
12656 |
*/
|
12657 |
"bServerSide": null,
|
12658 |
+
|
12659 |
/**
|
12660 |
* Sorting enablement flag.
|
12661 |
* Note that this parameter will be set by the initialisation routine. To
|
12663 |
* @type boolean
|
12664 |
*/
|
12665 |
"bSort": null,
|
12666 |
+
|
12667 |
+
/**
|
12668 |
+
* Multi-column sorting
|
12669 |
+
* Note that this parameter will be set by the initialisation routine. To
|
12670 |
+
* set a default use {@link DataTable.defaults}.
|
12671 |
+
* @type boolean
|
12672 |
+
*/
|
12673 |
+
"bSortMulti": null,
|
12674 |
+
|
12675 |
/**
|
12676 |
* Apply a class to the columns which are being sorted to provide a
|
12677 |
* visual highlight or not. This can slow things down when enabled since
|
12681 |
* @type boolean
|
12682 |
*/
|
12683 |
"bSortClasses": null,
|
12684 |
+
|
12685 |
/**
|
12686 |
* State saving enablement flag.
|
12687 |
* Note that this parameter will be set by the initialisation routine. To
|
12690 |
*/
|
12691 |
"bStateSave": null
|
12692 |
},
|
12693 |
+
|
12694 |
|
12695 |
/**
|
12696 |
* Scrolling settings for a table.
|
12697 |
* @namespace
|
12698 |
*/
|
12699 |
"oScroll": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12700 |
/**
|
12701 |
* When the table is shorter in height than sScrollY, collapse the
|
12702 |
* table container down to the height of the table (when true).
|
12705 |
* @type boolean
|
12706 |
*/
|
12707 |
"bCollapse": null,
|
12708 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12709 |
/**
|
12710 |
* Width of the scrollbar for the web-browser's platform. Calculated
|
12711 |
* during table initialisation.
|
12713 |
* @default 0
|
12714 |
*/
|
12715 |
"iBarWidth": 0,
|
12716 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12717 |
/**
|
12718 |
+
* Viewport width for horizontal scrolling. Horizontal scrolling is
|
12719 |
* disabled if an empty string.
|
12720 |
* Note that this parameter will be set by the initialisation routine. To
|
12721 |
* set a default use {@link DataTable.defaults}.
|
12722 |
* @type string
|
12723 |
*/
|
12724 |
"sX": null,
|
12725 |
+
|
12726 |
/**
|
12727 |
* Width to expand the table to when using x-scrolling. Typically you
|
12728 |
* should not need to use this.
|
12732 |
* @deprecated
|
12733 |
*/
|
12734 |
"sXInner": null,
|
12735 |
+
|
12736 |
/**
|
12737 |
* Viewport height for vertical scrolling. Vertical scrolling is disabled
|
12738 |
* if an empty string.
|
12742 |
*/
|
12743 |
"sY": null
|
12744 |
},
|
12745 |
+
|
12746 |
/**
|
12747 |
* Language information for the table.
|
12748 |
* @namespace
|
12750 |
*/
|
12751 |
"oLanguage": {
|
12752 |
/**
|
12753 |
+
* Information callback function. See
|
12754 |
* {@link DataTable.defaults.fnInfoCallback}
|
12755 |
* @type function
|
12756 |
* @default null
|
12757 |
*/
|
12758 |
"fnInfoCallback": null
|
12759 |
},
|
12760 |
+
|
12761 |
/**
|
12762 |
* Browser support parameters
|
12763 |
* @namespace
|
12769 |
* @type boolean
|
12770 |
* @default false
|
12771 |
*/
|
12772 |
+
"bScrollOversize": false,
|
12773 |
+
|
12774 |
+
/**
|
12775 |
+
* Determine if the vertical scrollbar is on the right or left of the
|
12776 |
+
* scrolling container - needed for rtl language layout, although not
|
12777 |
+
* all browsers move the scrollbar (Safari).
|
12778 |
+
* @type boolean
|
12779 |
+
* @default false
|
12780 |
+
*/
|
12781 |
+
"bScrollbarLeft": false
|
12782 |
},
|
12783 |
+
|
12784 |
+
|
12785 |
+
"ajax": null,
|
12786 |
+
|
12787 |
+
|
12788 |
/**
|
12789 |
+
* Array referencing the nodes which are used for the features. The
|
12790 |
* parameters of this object match what is allowed by sDom - i.e.
|
12791 |
* <ul>
|
12792 |
* <li>'l' - Length changing</li>
|
12800 |
* @default []
|
12801 |
*/
|
12802 |
"aanFeatures": [],
|
12803 |
+
|
12804 |
/**
|
12805 |
* Store data information - see {@link DataTable.models.oRow} for detailed
|
12806 |
* information.
|
12808 |
* @default []
|
12809 |
*/
|
12810 |
"aoData": [],
|
12811 |
+
|
12812 |
/**
|
12813 |
* Array of indexes which are in the current display (after filtering etc)
|
12814 |
* @type array
|
12815 |
* @default []
|
12816 |
*/
|
12817 |
"aiDisplay": [],
|
12818 |
+
|
12819 |
/**
|
12820 |
* Array of indexes for display - no filtering
|
12821 |
* @type array
|
12822 |
* @default []
|
12823 |
*/
|
12824 |
"aiDisplayMaster": [],
|
12825 |
+
|
12826 |
/**
|
12827 |
* Store information about each column that is in use
|
12828 |
* @type array
|
12829 |
* @default []
|
12830 |
*/
|
12831 |
"aoColumns": [],
|
12832 |
+
|
12833 |
/**
|
12834 |
* Store information about the table's header
|
12835 |
* @type array
|
12836 |
* @default []
|
12837 |
*/
|
12838 |
"aoHeader": [],
|
12839 |
+
|
12840 |
/**
|
12841 |
* Store information about the table's footer
|
12842 |
* @type array
|
12843 |
* @default []
|
12844 |
*/
|
12845 |
"aoFooter": [],
|
12846 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12847 |
/**
|
12848 |
+
* Store the applied global search information in case we want to force a
|
12849 |
* research or compare the old search to a new one.
|
12850 |
* Note that this parameter will be set by the initialisation routine. To
|
12851 |
* set a default use {@link DataTable.defaults}.
|
12853 |
* @extends DataTable.models.oSearch
|
12854 |
*/
|
12855 |
"oPreviousSearch": {},
|
12856 |
+
|
12857 |
/**
|
12858 |
+
* Store the applied search for each column - see
|
12859 |
* {@link DataTable.models.oSearch} for the format that is used for the
|
12860 |
* filtering information for each column.
|
12861 |
* @type array
|
12862 |
* @default []
|
12863 |
*/
|
12864 |
"aoPreSearchCols": [],
|
12865 |
+
|
12866 |
/**
|
12867 |
* Sorting that is applied to the table. Note that the inner arrays are
|
12868 |
* used in the following manner:
|
12869 |
* <ul>
|
12870 |
* <li>Index 0 - column number</li>
|
12871 |
* <li>Index 1 - current sorting direction</li>
|
|
|
12872 |
* </ul>
|
12873 |
* Note that this parameter will be set by the initialisation routine. To
|
12874 |
* set a default use {@link DataTable.defaults}.
|
12876 |
* @todo These inner arrays should really be objects
|
12877 |
*/
|
12878 |
"aaSorting": null,
|
12879 |
+
|
12880 |
/**
|
12881 |
* Sorting that is always applied to the table (i.e. prefixed in front of
|
12882 |
* aaSorting).
|
12883 |
* Note that this parameter will be set by the initialisation routine. To
|
12884 |
* set a default use {@link DataTable.defaults}.
|
12885 |
+
* @type array
|
12886 |
+
* @default []
|
12887 |
*/
|
12888 |
+
"aaSortingFixed": [],
|
12889 |
+
|
12890 |
/**
|
12891 |
* Classes to use for the striping of a table.
|
12892 |
* Note that this parameter will be set by the initialisation routine. To
|
12895 |
* @default []
|
12896 |
*/
|
12897 |
"asStripeClasses": null,
|
12898 |
+
|
12899 |
/**
|
12900 |
* If restoring a table - we should restore its striping classes as well
|
12901 |
* @type array
|
12902 |
* @default []
|
12903 |
*/
|
12904 |
"asDestroyStripes": [],
|
12905 |
+
|
12906 |
/**
|
12907 |
+
* If restoring a table - we should restore its width
|
12908 |
* @type int
|
12909 |
* @default 0
|
12910 |
*/
|
12911 |
"sDestroyWidth": 0,
|
12912 |
+
|
12913 |
/**
|
12914 |
* Callback functions array for every time a row is inserted (i.e. on a draw).
|
12915 |
* @type array
|
12916 |
* @default []
|
12917 |
*/
|
12918 |
"aoRowCallback": [],
|
12919 |
+
|
12920 |
/**
|
12921 |
* Callback functions for the header on each draw.
|
12922 |
* @type array
|
12923 |
* @default []
|
12924 |
*/
|
12925 |
"aoHeaderCallback": [],
|
12926 |
+
|
12927 |
/**
|
12928 |
* Callback function for the footer on each draw.
|
12929 |
* @type array
|
12930 |
* @default []
|
12931 |
*/
|
12932 |
"aoFooterCallback": [],
|
12933 |
+
|
12934 |
/**
|
12935 |
* Array of callback functions for draw callback functions
|
12936 |
* @type array
|
12937 |
* @default []
|
12938 |
*/
|
12939 |
"aoDrawCallback": [],
|
12940 |
+
|
12941 |
/**
|
12942 |
* Array of callback functions for row created function
|
12943 |
* @type array
|
12944 |
* @default []
|
12945 |
*/
|
12946 |
"aoRowCreatedCallback": [],
|
12947 |
+
|
12948 |
/**
|
12949 |
+
* Callback functions for just before the table is redrawn. A return of
|
12950 |
* false will be used to cancel the draw.
|
12951 |
* @type array
|
12952 |
* @default []
|
12953 |
*/
|
12954 |
"aoPreDrawCallback": [],
|
12955 |
+
|
12956 |
/**
|
12957 |
* Callback functions for when the table has been initialised.
|
12958 |
* @type array
|
12960 |
*/
|
12961 |
"aoInitComplete": [],
|
12962 |
|
12963 |
+
|
12964 |
/**
|
12965 |
* Callbacks for modifying the settings to be stored for state saving, prior to
|
12966 |
* saving state.
|
12968 |
* @default []
|
12969 |
*/
|
12970 |
"aoStateSaveParams": [],
|
12971 |
+
|
12972 |
/**
|
12973 |
* Callbacks for modifying the settings that have been stored for state saving
|
12974 |
* prior to using the stored values to restore the state.
|
12976 |
* @default []
|
12977 |
*/
|
12978 |
"aoStateLoadParams": [],
|
12979 |
+
|
12980 |
/**
|
12981 |
* Callbacks for operating on the settings object once the saved state has been
|
12982 |
* loaded
|
12984 |
* @default []
|
12985 |
*/
|
12986 |
"aoStateLoaded": [],
|
12987 |
+
|
12988 |
/**
|
12989 |
* Cache the table ID for quick access
|
12990 |
* @type string
|
12991 |
* @default <i>Empty string</i>
|
12992 |
*/
|
12993 |
"sTableId": "",
|
12994 |
+
|
12995 |
/**
|
12996 |
* The TABLE node for the main table
|
12997 |
* @type node
|
12998 |
* @default null
|
12999 |
*/
|
13000 |
"nTable": null,
|
13001 |
+
|
13002 |
/**
|
13003 |
* Permanent ref to the thead element
|
13004 |
* @type node
|
13005 |
* @default null
|
13006 |
*/
|
13007 |
"nTHead": null,
|
13008 |
+
|
13009 |
/**
|
13010 |
* Permanent ref to the tfoot element - if it exists
|
13011 |
* @type node
|
13012 |
* @default null
|
13013 |
*/
|
13014 |
"nTFoot": null,
|
13015 |
+
|
13016 |
/**
|
13017 |
* Permanent ref to the tbody element
|
13018 |
* @type node
|
13019 |
* @default null
|
13020 |
*/
|
13021 |
"nTBody": null,
|
13022 |
+
|
13023 |
/**
|
13024 |
* Cache the wrapper node (contains all DataTables controlled elements)
|
13025 |
* @type node
|
13026 |
* @default null
|
13027 |
*/
|
13028 |
"nTableWrapper": null,
|
13029 |
+
|
13030 |
/**
|
13031 |
+
* Indicate if when using server-side processing the loading of data
|
13032 |
* should be deferred until the second draw.
|
13033 |
* Note that this parameter will be set by the initialisation routine. To
|
13034 |
* set a default use {@link DataTable.defaults}.
|
13036 |
* @default false
|
13037 |
*/
|
13038 |
"bDeferLoading": false,
|
13039 |
+
|
13040 |
/**
|
13041 |
* Indicate if all required information has been read in
|
13042 |
* @type boolean
|
13043 |
* @default false
|
13044 |
*/
|
13045 |
"bInitialised": false,
|
13046 |
+
|
13047 |
/**
|
13048 |
* Information about open rows. Each object in the array has the parameters
|
13049 |
* 'nTr' and 'nParent'
|
13051 |
* @default []
|
13052 |
*/
|
13053 |
"aoOpenRows": [],
|
13054 |
+
|
13055 |
/**
|
13056 |
* Dictate the positioning of DataTables' control elements - see
|
13057 |
* {@link DataTable.model.oInit.sDom}.
|
13061 |
* @default null
|
13062 |
*/
|
13063 |
"sDom": null,
|
13064 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13065 |
/**
|
13066 |
+
* Search delay (in mS)
|
13067 |
+
* @type integer
|
13068 |
+
* @default null
|
|
|
|
|
13069 |
*/
|
13070 |
+
"searchDelay": null,
|
13071 |
+
|
13072 |
/**
|
13073 |
+
* Which type of pagination should be used.
|
13074 |
* Note that this parameter will be set by the initialisation routine. To
|
13075 |
* set a default use {@link DataTable.defaults}.
|
13076 |
* @type string
|
13077 |
+
* @default two_button
|
13078 |
*/
|
13079 |
+
"sPaginationType": "two_button",
|
13080 |
+
|
13081 |
/**
|
13082 |
+
* The state duration (for `stateSave`) in seconds.
|
13083 |
* Note that this parameter will be set by the initialisation routine. To
|
13084 |
* set a default use {@link DataTable.defaults}.
|
13085 |
+
* @type int
|
13086 |
+
* @default 0
|
13087 |
*/
|
13088 |
+
"iStateDuration": 0,
|
13089 |
+
|
13090 |
/**
|
13091 |
+
* Array of callback functions for state saving. Each array element is an
|
13092 |
* object with the following parameters:
|
13093 |
* <ul>
|
13094 |
* <li>function:fn - function to call. Takes two parameters, oSettings
|
13095 |
* and the JSON string to save that has been thus far created. Returns
|
13096 |
+
* a JSON string to be inserted into a json object
|
13097 |
* (i.e. '"param": [ 0, 1, 2]')</li>
|
13098 |
* <li>string:sName - name of callback</li>
|
13099 |
* </ul>
|
13101 |
* @default []
|
13102 |
*/
|
13103 |
"aoStateSave": [],
|
13104 |
+
|
13105 |
/**
|
13106 |
+
* Array of callback functions for state loading. Each array element is an
|
13107 |
* object with the following parameters:
|
13108 |
* <ul>
|
13109 |
+
* <li>function:fn - function to call. Takes two parameters, oSettings
|
13110 |
* and the object stored. May return false to cancel state loading</li>
|
13111 |
* <li>string:sName - name of callback</li>
|
13112 |
* </ul>
|
13114 |
* @default []
|
13115 |
*/
|
13116 |
"aoStateLoad": [],
|
13117 |
+
|
13118 |
+
/**
|
13119 |
+
* State that was saved. Useful for back reference
|
13120 |
+
* @type object
|
13121 |
+
* @default null
|
13122 |
+
*/
|
13123 |
+
"oSavedState": null,
|
13124 |
+
|
13125 |
/**
|
13126 |
+
* State that was loaded. Useful for back reference
|
13127 |
* @type object
|
13128 |
* @default null
|
13129 |
*/
|
13130 |
"oLoadedState": null,
|
13131 |
+
|
13132 |
/**
|
13133 |
* Source url for AJAX data for the table.
|
13134 |
* Note that this parameter will be set by the initialisation routine. To
|
13137 |
* @default null
|
13138 |
*/
|
13139 |
"sAjaxSource": null,
|
13140 |
+
|
13141 |
/**
|
13142 |
* Property from a given object from which to read the table data from. This
|
13143 |
+
* can be an empty string (when not server-side processing), in which case
|
13144 |
* it is assumed an an array is given directly.
|
13145 |
* Note that this parameter will be set by the initialisation routine. To
|
13146 |
* set a default use {@link DataTable.defaults}.
|
13147 |
* @type string
|
13148 |
*/
|
13149 |
"sAjaxDataProp": null,
|
13150 |
+
|
13151 |
/**
|
13152 |
* Note if draw should be blocked while getting data
|
13153 |
* @type boolean
|
13154 |
* @default true
|
13155 |
*/
|
13156 |
"bAjaxDataGet": true,
|
13157 |
+
|
13158 |
/**
|
13159 |
+
* The last jQuery XHR object that was used for server-side data gathering.
|
13160 |
+
* This can be used for working with the XHR information in one of the
|
13161 |
* callbacks
|
13162 |
* @type object
|
13163 |
* @default null
|
13164 |
*/
|
13165 |
"jqXHR": null,
|
13166 |
+
|
13167 |
+
/**
|
13168 |
+
* JSON returned from the server in the last Ajax request
|
13169 |
+
* @type object
|
13170 |
+
* @default undefined
|
13171 |
+
*/
|
13172 |
+
"json": undefined,
|
13173 |
+
|
13174 |
+
/**
|
13175 |
+
* Data submitted as part of the last Ajax request
|
13176 |
+
* @type object
|
13177 |
+
* @default undefined
|
13178 |
+
*/
|
13179 |
+
"oAjaxData": undefined,
|
13180 |
+
|
13181 |
/**
|
13182 |
* Function to get the server-side data.
|
13183 |
* Note that this parameter will be set by the initialisation routine. To
|
13185 |
* @type function
|
13186 |
*/
|
13187 |
"fnServerData": null,
|
13188 |
+
|
13189 |
/**
|
13190 |
+
* Functions which are called prior to sending an Ajax request so extra
|
13191 |
* parameters can easily be sent to the server
|
13192 |
* @type array
|
13193 |
* @default []
|
13194 |
*/
|
13195 |
"aoServerParams": [],
|
13196 |
+
|
13197 |
/**
|
13198 |
+
* Send the XHR HTTP method - GET or POST (could be PUT or DELETE if
|
13199 |
* required).
|
13200 |
* Note that this parameter will be set by the initialisation routine. To
|
13201 |
* set a default use {@link DataTable.defaults}.
|
13202 |
* @type string
|
13203 |
*/
|
13204 |
"sServerMethod": null,
|
13205 |
+
|
13206 |
/**
|
13207 |
* Format numbers for display.
|
13208 |
* Note that this parameter will be set by the initialisation routine. To
|
13210 |
* @type function
|
13211 |
*/
|
13212 |
"fnFormatNumber": null,
|
13213 |
+
|
13214 |
/**
|
13215 |
* List of options that can be used for the user selectable length menu.
|
13216 |
* Note that this parameter will be set by the initialisation routine. To
|
13219 |
* @default []
|
13220 |
*/
|
13221 |
"aLengthMenu": null,
|
13222 |
+
|
13223 |
/**
|
13224 |
* Counter for the draws that the table does. Also used as a tracker for
|
13225 |
* server-side processing
|
13227 |
* @default 0
|
13228 |
*/
|
13229 |
"iDraw": 0,
|
13230 |
+
|
13231 |
/**
|
13232 |
* Indicate if a redraw is being done - useful for Ajax
|
13233 |
* @type boolean
|
13234 |
* @default false
|
13235 |
*/
|
13236 |
"bDrawing": false,
|
13237 |
+
|
13238 |
/**
|
13239 |
* Draw index (iDraw) of the last error when parsing the returned data
|
13240 |
* @type int
|
13241 |
* @default -1
|
13242 |
*/
|
13243 |
"iDrawError": -1,
|
13244 |
+
|
13245 |
/**
|
13246 |
* Paging display length
|
13247 |
* @type int
|
13256 |
*/
|
13257 |
"_iDisplayStart": 0,
|
13258 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13259 |
/**
|
13260 |
* Server-side processing - number of records in the result set
|
13261 |
* (i.e. before filtering), Use fnRecordsTotal rather than
|
13277 |
* @private
|
13278 |
*/
|
13279 |
"_iRecordsDisplay": 0,
|
13280 |
+
|
13281 |
/**
|
13282 |
* Flag to indicate if jQuery UI marking and classes should be used.
|
13283 |
* Note that this parameter will be set by the initialisation routine. To
|
13284 |
* set a default use {@link DataTable.defaults}.
|
13285 |
* @type boolean
|
13286 |
*/
|
13287 |
+
"bJUI": null,
|
13288 |
+
|
13289 |
+
/**
|
13290 |
+
* The classes to use for the table
|
13291 |
+
* @type object
|
13292 |
+
* @default {}
|
13293 |
+
*/
|
13294 |
+
"oClasses": {},
|
13295 |
+
|
13296 |
+
/**
|
13297 |
+
* Flag attached to the settings object so you can check in the draw
|
13298 |
+
* callback if filtering has been done in the draw. Deprecated in favour of
|
13299 |
+
* events.
|
13300 |
+
* @type boolean
|
13301 |
+
* @default false
|
13302 |
+
* @deprecated
|
13303 |
+
*/
|
13304 |
+
"bFiltered": false,
|
13305 |
+
|
13306 |
+
/**
|
13307 |
+
* Flag attached to the settings object so you can check in the draw
|
13308 |
+
* callback if sorting has been done in the draw. Deprecated in favour of
|
13309 |
+
* events.
|
13310 |
+
* @type boolean
|
13311 |
+
* @default false
|
13312 |
+
* @deprecated
|
13313 |
+
*/
|
13314 |
+
"bSorted": false,
|
13315 |
+
|
13316 |
+
/**
|
13317 |
+
* Indicate that if multiple rows are in the header and there is more than
|
13318 |
+
* one unique cell per column, if the top one (true) or bottom one (false)
|
13319 |
+
* should be used for sorting / title by DataTables.
|
13320 |
+
* Note that this parameter will be set by the initialisation routine. To
|
13321 |
+
* set a default use {@link DataTable.defaults}.
|
13322 |
+
* @type boolean
|
13323 |
+
*/
|
13324 |
+
"bSortCellsTop": null,
|
13325 |
+
|
13326 |
+
/**
|
13327 |
+
* Initialisation object that is used for the table
|
13328 |
+
* @type object
|
13329 |
+
* @default null
|
13330 |
+
*/
|
13331 |
+
"oInit": null,
|
13332 |
+
|
13333 |
+
/**
|
13334 |
+
* Destroy callback functions - for plug-ins to attach themselves to the
|
13335 |
+
* destroy so they can clean up markup and events.
|
13336 |
+
* @type array
|
13337 |
+
* @default []
|
13338 |
+
*/
|
13339 |
+
"aoDestroyCallback": [],
|
13340 |
+
|
13341 |
+
|
13342 |
+
/**
|
13343 |
+
* Get the number of records in the current record set, before filtering
|
13344 |
+
* @type function
|
13345 |
+
*/
|
13346 |
+
"fnRecordsTotal": function ()
|
13347 |
+
{
|
13348 |
+
return _fnDataSource( this ) == 'ssp' ?
|
13349 |
+
this._iRecordsTotal * 1 :
|
13350 |
+
this.aiDisplayMaster.length;
|
13351 |
+
},
|
13352 |
+
|
13353 |
+
/**
|
13354 |
+
* Get the number of records in the current record set, after filtering
|
13355 |
+
* @type function
|
13356 |
+
*/
|
13357 |
+
"fnRecordsDisplay": function ()
|
13358 |
+
{
|
13359 |
+
return _fnDataSource( this ) == 'ssp' ?
|
13360 |
+
this._iRecordsDisplay * 1 :
|
13361 |
+
this.aiDisplay.length;
|
13362 |
+
},
|
13363 |
+
|
13364 |
+
/**
|
13365 |
+
* Get the display end point - aiDisplay index
|
13366 |
+
* @type function
|
13367 |
+
*/
|
13368 |
+
"fnDisplayEnd": function ()
|
13369 |
+
{
|
13370 |
+
var
|
13371 |
+
len = this._iDisplayLength,
|
13372 |
+
start = this._iDisplayStart,
|
13373 |
+
calc = start + len,
|
13374 |
+
records = this.aiDisplay.length,
|
13375 |
+
features = this.oFeatures,
|
13376 |
+
paginate = features.bPaginate;
|
13377 |
+
|
13378 |
+
if ( features.bServerSide ) {
|
13379 |
+
return paginate === false || len === -1 ?
|
13380 |
+
start + records :
|
13381 |
+
Math.min( start+len, this._iRecordsDisplay );
|
13382 |
+
}
|
13383 |
+
else {
|
13384 |
+
return ! paginate || calc>records || len===-1 ?
|
13385 |
+
records :
|
13386 |
+
calc;
|
13387 |
+
}
|
13388 |
+
},
|
13389 |
+
|
13390 |
+
/**
|
13391 |
+
* The DataTables object for this table
|
13392 |
+
* @type object
|
13393 |
+
* @default null
|
13394 |
+
*/
|
13395 |
+
"oInstance": null,
|
13396 |
+
|
13397 |
+
/**
|
13398 |
+
* Unique identifier for each instance of the DataTables object. If there
|
13399 |
+
* is an ID on the table node, then it takes that value, otherwise an
|
13400 |
+
* incrementing internal counter is used.
|
13401 |
+
* @type string
|
13402 |
+
* @default null
|
13403 |
+
*/
|
13404 |
+
"sInstance": null,
|
13405 |
+
|
13406 |
+
/**
|
13407 |
+
* tabindex attribute value that is added to DataTables control elements, allowing
|
13408 |
+
* keyboard navigation of the table and its controls.
|
13409 |
+
*/
|
13410 |
+
"iTabIndex": 0,
|
13411 |
+
|
13412 |
+
/**
|
13413 |
+
* DIV container for the footer scrolling table if scrolling
|
13414 |
+
*/
|
13415 |
+
"nScrollHead": null,
|
13416 |
+
|
13417 |
+
/**
|
13418 |
+
* DIV container for the footer scrolling table if scrolling
|
13419 |
+
*/
|
13420 |
+
"nScrollFoot": null,
|
13421 |
+
|
13422 |
+
/**
|
13423 |
+
* Last applied sort
|
13424 |
+
* @type array
|
13425 |
+
* @default []
|
13426 |
+
*/
|
13427 |
+
"aLastSort": [],
|
13428 |
+
|
13429 |
+
/**
|
13430 |
+
* Stored plug-in instances
|
13431 |
+
* @type object
|
13432 |
+
* @default {}
|
13433 |
+
*/
|
13434 |
+
"oPlugins": {}
|
13435 |
+
};
|
13436 |
+
|
13437 |
+
/**
|
13438 |
+
* Extension object for DataTables that is used to provide all extension
|
13439 |
+
* options.
|
13440 |
+
*
|
13441 |
+
* Note that the `DataTable.ext` object is available through
|
13442 |
+
* `jQuery.fn.dataTable.ext` where it may be accessed and manipulated. It is
|
13443 |
+
* also aliased to `jQuery.fn.dataTableExt` for historic reasons.
|
13444 |
+
* @namespace
|
13445 |
+
* @extends DataTable.models.ext
|
13446 |
+
*/
|
13447 |
+
|
13448 |
+
|
13449 |
+
/**
|
13450 |
+
* DataTables extensions
|
13451 |
+
*
|
13452 |
+
* This namespace acts as a collection area for plug-ins that can be used to
|
13453 |
+
* extend DataTables capabilities. Indeed many of the build in methods
|
13454 |
+
* use this method to provide their own capabilities (sorting methods for
|
13455 |
+
* example).
|
13456 |
+
*
|
13457 |
+
* Note that this namespace is aliased to `jQuery.fn.dataTableExt` for legacy
|
13458 |
+
* reasons
|
13459 |
+
*
|
13460 |
+
* @namespace
|
13461 |
+
*/
|
13462 |
+
DataTable.ext = _ext = {
|
13463 |
+
/**
|
13464 |
+
* Buttons. For use with the Buttons extension for DataTables. This is
|
13465 |
+
* defined here so other extensions can define buttons regardless of load
|
13466 |
+
* order. It is _not_ used by DataTables core.
|
13467 |
+
*
|
13468 |
+
* @type object
|
13469 |
+
* @default {}
|
13470 |
+
*/
|
13471 |
+
buttons: {},
|
13472 |
+
|
13473 |
+
|
13474 |
+
/**
|
13475 |
+
* Element class names
|
13476 |
+
*
|
13477 |
+
* @type object
|
13478 |
+
* @default {}
|
13479 |
+
*/
|
13480 |
+
classes: {},
|
13481 |
+
|
13482 |
+
|
13483 |
+
/**
|
13484 |
+
* Error reporting.
|
13485 |
+
*
|
13486 |
+
* How should DataTables report an error. Can take the value 'alert',
|
13487 |
+
* 'throw', 'none' or a function.
|
13488 |
+
*
|
13489 |
+
* @type string|function
|
13490 |
+
* @default alert
|
13491 |
+
*/
|
13492 |
+
errMode: "alert",
|
13493 |
+
|
13494 |
+
|
13495 |
+
/**
|
13496 |
+
* Feature plug-ins.
|
13497 |
+
*
|
13498 |
+
* This is an array of objects which describe the feature plug-ins that are
|
13499 |
+
* available to DataTables. These feature plug-ins are then available for
|
13500 |
+
* use through the `dom` initialisation option.
|
13501 |
+
*
|
13502 |
+
* Each feature plug-in is described by an object which must have the
|
13503 |
+
* following properties:
|
13504 |
+
*
|
13505 |
+
* * `fnInit` - function that is used to initialise the plug-in,
|
13506 |
+
* * `cFeature` - a character so the feature can be enabled by the `dom`
|
13507 |
+
* instillation option. This is case sensitive.
|
13508 |
+
*
|
13509 |
+
* The `fnInit` function has the following input parameters:
|
13510 |
+
*
|
13511 |
+
* 1. `{object}` DataTables settings object: see
|
13512 |
+
* {@link DataTable.models.oSettings}
|
13513 |
+
*
|
13514 |
+
* And the following return is expected:
|
13515 |
+
*
|
13516 |
+
* * {node|null} The element which contains your feature. Note that the
|
13517 |
+
* return may also be void if your plug-in does not require to inject any
|
13518 |
+
* DOM elements into DataTables control (`dom`) - for example this might
|
13519 |
+
* be useful when developing a plug-in which allows table control via
|
13520 |
+
* keyboard entry
|
13521 |
+
*
|
13522 |
+
* @type array
|
13523 |
+
*
|
13524 |
+
* @example
|
13525 |
+
* $.fn.dataTable.ext.features.push( {
|
13526 |
+
* "fnInit": function( oSettings ) {
|
13527 |
+
* return new TableTools( { "oDTSettings": oSettings } );
|
13528 |
+
* },
|
13529 |
+
* "cFeature": "T"
|
13530 |
+
* } );
|
13531 |
+
*/
|
13532 |
+
feature: [],
|
13533 |
+
|
13534 |
+
|
13535 |
+
/**
|
13536 |
+
* Row searching.
|
13537 |
+
*
|
13538 |
+
* This method of searching is complimentary to the default type based
|
13539 |
+
* searching, and a lot more comprehensive as it allows you complete control
|
13540 |
+
* over the searching logic. Each element in this array is a function
|
13541 |
+
* (parameters described below) that is called for every row in the table,
|
13542 |
+
* and your logic decides if it should be included in the searching data set
|
13543 |
+
* or not.
|
13544 |
+
*
|
13545 |
+
* Searching functions have the following input parameters:
|
13546 |
+
*
|
13547 |
+
* 1. `{object}` DataTables settings object: see
|
13548 |
+
* {@link DataTable.models.oSettings}
|
13549 |
+
* 2. `{array|object}` Data for the row to be processed (same as the
|
13550 |
+
* original format that was passed in as the data source, or an array
|
13551 |
+
* from a DOM data source
|
13552 |
+
* 3. `{int}` Row index ({@link DataTable.models.oSettings.aoData}), which
|
13553 |
+
* can be useful to retrieve the `TR` element if you need DOM interaction.
|
13554 |
+
*
|
13555 |
+
* And the following return is expected:
|
13556 |
+
*
|
13557 |
+
* * {boolean} Include the row in the searched result set (true) or not
|
13558 |
+
* (false)
|
13559 |
+
*
|
13560 |
+
* Note that as with the main search ability in DataTables, technically this
|
13561 |
+
* is "filtering", since it is subtractive. However, for consistency in
|
13562 |
+
* naming we call it searching here.
|
13563 |
+
*
|
13564 |
+
* @type array
|
13565 |
+
* @default []
|
13566 |
+
*
|
13567 |
+
* @example
|
13568 |
+
* // The following example shows custom search being applied to the
|
13569 |
+
* // fourth column (i.e. the data[3] index) based on two input values
|
13570 |
+
* // from the end-user, matching the data in a certain range.
|
13571 |
+
* $.fn.dataTable.ext.search.push(
|
13572 |
+
* function( settings, data, dataIndex ) {
|
13573 |
+
* var min = document.getElementById('min').value * 1;
|
13574 |
+
* var max = document.getElementById('max').value * 1;
|
13575 |
+
* var version = data[3] == "-" ? 0 : data[3]*1;
|
13576 |
+
*
|
13577 |
+
* if ( min == "" && max == "" ) {
|
13578 |
+
* return true;
|
13579 |
+
* }
|
13580 |
+
* else if ( min == "" && version < max ) {
|
13581 |
+
* return true;
|
13582 |
+
* }
|
13583 |
+
* else if ( min < version && "" == max ) {
|
13584 |
+
* return true;
|
13585 |
+
* }
|
13586 |
+
* else if ( min < version && version < max ) {
|
13587 |
+
* return true;
|
13588 |
+
* }
|
13589 |
+
* return false;
|
13590 |
+
* }
|
13591 |
+
* );
|
13592 |
+
*/
|
13593 |
+
search: [],
|
13594 |
+
|
13595 |
+
|
13596 |
/**
|
13597 |
+
* Internal functions, exposed for used in plug-ins.
|
13598 |
+
*
|
13599 |
+
* Please note that you should not need to use the internal methods for
|
13600 |
+
* anything other than a plug-in (and even then, try to avoid if possible).
|
13601 |
+
* The internal function may change between releases.
|
13602 |
+
*
|
13603 |
* @type object
|
13604 |
* @default {}
|
13605 |
*/
|
13606 |
+
internal: {},
|
13607 |
+
|
13608 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13609 |
/**
|
13610 |
+
* Legacy configuration options. Enable and disable legacy options that
|
13611 |
+
* are available in DataTables.
|
13612 |
+
*
|
13613 |
+
* @type object
|
|
|
|
|
13614 |
*/
|
13615 |
+
legacy: {
|
13616 |
+
/**
|
13617 |
+
* Enable / disable DataTables 1.9 compatible server-side processing
|
13618 |
+
* requests
|
13619 |
+
*
|
13620 |
+
* @type boolean
|
13621 |
+
* @default null
|
13622 |
+
*/
|
13623 |
+
ajax: null
|
13624 |
+
},
|
13625 |
+
|
13626 |
+
|
13627 |
/**
|
13628 |
+
* Pagination plug-in methods.
|
13629 |
+
*
|
13630 |
+
* Each entry in this object is a function and defines which buttons should
|
13631 |
+
* be shown by the pagination rendering method that is used for the table:
|
13632 |
+
* {@link DataTable.ext.renderer.pageButton}. The renderer addresses how the
|
13633 |
+
* buttons are displayed in the document, while the functions here tell it
|
13634 |
+
* what buttons to display. This is done by returning an array of button
|
13635 |
+
* descriptions (what each button will do).
|
13636 |
+
*
|
13637 |
+
* Pagination types (the four built in options and any additional plug-in
|
13638 |
+
* options defined here) can be used through the `paginationType`
|
13639 |
+
* initialisation parameter.
|
13640 |
+
*
|
13641 |
+
* The functions defined take two parameters:
|
13642 |
+
*
|
13643 |
+
* 1. `{int} page` The current page index
|
13644 |
+
* 2. `{int} pages` The number of pages in the table
|
13645 |
+
*
|
13646 |
+
* Each function is expected to return an array where each element of the
|
13647 |
+
* array can be one of:
|
13648 |
+
*
|
13649 |
+
* * `first` - Jump to first page when activated
|
13650 |
+
* * `last` - Jump to last page when activated
|
13651 |
+
* * `previous` - Show previous page when activated
|
13652 |
+
* * `next` - Show next page when activated
|
13653 |
+
* * `{int}` - Show page of the index given
|
13654 |
+
* * `{array}` - A nested array containing the above elements to add a
|
13655 |
+
* containing 'DIV' element (might be useful for styling).
|
13656 |
+
*
|
13657 |
+
* Note that DataTables v1.9- used this object slightly differently whereby
|
13658 |
+
* an object with two functions would be defined for each plug-in. That
|
13659 |
+
* ability is still supported by DataTables 1.10+ to provide backwards
|
13660 |
+
* compatibility, but this option of use is now decremented and no longer
|
13661 |
+
* documented in DataTables 1.10+.
|
13662 |
+
*
|
13663 |
* @type object
|
13664 |
+
* @default {}
|
13665 |
+
*
|
13666 |
+
* @example
|
13667 |
+
* // Show previous, next and current page buttons only
|
13668 |
+
* $.fn.dataTableExt.oPagination.current = function ( page, pages ) {
|
13669 |
+
* return [ 'previous', page, 'next' ];
|
13670 |
+
* };
|
13671 |
*/
|
13672 |
+
pager: {},
|
13673 |
+
|
13674 |
+
|
13675 |
+
renderer: {
|
13676 |
+
pageButton: {},
|
13677 |
+
header: {}
|
13678 |
+
},
|
13679 |
+
|
13680 |
+
|
13681 |
/**
|
13682 |
+
* Ordering plug-ins - custom data source
|
13683 |
+
*
|
13684 |
+
* The extension options for ordering of data available here is complimentary
|
13685 |
+
* to the default type based ordering that DataTables typically uses. It
|
13686 |
+
* allows much greater control over the the data that is being used to
|
13687 |
+
* order a column, but is necessarily therefore more complex.
|
13688 |
+
*
|
13689 |
+
* This type of ordering is useful if you want to do ordering based on data
|
13690 |
+
* live from the DOM (for example the contents of an 'input' element) rather
|
13691 |
+
* than just the static string that DataTables knows of.
|
13692 |
+
*
|
13693 |
+
* The way these plug-ins work is that you create an array of the values you
|
13694 |
+
* wish to be ordering for the column in question and then return that
|
13695 |
+
* array. The data in the array much be in the index order of the rows in
|
13696 |
+
* the table (not the currently ordering order!). Which order data gathering
|
13697 |
+
* function is run here depends on the `dt-init columns.orderDataType`
|
13698 |
+
* parameter that is used for the column (if any).
|
13699 |
+
*
|
13700 |
+
* The functions defined take two parameters:
|
13701 |
+
*
|
13702 |
+
* 1. `{object}` DataTables settings object: see
|
13703 |
+
* {@link DataTable.models.oSettings}
|
13704 |
+
* 2. `{int}` Target column index
|
13705 |
+
*
|
13706 |
+
* Each function is expected to return an array:
|
13707 |
+
*
|
13708 |
+
* * `{array}` Data for the column to be ordering upon
|
13709 |
+
*
|
13710 |
* @type array
|
13711 |
+
*
|
13712 |
+
* @example
|
13713 |
+
* // Ordering using `input` node values
|
13714 |
+
* $.fn.dataTable.ext.order['dom-text'] = function ( settings, col )
|
13715 |
+
* {
|
13716 |
+
* return this.api().column( col, {order:'index'} ).nodes().map( function ( td, i ) {
|
13717 |
+
* return $('input', td).val();
|
13718 |
+
* } );
|
13719 |
+
* }
|
13720 |
*/
|
13721 |
+
order: {},
|
13722 |
+
|
13723 |
|
|
|
13724 |
/**
|
13725 |
+
* Type based plug-ins.
|
13726 |
+
*
|
13727 |
+
* Each column in DataTables has a type assigned to it, either by automatic
|
13728 |
+
* detection or by direct assignment using the `type` option for the column.
|
13729 |
+
* The type of a column will effect how it is ordering and search (plug-ins
|
13730 |
+
* can also make use of the column type if required).
|
13731 |
+
*
|
13732 |
+
* @namespace
|
13733 |
*/
|
13734 |
+
type: {
|
13735 |
+
/**
|
13736 |
+
* Type detection functions.
|
13737 |
+
*
|
13738 |
+
* The functions defined in this object are used to automatically detect
|
13739 |
+
* a column's type, making initialisation of DataTables super easy, even
|
13740 |
+
* when complex data is in the table.
|
13741 |
+
*
|
13742 |
+
* The functions defined take two parameters:
|
13743 |
+
*
|
13744 |
+
* 1. `{*}` Data from the column cell to be analysed
|
13745 |
+
* 2. `{settings}` DataTables settings object. This can be used to
|
13746 |
+
* perform context specific type detection - for example detection
|
13747 |
+
* based on language settings such as using a comma for a decimal
|
13748 |
+
* place. Generally speaking the options from the settings will not
|
13749 |
+
* be required
|
13750 |
+
*
|
13751 |
+
* Each function is expected to return:
|
13752 |
+
*
|
13753 |
+
* * `{string|null}` Data type detected, or null if unknown (and thus
|
13754 |
+
* pass it on to the other type detection functions.
|
13755 |
+
*
|
13756 |
+
* @type array
|
13757 |
+
*
|
13758 |
+
* @example
|
13759 |
+
* // Currency type detection plug-in:
|
13760 |
+
* $.fn.dataTable.ext.type.detect.push(
|
13761 |
+
* function ( data, settings ) {
|
13762 |
+
* // Check the numeric part
|
13763 |
+
* if ( ! $.isNumeric( data.substring(1) ) ) {
|
13764 |
+
* return null;
|
13765 |
+
* }
|
13766 |
+
*
|
13767 |
+
* // Check prefixed by currency
|
13768 |
+
* if ( data.charAt(0) == '$' || data.charAt(0) == '£' ) {
|
13769 |
+
* return 'currency';
|
13770 |
+
* }
|
13771 |
+
* return null;
|
13772 |
+
* }
|
13773 |
+
* );
|
13774 |
+
*/
|
13775 |
+
detect: [],
|
13776 |
+
|
13777 |
+
|
13778 |
+
/**
|
13779 |
+
* Type based search formatting.
|
13780 |
+
*
|
13781 |
+
* The type based searching functions can be used to pre-format the
|
13782 |
+
* data to be search on. For example, it can be used to strip HTML
|
13783 |
+
* tags or to de-format telephone numbers for numeric only searching.
|
13784 |
+
*
|
13785 |
+
* Note that is a search is not defined for a column of a given type,
|
13786 |
+
* no search formatting will be performed.
|
13787 |
+
*
|
13788 |
+
* Pre-processing of searching data plug-ins - When you assign the sType
|
13789 |
+
* for a column (or have it automatically detected for you by DataTables
|
13790 |
+
* or a type detection plug-in), you will typically be using this for
|
13791 |
+
* custom sorting, but it can also be used to provide custom searching
|
13792 |
+
* by allowing you to pre-processing the data and returning the data in
|
13793 |
+
* the format that should be searched upon. This is done by adding
|
13794 |
+
* functions this object with a parameter name which matches the sType
|
13795 |
+
* for that target column. This is the corollary of <i>afnSortData</i>
|
13796 |
+
* for searching data.
|
13797 |
+
*
|
13798 |
+
* The functions defined take a single parameter:
|
13799 |
+
*
|
13800 |
+
* 1. `{*}` Data from the column cell to be prepared for searching
|
13801 |
+
*
|
13802 |
+
* Each function is expected to return:
|
13803 |
+
*
|
13804 |
+
* * `{string|null}` Formatted string that will be used for the searching.
|
13805 |
+
*
|
13806 |
+
* @type object
|
13807 |
+
* @default {}
|
13808 |
+
*
|
13809 |
+
* @example
|
13810 |
+
* $.fn.dataTable.ext.type.search['title-numeric'] = function ( d ) {
|
13811 |
+
* return d.replace(/\n/g," ").replace( /<.*?>/g, "" );
|
13812 |
+
* }
|
13813 |
+
*/
|
13814 |
+
search: {},
|
13815 |
+
|
13816 |
+
|
13817 |
+
/**
|
13818 |
+
* Type based ordering.
|
13819 |
+
*
|
13820 |
+
* The column type tells DataTables what ordering to apply to the table
|
13821 |
+
* when a column is sorted upon. The order for each type that is defined,
|
13822 |
+
* is defined by the functions available in this object.
|
13823 |
+
*
|
13824 |
+
* Each ordering option can be described by three properties added to
|
13825 |
+
* this object:
|
13826 |
+
*
|
13827 |
+
* * `{type}-pre` - Pre-formatting function
|
13828 |
+
* * `{type}-asc` - Ascending order function
|
13829 |
+
* * `{type}-desc` - Descending order function
|
13830 |
+
*
|
13831 |
+
* All three can be used together, only `{type}-pre` or only
|
13832 |
+
* `{type}-asc` and `{type}-desc` together. It is generally recommended
|
13833 |
+
* that only `{type}-pre` is used, as this provides the optimal
|
13834 |
+
* implementation in terms of speed, although the others are provided
|
13835 |
+
* for compatibility with existing Javascript sort functions.
|
13836 |
+
*
|
13837 |
+
* `{type}-pre`: Functions defined take a single parameter:
|
13838 |
+
*
|
13839 |
+
* 1. `{*}` Data from the column cell to be prepared for ordering
|
13840 |
+
*
|
13841 |
+
* And return:
|
13842 |
+
*
|
13843 |
+
* * `{*}` Data to be sorted upon
|
13844 |
+
*
|
13845 |
+
* `{type}-asc` and `{type}-desc`: Functions are typical Javascript sort
|
13846 |
+
* functions, taking two parameters:
|
13847 |
+
*
|
13848 |
+
* 1. `{*}` Data to compare to the second parameter
|
13849 |
+
* 2. `{*}` Data to compare to the first parameter
|
13850 |
+
*
|
13851 |
+
* And returning:
|
13852 |
+
*
|
13853 |
+
* * `{*}` Ordering match: <0 if first parameter should be sorted lower
|
13854 |
+
* than the second parameter, ===0 if the two parameters are equal and
|
13855 |
+
* >0 if the first parameter should be sorted height than the second
|
13856 |
+
* parameter.
|
13857 |
+
*
|
13858 |
+
* @type object
|
13859 |
+
* @default {}
|
13860 |
+
*
|
13861 |
+
* @example
|
13862 |
+
* // Numeric ordering of formatted numbers with a pre-formatter
|
13863 |
+
* $.extend( $.fn.dataTable.ext.type.order, {
|
13864 |
+
* "string-pre": function(x) {
|
13865 |
+
* a = (a === "-" || a === "") ? 0 : a.replace( /[^\d\-\.]/g, "" );
|
13866 |
+
* return parseFloat( a );
|
13867 |
+
* }
|
13868 |
+
* } );
|
13869 |
+
*
|
13870 |
+
* @example
|
13871 |
+
* // Case-sensitive string ordering, with no pre-formatting method
|
13872 |
+
* $.extend( $.fn.dataTable.ext.order, {
|
13873 |
+
* "string-case-asc": function(x,y) {
|
13874 |
+
* return ((x < y) ? -1 : ((x > y) ? 1 : 0));
|
13875 |
+
* },
|
13876 |
+
* "string-case-desc": function(x,y) {
|
13877 |
+
* return ((x < y) ? 1 : ((x > y) ? -1 : 0));
|
13878 |
+
* }
|
13879 |
+
* } );
|
13880 |
+
*/
|
13881 |
+
order: {}
|
13882 |
},
|
13883 |
+
|
13884 |
/**
|
13885 |
+
* Unique DataTables instance counter
|
13886 |
+
*
|
13887 |
+
* @type int
|
13888 |
+
* @private
|
13889 |
*/
|
13890 |
+
_unique: 0,
|
13891 |
+
|
13892 |
+
|
13893 |
+
//
|
13894 |
+
// Depreciated
|
13895 |
+
// The following properties are retained for backwards compatiblity only.
|
13896 |
+
// The should not be used in new projects and will be removed in a future
|
13897 |
+
// version
|
13898 |
+
//
|
13899 |
+
|
13900 |
/**
|
13901 |
+
* Version check function.
|
13902 |
* @type function
|
13903 |
+
* @depreciated Since 1.10
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13904 |
*/
|
13905 |
+
fnVersionCheck: DataTable.fnVersionCheck,
|
13906 |
+
|
13907 |
|
13908 |
/**
|
13909 |
+
* Index for what 'this' index API functions should use
|
13910 |
+
* @type int
|
13911 |
+
* @deprecated Since v1.10
|
13912 |
*/
|
13913 |
+
iApiIndex: 0,
|
13914 |
+
|
13915 |
|
13916 |
/**
|
13917 |
+
* jQuery UI class container
|
13918 |
+
* @type object
|
13919 |
+
* @deprecated Since v1.10
|
13920 |
*/
|
13921 |
+
oJUIClasses: {},
|
13922 |
+
|
13923 |
|
13924 |
/**
|
13925 |
+
* Software version
|
13926 |
+
* @type string
|
13927 |
+
* @deprecated Since v1.10
|
13928 |
*/
|
13929 |
+
sVersion: DataTable.version
|
13930 |
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13931 |
|
13932 |
+
|
13933 |
+
//
|
13934 |
+
// Backwards compatibility. Alias to pre 1.10 Hungarian notation counter parts
|
13935 |
+
//
|
13936 |
+
$.extend( _ext, {
|
13937 |
+
afnFiltering: _ext.search,
|
13938 |
+
aTypes: _ext.type.detect,
|
13939 |
+
ofnSearch: _ext.type.search,
|
13940 |
+
oSort: _ext.type.order,
|
13941 |
+
afnSortData: _ext.order,
|
13942 |
+
aoFeatures: _ext.feature,
|
13943 |
+
oApi: _ext.internal,
|
13944 |
+
oStdClasses: _ext.classes,
|
13945 |
+
oPagination: _ext.pager
|
13946 |
+
} );
|
13947 |
+
|
13948 |
+
|
13949 |
+
$.extend( DataTable.ext.classes, {
|
13950 |
"sTable": "dataTable",
|
13951 |
+
"sNoFooter": "no-footer",
|
13952 |
|
13953 |
+
/* Paging buttons */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13954 |
"sPageButton": "paginate_button",
|
13955 |
+
"sPageButtonActive": "current",
|
13956 |
+
"sPageButtonDisabled": "disabled",
|
13957 |
+
|
|
|
|
|
|
|
|
|
13958 |
/* Striping classes */
|
13959 |
"sStripeOdd": "odd",
|
13960 |
"sStripeEven": "even",
|
13961 |
+
|
13962 |
/* Empty row */
|
13963 |
"sRowEmpty": "dataTables_empty",
|
13964 |
+
|
13965 |
/* Features */
|
13966 |
"sWrapper": "dataTables_wrapper",
|
13967 |
"sFilter": "dataTables_filter",
|
13969 |
"sPaging": "dataTables_paginate paging_", /* Note that the type is postfixed */
|
13970 |
"sLength": "dataTables_length",
|
13971 |
"sProcessing": "dataTables_processing",
|
13972 |
+
|
13973 |
/* Sorting */
|
13974 |
"sSortAsc": "sorting_asc",
|
13975 |
"sSortDesc": "sorting_desc",
|
13978 |
"sSortableDesc": "sorting_desc_disabled",
|
13979 |
"sSortableNone": "sorting_disabled",
|
13980 |
"sSortColumn": "sorting_", /* Note that an int is postfixed for the sorting order */
|
13981 |
+
|
13982 |
+
/* Filtering */
|
13983 |
+
"sFilterInput": "",
|
13984 |
+
|
13985 |
+
/* Page length */
|
13986 |
+
"sLengthSelect": "",
|
13987 |
+
|
|
|
13988 |
/* Scrolling */
|
13989 |
"sScrollWrapper": "dataTables_scroll",
|
13990 |
"sScrollHead": "dataTables_scrollHead",
|
13992 |
"sScrollBody": "dataTables_scrollBody",
|
13993 |
"sScrollFoot": "dataTables_scrollFoot",
|
13994 |
"sScrollFootInner": "dataTables_scrollFootInner",
|
13995 |
+
|
13996 |
/* Misc */
|
13997 |
+
"sHeaderTH": "",
|
13998 |
"sFooterTH": "",
|
13999 |
+
|
14000 |
+
// Deprecated
|
14001 |
+
"sSortJUIAsc": "",
|
14002 |
+
"sSortJUIDesc": "",
|
14003 |
+
"sSortJUI": "",
|
14004 |
+
"sSortJUIAscAllowed": "",
|
14005 |
+
"sSortJUIDescAllowed": "",
|
14006 |
+
"sSortJUIWrapper": "",
|
14007 |
+
"sSortIcon": "",
|
14008 |
"sJUIHeader": "",
|
14009 |
"sJUIFooter": ""
|
14010 |
} );
|
14011 |
|
14012 |
|
14013 |
+
(function() {
|
14014 |
+
|
14015 |
+
// Reused strings for better compression. Closure compiler appears to have a
|
14016 |
+
// weird edge case where it is trying to expand strings rather than use the
|
14017 |
+
// variable version. This results in about 200 bytes being added, for very
|
14018 |
+
// little preference benefit since it this run on script load only.
|
14019 |
+
var _empty = '';
|
14020 |
+
_empty = '';
|
14021 |
+
|
14022 |
+
var _stateDefault = _empty + 'ui-state-default';
|
14023 |
+
var _sortIcon = _empty + 'css_right ui-icon ui-icon-';
|
14024 |
+
var _headerFooter = _empty + 'fg-toolbar ui-toolbar ui-widget-header ui-helper-clearfix';
|
14025 |
+
|
14026 |
+
$.extend( DataTable.ext.oJUIClasses, DataTable.ext.classes, {
|
14027 |
/* Full numbers paging buttons */
|
14028 |
+
"sPageButton": "fg-button ui-button "+_stateDefault,
|
14029 |
+
"sPageButtonActive": "ui-state-disabled",
|
14030 |
+
"sPageButtonDisabled": "ui-state-disabled",
|
14031 |
+
|
|
|
|
|
14032 |
/* Features */
|
14033 |
"sPaging": "dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi "+
|
14034 |
"ui-buttonset-multi paging_", /* Note that the type is postfixed */
|
14035 |
+
|
14036 |
/* Sorting */
|
14037 |
+
"sSortAsc": _stateDefault+" sorting_asc",
|
14038 |
+
"sSortDesc": _stateDefault+" sorting_desc",
|
14039 |
+
"sSortable": _stateDefault+" sorting",
|
14040 |
+
"sSortableAsc": _stateDefault+" sorting_asc_disabled",
|
14041 |
+
"sSortableDesc": _stateDefault+" sorting_desc_disabled",
|
14042 |
+
"sSortableNone": _stateDefault+" sorting_disabled",
|
14043 |
+
"sSortJUIAsc": _sortIcon+"triangle-1-n",
|
14044 |
+
"sSortJUIDesc": _sortIcon+"triangle-1-s",
|
14045 |
+
"sSortJUI": _sortIcon+"carat-2-n-s",
|
14046 |
+
"sSortJUIAscAllowed": _sortIcon+"carat-1-n",
|
14047 |
+
"sSortJUIDescAllowed": _sortIcon+"carat-1-s",
|
14048 |
+
"sSortJUIWrapper": "DataTables_sort_wrapper",
|
14049 |
+
"sSortIcon": "DataTables_sort_icon",
|
14050 |
+
|
14051 |
/* Scrolling */
|
14052 |
+
"sScrollHead": "dataTables_scrollHead "+_stateDefault,
|
14053 |
+
"sScrollFoot": "dataTables_scrollFoot "+_stateDefault,
|
14054 |
+
|
14055 |
/* Misc */
|
14056 |
+
"sHeaderTH": _stateDefault,
|
14057 |
+
"sFooterTH": _stateDefault,
|
14058 |
+
"sJUIHeader": _headerFooter+" ui-corner-tl ui-corner-tr",
|
14059 |
+
"sJUIFooter": _headerFooter+" ui-corner-bl ui-corner-br"
|
14060 |
} );
|
14061 |
|
14062 |
+
}());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14063 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14064 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14065 |
|
14066 |
+
var extPagination = DataTable.ext.pager;
|
14067 |
+
|
14068 |
+
function _numbers ( page, pages ) {
|
14069 |
+
var
|
14070 |
+
numbers = [],
|
14071 |
+
buttons = extPagination.numbers_length,
|
14072 |
+
half = Math.floor( buttons / 2 ),
|
14073 |
+
i = 1;
|
14074 |
+
|
14075 |
+
if ( pages <= buttons ) {
|
14076 |
+
numbers = _range( 0, pages );
|
14077 |
+
}
|
14078 |
+
else if ( page <= half ) {
|
14079 |
+
numbers = _range( 0, buttons-2 );
|
14080 |
+
numbers.push( 'ellipsis' );
|
14081 |
+
numbers.push( pages-1 );
|
14082 |
+
}
|
14083 |
+
else if ( page >= pages - 1 - half ) {
|
14084 |
+
numbers = _range( pages-(buttons-2), pages );
|
14085 |
+
numbers.splice( 0, 0, 'ellipsis' ); // no unshift in ie6
|
14086 |
+
numbers.splice( 0, 0, 0 );
|
14087 |
+
}
|
14088 |
+
else {
|
14089 |
+
numbers = _range( page-1, page+2 );
|
14090 |
+
numbers.push( 'ellipsis' );
|
14091 |
+
numbers.push( pages-1 );
|
14092 |
+
numbers.splice( 0, 0, 'ellipsis' );
|
14093 |
+
numbers.splice( 0, 0, 0 );
|
14094 |
+
}
|
14095 |
+
|
14096 |
+
numbers.DT_el = 'span';
|
14097 |
+
return numbers;
|
14098 |
+
}
|
14099 |
+
|
14100 |
+
|
14101 |
+
$.extend( extPagination, {
|
14102 |
+
simple: function ( page, pages ) {
|
14103 |
+
return [ 'previous', 'next' ];
|
14104 |
+
},
|
14105 |
+
|
14106 |
+
full: function ( page, pages ) {
|
14107 |
+
return [ 'first', 'previous', 'next', 'last' ];
|
14108 |
+
},
|
14109 |
+
|
14110 |
+
simple_numbers: function ( page, pages ) {
|
14111 |
+
return [ 'previous', _numbers(page, pages), 'next' ];
|
14112 |
},
|
14113 |
+
|
14114 |
+
full_numbers: function ( page, pages ) {
|
14115 |
+
return [ 'first', 'previous', _numbers(page, pages), 'next', 'last' ];
|
14116 |
+
},
|
14117 |
+
|
14118 |
+
// For testing and plug-ins to use
|
14119 |
+
_numbers: _numbers,
|
14120 |
+
numbers_length: 7
|
14121 |
+
} );
|
14122 |
+
|
14123 |
+
|
14124 |
+
$.extend( true, DataTable.ext.renderer, {
|
14125 |
+
pageButton: {
|
14126 |
+
_: function ( settings, host, idx, buttons, page, pages ) {
|
14127 |
+
var classes = settings.oClasses;
|
14128 |
+
var lang = settings.oLanguage.oPaginate;
|
14129 |
+
var btnDisplay, btnClass, counter=0;
|
14130 |
+
|
14131 |
+
var attach = function( container, buttons ) {
|
14132 |
+
var i, ien, node, button;
|
14133 |
+
var clickHandler = function ( e ) {
|
14134 |
+
_fnPageChange( settings, e.data.action, true );
|
14135 |
+
};
|
14136 |
+
|
14137 |
+
for ( i=0, ien=buttons.length ; i<ien ; i++ ) {
|
14138 |
+
button = buttons[i];
|
14139 |
+
|
14140 |
+
if ( $.isArray( button ) ) {
|
14141 |
+
var inner = $( '<'+(button.DT_el || 'div')+'/>' )
|
14142 |
+
.appendTo( container );
|
14143 |
+
attach( inner, button );
|
14144 |
+
}
|
14145 |
+
else {
|
14146 |
+
btnDisplay = '';
|
14147 |
+
btnClass = '';
|
14148 |
+
|
14149 |
+
switch ( button ) {
|
14150 |
+
case 'ellipsis':
|
14151 |
+
container.append('<span>…</span>');
|
14152 |
+
break;
|
14153 |
+
|
14154 |
+
case 'first':
|
14155 |
+
btnDisplay = lang.sFirst;
|
14156 |
+
btnClass = button + (page > 0 ?
|
14157 |
+
'' : ' '+classes.sPageButtonDisabled);
|
14158 |
+
break;
|
14159 |
+
|
14160 |
+
case 'previous':
|
14161 |
+
btnDisplay = lang.sPrevious;
|
14162 |
+
btnClass = button + (page > 0 ?
|
14163 |
+
'' : ' '+classes.sPageButtonDisabled);
|
14164 |
+
break;
|
14165 |
+
|
14166 |
+
case 'next':
|
14167 |
+
btnDisplay = lang.sNext;
|
14168 |
+
btnClass = button + (page < pages-1 ?
|
14169 |
+
'' : ' '+classes.sPageButtonDisabled);
|
14170 |
+
break;
|
14171 |
+
|
14172 |
+
case 'last':
|
14173 |
+
btnDisplay = lang.sLast;
|
14174 |
+
btnClass = button + (page < pages-1 ?
|
14175 |
+
'' : ' '+classes.sPageButtonDisabled);
|
14176 |
+
break;
|
14177 |
+
|
14178 |
+
default:
|
14179 |
+
btnDisplay = button + 1;
|
14180 |
+
btnClass = page === button ?
|
14181 |
+
classes.sPageButtonActive : '';
|
14182 |
+
break;
|
14183 |
+
}
|
14184 |
+
|
14185 |
+
if ( btnDisplay ) {
|
14186 |
+
node = $('<a>', {
|
14187 |
+
'class': classes.sPageButton+' '+btnClass,
|
14188 |
+
'aria-controls': settings.sTableId,
|
14189 |
+
'data-dt-idx': counter,
|
14190 |
+
'tabindex': settings.iTabIndex,
|
14191 |
+
'id': idx === 0 && typeof button === 'string' ?
|
14192 |
+
settings.sTableId +'_'+ button :
|
14193 |
+
null
|
14194 |
+
} )
|
14195 |
+
.html( btnDisplay )
|
14196 |
+
.appendTo( container );
|
14197 |
+
|
14198 |
+
_fnBindAction(
|
14199 |
+
node, {action: button}, clickHandler
|
14200 |
+
);
|
14201 |
+
|
14202 |
+
counter++;
|
14203 |
+
}
|
14204 |
+
}
|
14205 |
}
|
14206 |
};
|
14207 |
|
14208 |
+
// IE9 throws an 'unknown error' if document.activeElement is used
|
14209 |
+
// inside an iframe or frame. Try / catch the error. Not good for
|
14210 |
+
// accessibility, but neither are frames.
|
14211 |
+
var activeEl;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14212 |
|
14213 |
+
try {
|
14214 |
+
// Because this approach is destroying and recreating the paging
|
14215 |
+
// elements, focus is lost on the select button which is bad for
|
14216 |
+
// accessibility. So we want to restore focus once the draw has
|
14217 |
+
// completed
|
14218 |
+
activeEl = $(document.activeElement).data('dt-idx');
|
|
|
14219 |
}
|
14220 |
+
catch (e) {}
|
14221 |
+
|
14222 |
+
attach( $(host).empty(), buttons );
|
14223 |
+
|
14224 |
+
if ( activeEl ) {
|
14225 |
+
$(host).find( '[data-dt-idx='+activeEl+']' ).focus();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14226 |
}
|
14227 |
}
|
14228 |
}
|
14229 |
} );
|
14230 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14231 |
|
14232 |
+
|
14233 |
+
// Built in type detection. See model.ext.aTypes for information about
|
14234 |
+
// what is required from this methods.
|
14235 |
+
$.extend( DataTable.ext.type.detect, [
|
14236 |
+
// Plain numbers - first since V8 detects some plain numbers as dates
|
14237 |
+
// e.g. Date.parse('55') (but not all, e.g. Date.parse('22')...).
|
14238 |
+
function ( d, settings )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14239 |
{
|
14240 |
+
var decimal = settings.oLanguage.sDecimal;
|
14241 |
+
return _isNumber( d, decimal ) ? 'num'+decimal : null;
|
14242 |
},
|
14243 |
+
|
14244 |
+
// Dates (only those recognised by the browser's Date.parse)
|
14245 |
+
function ( d, settings )
|
|
|
|
|
|
|
14246 |
{
|
14247 |
+
// V8 will remove any unknown characters at the start and end of the
|
14248 |
+
// expression, leading to false matches such as `$245.12` or `10%` being
|
14249 |
+
// a valid date. See forum thread 18941 for detail.
|
14250 |
+
if ( d && !(d instanceof Date) && ( ! _re_date_start.test(d) || ! _re_date_end.test(d) ) ) {
|
14251 |
+
return null;
|
14252 |
}
|
14253 |
+
var parsed = Date.parse(d);
|
14254 |
+
return (parsed !== null && !isNaN(parsed)) || _empty(d) ? 'date' : null;
|
14255 |
},
|
14256 |
|
14257 |
+
// Formatted numbers
|
14258 |
+
function ( d, settings )
|
14259 |
{
|
14260 |
+
var decimal = settings.oLanguage.sDecimal;
|
14261 |
+
return _isNumber( d, decimal, true ) ? 'num-fmt'+decimal : null;
|
14262 |
},
|
14263 |
+
|
14264 |
+
// HTML numeric
|
14265 |
+
function ( d, settings )
|
14266 |
{
|
14267 |
+
var decimal = settings.oLanguage.sDecimal;
|
14268 |
+
return _htmlNumeric( d, decimal ) ? 'html-num'+decimal : null;
|
14269 |
},
|
14270 |
+
|
14271 |
+
// HTML numeric, formatted
|
14272 |
+
function ( d, settings )
|
|
|
|
|
|
|
14273 |
{
|
14274 |
+
var decimal = settings.oLanguage.sDecimal;
|
14275 |
+
return _htmlNumeric( d, decimal, true ) ? 'html-num-fmt'+decimal : null;
|
14276 |
},
|
14277 |
|
14278 |
+
// HTML (this is strict checking - there must be html)
|
14279 |
+
function ( d, settings )
|
14280 |
{
|
14281 |
+
return _empty( d ) || (typeof d === 'string' && d.indexOf('<') !== -1) ?
|
14282 |
+
'html' : null;
|
14283 |
+
}
|
14284 |
+
] );
|
14285 |
+
|
14286 |
+
|
14287 |
+
|
14288 |
+
// Filter formatting functions. See model.ext.ofnSearch for information about
|
14289 |
+
// what is required from these methods.
|
14290 |
+
//
|
14291 |
+
// Note that additional search methods are added for the html numbers and
|
14292 |
+
// html formatted numbers by `_addNumericSort()` when we know what the decimal
|
14293 |
+
// place is
|
14294 |
+
|
14295 |
+
|
14296 |
+
$.extend( DataTable.ext.type.search, {
|
14297 |
+
html: function ( data ) {
|
14298 |
+
return _empty(data) ?
|
14299 |
+
data :
|
14300 |
+
typeof data === 'string' ?
|
14301 |
+
data
|
14302 |
+
.replace( _re_new_lines, " " )
|
14303 |
+
.replace( _re_html, "" ) :
|
14304 |
+
'';
|
14305 |
},
|
14306 |
+
|
14307 |
+
string: function ( data ) {
|
14308 |
+
return _empty(data) ?
|
14309 |
+
data :
|
14310 |
+
typeof data === 'string' ?
|
14311 |
+
data.replace( _re_new_lines, " " ) :
|
14312 |
+
data;
|
14313 |
}
|
14314 |
} );
|
14315 |
|
14316 |
|
14317 |
+
|
14318 |
+
var __numericReplace = function ( d, decimalPlace, re1, re2 ) {
|
14319 |
+
if ( d !== 0 && (!d || d === '-') ) {
|
14320 |
+
return -Infinity;
|
14321 |
+
}
|
14322 |
+
|
14323 |
+
// If a decimal place other than `.` is used, it needs to be given to the
|
14324 |
+
// function so we can detect it and replace with a `.` which is the only
|
14325 |
+
// decimal place Javascript recognises - it is not locale aware.
|
14326 |
+
if ( decimalPlace ) {
|
14327 |
+
d = _numToDecimal( d, decimalPlace );
|
14328 |
+
}
|
14329 |
+
|
14330 |
+
if ( d.replace ) {
|
14331 |
+
if ( re1 ) {
|
14332 |
+
d = d.replace( re1, '' );
|
|
|
14333 |
}
|
14334 |
+
|
14335 |
+
if ( re2 ) {
|
14336 |
+
d = d.replace( re2, '' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14337 |
}
|
14338 |
+
}
|
14339 |
+
|
14340 |
+
return d * 1;
|
14341 |
+
};
|
14342 |
+
|
14343 |
+
|
14344 |
+
// Add the numeric 'deformatting' functions for sorting and search. This is done
|
14345 |
+
// in a function to provide an easy ability for the language options to add
|
14346 |
+
// additional methods if a non-period decimal place is used.
|
14347 |
+
function _addNumericSort ( decimalPlace ) {
|
14348 |
+
$.each(
|
14349 |
{
|
14350 |
+
// Plain numbers
|
14351 |
+
"num": function ( d ) {
|
14352 |
+
return __numericReplace( d, decimalPlace );
|
14353 |
+
},
|
14354 |
+
|
14355 |
+
// Formatted numbers
|
14356 |
+
"num-fmt": function ( d ) {
|
14357 |
+
return __numericReplace( d, decimalPlace, _re_formatted_numeric );
|
14358 |
+
},
|
14359 |
+
|
14360 |
+
// HTML numeric
|
14361 |
+
"html-num": function ( d ) {
|
14362 |
+
return __numericReplace( d, decimalPlace, _re_html );
|
14363 |
+
},
|
14364 |
+
|
14365 |
+
// HTML numeric, formatted
|
14366 |
+
"html-num-fmt": function ( d ) {
|
14367 |
+
return __numericReplace( d, decimalPlace, _re_html, _re_formatted_numeric );
|
14368 |
}
|
14369 |
+
},
|
14370 |
+
function ( key, fn ) {
|
14371 |
+
// Add the ordering method
|
14372 |
+
_ext.type.order[ key+decimalPlace+'-pre' ] = fn;
|
14373 |
+
|
14374 |
+
// For HTML types add a search formatter that will strip the HTML
|
14375 |
+
if ( key.match(/^html\-/) ) {
|
14376 |
+
_ext.type.search[ key+decimalPlace ] = _ext.type.search.html;
|
|
|
14377 |
}
|
14378 |
}
|
14379 |
+
);
|
14380 |
+
}
|
14381 |
+
|
14382 |
+
|
14383 |
+
// Default sort methods
|
14384 |
+
$.extend( _ext.type.order, {
|
14385 |
+
// Dates
|
14386 |
+
"date-pre": function ( d ) {
|
14387 |
+
return Date.parse( d ) || 0;
|
14388 |
},
|
14389 |
+
|
14390 |
+
// html
|
14391 |
+
"html-pre": function ( a ) {
|
14392 |
+
return _empty(a) ?
|
14393 |
+
'' :
|
14394 |
+
a.replace ?
|
14395 |
+
a.replace( /<.*?>/g, "" ).toLowerCase() :
|
14396 |
+
a+'';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14397 |
},
|
14398 |
+
|
14399 |
+
// string
|
14400 |
+
"string-pre": function ( a ) {
|
14401 |
+
// This is a little complex, but faster than always calling toString,
|
14402 |
+
// http://jsperf.com/tostring-v-check
|
14403 |
+
return _empty(a) ?
|
14404 |
+
'' :
|
14405 |
+
typeof a === 'string' ?
|
14406 |
+
a.toLowerCase() :
|
14407 |
+
! a.toString ?
|
14408 |
+
'' :
|
14409 |
+
a.toString();
|
14410 |
+
},
|
14411 |
+
|
14412 |
+
// string-asc and -desc are retained only for compatibility with the old
|
14413 |
+
// sort methods
|
14414 |
+
"string-asc": function ( x, y ) {
|
14415 |
+
return ((x < y) ? -1 : ((x > y) ? 1 : 0));
|
14416 |
+
},
|
14417 |
+
|
14418 |
+
"string-desc": function ( x, y ) {
|
14419 |
+
return ((x < y) ? 1 : ((x > y) ? -1 : 0));
|
14420 |
+
}
|
14421 |
+
} );
|
14422 |
+
|
14423 |
+
|
14424 |
+
// Numeric sorting types - order doesn't matter here
|
14425 |
+
_addNumericSort( '' );
|
14426 |
+
|
14427 |
+
|
14428 |
+
$.extend( true, DataTable.ext.renderer, {
|
14429 |
+
header: {
|
14430 |
+
_: function ( settings, cell, column, classes ) {
|
14431 |
+
// No additional mark-up required
|
14432 |
+
// Attach a sort listener to update on sort - note that using the
|
14433 |
+
// `DT` namespace will allow the event to be removed automatically
|
14434 |
+
// on destroy, while the `dt` namespaced event is the one we are
|
14435 |
+
// listening for
|
14436 |
+
$(settings.nTable).on( 'order.dt.DT', function ( e, ctx, sorting, columns ) {
|
14437 |
+
if ( settings !== ctx ) { // need to check this this is the host
|
14438 |
+
return; // table, not a nested one
|
14439 |
+
}
|
14440 |
+
|
14441 |
+
var colIdx = column.idx;
|
14442 |
+
|
14443 |
+
cell
|
14444 |
+
.removeClass(
|
14445 |
+
column.sSortingClass +' '+
|
14446 |
+
classes.sSortAsc +' '+
|
14447 |
+
classes.sSortDesc
|
14448 |
+
)
|
14449 |
+
.addClass( columns[ colIdx ] == 'asc' ?
|
14450 |
+
classes.sSortAsc : columns[ colIdx ] == 'desc' ?
|
14451 |
+
classes.sSortDesc :
|
14452 |
+
column.sSortingClass
|
14453 |
+
);
|
14454 |
+
} );
|
14455 |
+
},
|
14456 |
+
|
14457 |
+
jqueryui: function ( settings, cell, column, classes ) {
|
14458 |
+
$('<div/>')
|
14459 |
+
.addClass( classes.sSortJUIWrapper )
|
14460 |
+
.append( cell.contents() )
|
14461 |
+
.append( $('<span/>')
|
14462 |
+
.addClass( classes.sSortIcon+' '+column.sSortingClassJUI )
|
14463 |
+
)
|
14464 |
+
.appendTo( cell );
|
14465 |
+
|
14466 |
+
// Attach a sort listener to update on sort
|
14467 |
+
$(settings.nTable).on( 'order.dt.DT', function ( e, ctx, sorting, columns ) {
|
14468 |
+
if ( settings !== ctx ) {
|
14469 |
+
return;
|
14470 |
+
}
|
14471 |
+
|
14472 |
+
var colIdx = column.idx;
|
14473 |
+
|
14474 |
+
cell
|
14475 |
+
.removeClass( classes.sSortAsc +" "+classes.sSortDesc )
|
14476 |
+
.addClass( columns[ colIdx ] == 'asc' ?
|
14477 |
+
classes.sSortAsc : columns[ colIdx ] == 'desc' ?
|
14478 |
+
classes.sSortDesc :
|
14479 |
+
column.sSortingClass
|
14480 |
+
);
|
14481 |
+
|
14482 |
+
cell
|
14483 |
+
.find( 'span.'+classes.sSortIcon )
|
14484 |
+
.removeClass(
|
14485 |
+
classes.sSortJUIAsc +" "+
|
14486 |
+
classes.sSortJUIDesc +" "+
|
14487 |
+
classes.sSortJUI +" "+
|
14488 |
+
classes.sSortJUIAscAllowed +" "+
|
14489 |
+
classes.sSortJUIDescAllowed
|
14490 |
+
)
|
14491 |
+
.addClass( columns[ colIdx ] == 'asc' ?
|
14492 |
+
classes.sSortJUIAsc : columns[ colIdx ] == 'desc' ?
|
14493 |
+
classes.sSortJUIDesc :
|
14494 |
+
column.sSortingClassJUI
|
14495 |
+
);
|
14496 |
+
} );
|
14497 |
}
|
|
|
14498 |
}
|
14499 |
+
} );
|
14500 |
+
|
14501 |
+
/*
|
14502 |
+
* Public helper functions. These aren't used internally by DataTables, or
|
14503 |
+
* called by any of the options passed into DataTables, but they can be used
|
14504 |
+
* externally by developers working with DataTables. They are helper functions
|
14505 |
+
* to make working with DataTables a little bit easier.
|
14506 |
+
*/
|
14507 |
+
|
14508 |
+
/**
|
14509 |
+
* Helpers for `columns.render`.
|
14510 |
+
*
|
14511 |
+
* The options defined here can be used with the `columns.render` initialisation
|
14512 |
+
* option to provide a display renderer. The following functions are defined:
|
14513 |
+
*
|
14514 |
+
* * `number` - Will format numeric data (defined by `columns.data`) for
|
14515 |
+
* display, retaining the original unformatted data for sorting and filtering.
|
14516 |
+
* It takes 4 parameters:
|
14517 |
+
* * `string` - Thousands grouping separator
|
14518 |
+
* * `string` - Decimal point indicator
|
14519 |
+
* * `integer` - Number of decimal points to show
|
14520 |
+
* * `string` (optional) - Prefix.
|
14521 |
+
*
|
14522 |
+
* @example
|
14523 |
+
* // Column definition using the number renderer
|
14524 |
+
* {
|
14525 |
+
* data: "salary",
|
14526 |
+
* render: $.fn.dataTable.render.number( '\'', '.', 0, '$' )
|
14527 |
+
* }
|
14528 |
+
*
|
14529 |
+
* @namespace
|
14530 |
+
*/
|
14531 |
+
DataTable.render = {
|
14532 |
+
number: function ( thousands, decimal, precision, prefix ) {
|
14533 |
+
return {
|
14534 |
+
display: function ( d ) {
|
14535 |
+
var negative = d < 0 ? '-' : '';
|
14536 |
+
d = Math.abs( parseFloat( d ) );
|
14537 |
+
|
14538 |
+
var intPart = parseInt( d, 10 );
|
14539 |
+
var floatPart = precision ?
|
14540 |
+
decimal+(d - intPart).toFixed( precision ).substring( 2 ):
|
14541 |
+
'';
|
14542 |
+
|
14543 |
+
return negative + (prefix||'') +
|
14544 |
+
intPart.toString().replace(
|
14545 |
+
/\B(?=(\d{3})+(?!\d))/g, thousands
|
14546 |
+
) +
|
14547 |
+
floatPart;
|
14548 |
+
}
|
14549 |
+
};
|
14550 |
+
}
|
14551 |
+
};
|
14552 |
+
|
14553 |
+
|
14554 |
+
/*
|
14555 |
+
* This is really a good bit rubbish this method of exposing the internal methods
|
14556 |
+
* publicly... - To be fixed in 2.0 using methods on the prototype
|
14557 |
+
*/
|
14558 |
+
|
14559 |
+
|
14560 |
+
/**
|
14561 |
+
* Create a wrapper function for exporting an internal functions to an external API.
|
14562 |
+
* @param {string} fn API function name
|
14563 |
+
* @returns {function} wrapped function
|
14564 |
+
* @memberof DataTable#internal
|
14565 |
+
*/
|
14566 |
+
function _fnExternApiFunc (fn)
|
14567 |
+
{
|
14568 |
+
return function() {
|
14569 |
+
var args = [_fnSettingsFromNode( this[DataTable.ext.iApiIndex] )].concat(
|
14570 |
+
Array.prototype.slice.call(arguments)
|
14571 |
+
);
|
14572 |
+
return DataTable.ext.internal[fn].apply( this, args );
|
14573 |
+
};
|
14574 |
+
}
|
14575 |
+
|
14576 |
+
|
14577 |
+
/**
|
14578 |
+
* Reference to internal functions for use by plug-in developers. Note that
|
14579 |
+
* these methods are references to internal functions and are considered to be
|
14580 |
+
* private. If you use these methods, be aware that they are liable to change
|
14581 |
+
* between versions.
|
14582 |
+
* @namespace
|
14583 |
+
*/
|
14584 |
+
$.extend( DataTable.ext.internal, {
|
14585 |
+
_fnExternApiFunc: _fnExternApiFunc,
|
14586 |
+
_fnBuildAjax: _fnBuildAjax,
|
14587 |
+
_fnAjaxUpdate: _fnAjaxUpdate,
|
14588 |
+
_fnAjaxParameters: _fnAjaxParameters,
|
14589 |
+
_fnAjaxUpdateDraw: _fnAjaxUpdateDraw,
|
14590 |
+
_fnAjaxDataSrc: _fnAjaxDataSrc,
|
14591 |
+
_fnAddColumn: _fnAddColumn,
|
14592 |
+
_fnColumnOptions: _fnColumnOptions,
|
14593 |
+
_fnAdjustColumnSizing: _fnAdjustColumnSizing,
|
14594 |
+
_fnVisibleToColumnIndex: _fnVisibleToColumnIndex,
|
14595 |
+
_fnColumnIndexToVisible: _fnColumnIndexToVisible,
|
14596 |
+
_fnVisbleColumns: _fnVisbleColumns,
|
14597 |
+
_fnGetColumns: _fnGetColumns,
|
14598 |
+
_fnColumnTypes: _fnColumnTypes,
|
14599 |
+
_fnApplyColumnDefs: _fnApplyColumnDefs,
|
14600 |
+
_fnHungarianMap: _fnHungarianMap,
|
14601 |
+
_fnCamelToHungarian: _fnCamelToHungarian,
|
14602 |
+
_fnLanguageCompat: _fnLanguageCompat,
|
14603 |
+
_fnBrowserDetect: _fnBrowserDetect,
|
14604 |
+
_fnAddData: _fnAddData,
|
14605 |
+
_fnAddTr: _fnAddTr,
|
14606 |
+
_fnNodeToDataIndex: _fnNodeToDataIndex,
|
14607 |
+
_fnNodeToColumnIndex: _fnNodeToColumnIndex,
|
14608 |
+
_fnGetCellData: _fnGetCellData,
|
14609 |
+
_fnSetCellData: _fnSetCellData,
|
14610 |
+
_fnSplitObjNotation: _fnSplitObjNotation,
|
14611 |
+
_fnGetObjectDataFn: _fnGetObjectDataFn,
|
14612 |
+
_fnSetObjectDataFn: _fnSetObjectDataFn,
|
14613 |
+
_fnGetDataMaster: _fnGetDataMaster,
|
14614 |
+
_fnClearTable: _fnClearTable,
|
14615 |
+
_fnDeleteIndex: _fnDeleteIndex,
|
14616 |
+
_fnInvalidate: _fnInvalidate,
|
14617 |
+
_fnGetRowElements: _fnGetRowElements,
|
14618 |
+
_fnCreateTr: _fnCreateTr,
|
14619 |
+
_fnBuildHead: _fnBuildHead,
|
14620 |
+
_fnDrawHead: _fnDrawHead,
|
14621 |
+
_fnDraw: _fnDraw,
|
14622 |
+
_fnReDraw: _fnReDraw,
|
14623 |
+
_fnAddOptionsHtml: _fnAddOptionsHtml,
|
14624 |
+
_fnDetectHeader: _fnDetectHeader,
|
14625 |
+
_fnGetUniqueThs: _fnGetUniqueThs,
|
14626 |
+
_fnFeatureHtmlFilter: _fnFeatureHtmlFilter,
|
14627 |
+
_fnFilterComplete: _fnFilterComplete,
|
14628 |
+
_fnFilterCustom: _fnFilterCustom,
|
14629 |
+
_fnFilterColumn: _fnFilterColumn,
|
14630 |
+
_fnFilter: _fnFilter,
|
14631 |
+
_fnFilterCreateSearch: _fnFilterCreateSearch,
|
14632 |
+
_fnEscapeRegex: _fnEscapeRegex,
|
14633 |
+
_fnFilterData: _fnFilterData,
|
14634 |
+
_fnFeatureHtmlInfo: _fnFeatureHtmlInfo,
|
14635 |
+
_fnUpdateInfo: _fnUpdateInfo,
|
14636 |
+
_fnInfoMacros: _fnInfoMacros,
|
14637 |
+
_fnInitialise: _fnInitialise,
|
14638 |
+
_fnInitComplete: _fnInitComplete,
|
14639 |
+
_fnLengthChange: _fnLengthChange,
|
14640 |
+
_fnFeatureHtmlLength: _fnFeatureHtmlLength,
|
14641 |
+
_fnFeatureHtmlPaginate: _fnFeatureHtmlPaginate,
|
14642 |
+
_fnPageChange: _fnPageChange,
|
14643 |
+
_fnFeatureHtmlProcessing: _fnFeatureHtmlProcessing,
|
14644 |
+
_fnProcessingDisplay: _fnProcessingDisplay,
|
14645 |
+
_fnFeatureHtmlTable: _fnFeatureHtmlTable,
|
14646 |
+
_fnScrollDraw: _fnScrollDraw,
|
14647 |
+
_fnApplyToChildren: _fnApplyToChildren,
|
14648 |
+
_fnCalculateColumnWidths: _fnCalculateColumnWidths,
|
14649 |
+
_fnThrottle: _fnThrottle,
|
14650 |
+
_fnConvertToWidth: _fnConvertToWidth,
|
14651 |
+
_fnScrollingWidthAdjust: _fnScrollingWidthAdjust,
|
14652 |
+
_fnGetWidestNode: _fnGetWidestNode,
|
14653 |
+
_fnGetMaxLenString: _fnGetMaxLenString,
|
14654 |
+
_fnStringToCss: _fnStringToCss,
|
14655 |
+
_fnScrollBarWidth: _fnScrollBarWidth,
|
14656 |
+
_fnSortFlatten: _fnSortFlatten,
|
14657 |
+
_fnSort: _fnSort,
|
14658 |
+
_fnSortAria: _fnSortAria,
|
14659 |
+
_fnSortListener: _fnSortListener,
|
14660 |
+
_fnSortAttachListener: _fnSortAttachListener,
|
14661 |
+
_fnSortingClasses: _fnSortingClasses,
|
14662 |
+
_fnSortData: _fnSortData,
|
14663 |
+
_fnSaveState: _fnSaveState,
|
14664 |
+
_fnLoadState: _fnLoadState,
|
14665 |
+
_fnSettingsFromNode: _fnSettingsFromNode,
|
14666 |
+
_fnLog: _fnLog,
|
14667 |
+
_fnMap: _fnMap,
|
14668 |
+
_fnBindAction: _fnBindAction,
|
14669 |
+
_fnCallbackReg: _fnCallbackReg,
|
14670 |
+
_fnCallbackFire: _fnCallbackFire,
|
14671 |
+
_fnLengthOverflow: _fnLengthOverflow,
|
14672 |
+
_fnRenderer: _fnRenderer,
|
14673 |
+
_fnDataSource: _fnDataSource,
|
14674 |
+
_fnRowAttributes: _fnRowAttributes,
|
14675 |
+
_fnCalculateEnd: function () {} // Used by a lot of plug-ins, but redundant
|
14676 |
+
// in 1.10, so this dead-end function is
|
14677 |
+
// added to prevent errors
|
14678 |
+
} );
|
14679 |
|
14680 |
|
14681 |
+
// jQuery access
|
|
|
14682 |
$.fn.dataTable = DataTable;
|
14683 |
+
|
14684 |
+
// Legacy aliases
|
14685 |
$.fn.dataTableSettings = DataTable.settings;
|
14686 |
$.fn.dataTableExt = DataTable.ext;
|
14687 |
|
14688 |
+
// With a capital `D` we return a DataTables API instance rather than a
|
14689 |
+
// jQuery object
|
14690 |
+
$.fn.DataTable = function ( opts ) {
|
14691 |
+
return $(this).dataTable( opts ).api();
|
14692 |
+
};
|
14693 |
+
|
14694 |
+
// All properties that are available to $.fn.dataTable should also be
|
14695 |
+
// available on $.fn.DataTable
|
14696 |
+
$.each( DataTable, function ( prop, val ) {
|
14697 |
+
$.fn.DataTable[ prop ] = val;
|
14698 |
+
} );
|
14699 |
+
|
14700 |
|
14701 |
// Information about events fired by DataTables - for documentation.
|
14702 |
/**
|
14703 |
+
* Draw event, fired whenever the table is redrawn on the page, at the same
|
14704 |
+
* point as fnDrawCallback. This may be useful for binding events or
|
14705 |
+
* performing calculations when the table is altered at all.
|
14706 |
+
* @name DataTable#draw.dt
|
14707 |
* @event
|
14708 |
* @param {event} e jQuery event object
|
14709 |
* @param {object} o DataTables settings object {@link DataTable.models.oSettings}
|
14710 |
*/
|
14711 |
|
14712 |
/**
|
14713 |
+
* Search event, fired when the searching applied to the table (using the
|
14714 |
+
* built-in global search, or column filters) is altered.
|
14715 |
+
* @name DataTable#search.dt
|
14716 |
* @event
|
14717 |
* @param {event} e jQuery event object
|
14718 |
* @param {object} o DataTables settings object {@link DataTable.models.oSettings}
|
14720 |
|
14721 |
/**
|
14722 |
* Page change event, fired when the paging of the table is altered.
|
14723 |
+
* @name DataTable#page.dt
|
14724 |
* @event
|
14725 |
* @param {event} e jQuery event object
|
14726 |
* @param {object} o DataTables settings object {@link DataTable.models.oSettings}
|
14727 |
*/
|
14728 |
|
14729 |
/**
|
14730 |
+
* Order event, fired when the ordering applied to the table is altered.
|
14731 |
+
* @name DataTable#order.dt
|
14732 |
* @event
|
14733 |
* @param {event} e jQuery event object
|
14734 |
* @param {object} o DataTables settings object {@link DataTable.models.oSettings}
|
14735 |
*/
|
14736 |
|
14737 |
/**
|
14738 |
+
* DataTables initialisation complete event, fired when the table is fully
|
14739 |
+
* drawn, including Ajax data loaded, if Ajax data is required.
|
14740 |
+
* @name DataTable#init.dt
|
14741 |
* @event
|
14742 |
* @param {event} e jQuery event object
|
14743 |
* @param {object} oSettings DataTables settings object
|
14746 |
*/
|
14747 |
|
14748 |
/**
|
14749 |
+
* State save event, fired when the table has changed state a new state save
|
14750 |
+
* is required. This event allows modification of the state saving object
|
14751 |
+
* prior to actually doing the save, including addition or other state
|
14752 |
+
* properties (for plug-ins) or modification of a DataTables core property.
|
14753 |
+
* @name DataTable#stateSaveParams.dt
|
14754 |
* @event
|
14755 |
* @param {event} e jQuery event object
|
14756 |
* @param {object} oSettings DataTables settings object
|
14758 |
*/
|
14759 |
|
14760 |
/**
|
14761 |
+
* State load event, fired when the table is loading state from the stored
|
14762 |
+
* data, but prior to the settings object being modified by the saved state
|
14763 |
+
* - allowing modification of the saved state is required or loading of
|
14764 |
+
* state for a plug-in.
|
14765 |
+
* @name DataTable#stateLoadParams.dt
|
14766 |
* @event
|
14767 |
* @param {event} e jQuery event object
|
14768 |
* @param {object} oSettings DataTables settings object
|
14770 |
*/
|
14771 |
|
14772 |
/**
|
14773 |
+
* State loaded event, fired when state has been loaded from stored data and
|
14774 |
+
* the settings object has been modified by the loaded data.
|
14775 |
+
* @name DataTable#stateLoaded.dt
|
14776 |
* @event
|
14777 |
* @param {event} e jQuery event object
|
14778 |
* @param {object} oSettings DataTables settings object
|
14780 |
*/
|
14781 |
|
14782 |
/**
|
14783 |
+
* Processing event, fired when DataTables is doing some kind of processing
|
14784 |
+
* (be it, order, searcg or anything else). It can be used to indicate to
|
14785 |
+
* the end user that there is something happening, or that something has
|
14786 |
+
* finished.
|
14787 |
+
* @name DataTable#processing.dt
|
14788 |
* @event
|
14789 |
* @param {event} e jQuery event object
|
14790 |
* @param {object} oSettings DataTables settings object
|
14792 |
*/
|
14793 |
|
14794 |
/**
|
14795 |
+
* Ajax (XHR) event, fired whenever an Ajax request is completed from a
|
14796 |
+
* request to made to the server for new data. This event is called before
|
14797 |
+
* DataTables processed the returned data, so it can also be used to pre-
|
14798 |
+
* process the data returned from the server, if needed.
|
14799 |
+
*
|
14800 |
+
* Note that this trigger is called in `fnServerData`, if you override
|
14801 |
+
* `fnServerData` and which to use this event, you need to trigger it in you
|
14802 |
+
* success function.
|
14803 |
+
* @name DataTable#xhr.dt
|
14804 |
* @event
|
14805 |
* @param {event} e jQuery event object
|
14806 |
* @param {object} o DataTables settings object {@link DataTable.models.oSettings}
|
14807 |
* @param {object} json JSON returned from the server
|
14808 |
+
*
|
14809 |
+
* @example
|
14810 |
+
* // Use a custom property returned from the server in another DOM element
|
14811 |
+
* $('#table').dataTable().on('xhr.dt', function (e, settings, json) {
|
14812 |
+
* $('#status').html( json.status );
|
14813 |
+
* } );
|
14814 |
+
*
|
14815 |
+
* @example
|
14816 |
+
* // Pre-process the data returned from the server
|
14817 |
+
* $('#table').dataTable().on('xhr.dt', function (e, settings, json) {
|
14818 |
+
* for ( var i=0, ien=json.aaData.length ; i<ien ; i++ ) {
|
14819 |
+
* json.aaData[i].sum = json.aaData[i].one + json.aaData[i].two;
|
14820 |
+
* }
|
14821 |
+
* // Note no return - manipulate the data directly in the JSON object.
|
14822 |
+
* } );
|
14823 |
+
*/
|
14824 |
+
|
14825 |
+
/**
|
14826 |
+
* Destroy event, fired when the DataTable is destroyed by calling fnDestroy
|
14827 |
+
* or passing the bDestroy:true parameter in the initialisation object. This
|
14828 |
+
* can be used to remove bound events, added DOM nodes, etc.
|
14829 |
+
* @name DataTable#destroy.dt
|
14830 |
+
* @event
|
14831 |
+
* @param {event} e jQuery event object
|
14832 |
+
* @param {object} o DataTables settings object {@link DataTable.models.oSettings}
|
14833 |
+
*/
|
14834 |
+
|
14835 |
+
/**
|
14836 |
+
* Page length change event, fired when number of records to show on each
|
14837 |
+
* page (the length) is changed.
|
14838 |
+
* @name DataTable#length.dt
|
14839 |
+
* @event
|
14840 |
+
* @param {event} e jQuery event object
|
14841 |
+
* @param {object} o DataTables settings object {@link DataTable.models.oSettings}
|
14842 |
+
* @param {integer} len New length
|
14843 |
+
*/
|
14844 |
+
|
14845 |
+
/**
|
14846 |
+
* Column sizing has changed.
|
14847 |
+
* @name DataTable#column-sizing.dt
|
14848 |
+
* @event
|
14849 |
+
* @param {event} e jQuery event object
|
14850 |
+
* @param {object} o DataTables settings object {@link DataTable.models.oSettings}
|
14851 |
*/
|
14852 |
|
14853 |
/**
|
14854 |
+
* Column visibility has changed.
|
14855 |
+
* @name DataTable#column-visibility.dt
|
|
|
|
|
14856 |
* @event
|
14857 |
* @param {event} e jQuery event object
|
14858 |
* @param {object} o DataTables settings object {@link DataTable.models.oSettings}
|
14859 |
+
* @param {int} column Column index
|
14860 |
+
* @param {bool} vis `false` if column now hidden, or `true` if visible
|
14861 |
*/
|
14862 |
+
|
14863 |
+
return $.fn.dataTable;
|
14864 |
}));
|
14865 |
|
14866 |
}(window, document));
|
js/jquery.dataTables.min.js
ADDED
@@ -0,0 +1,158 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*! DataTables 1.10.5
|
2 |
+
* ©2008-2015 SpryMedia Ltd - datatables.net/license
|
3 |
+
*/
|
4 |
+
(function(Ea,P,k){var O=function(h){function V(a){var b,c,e={};h.each(a,function(d){if((b=d.match(/^([^A-Z]+?)([A-Z])/))&&-1!=="a aa ai ao as b fn i m o s ".indexOf(b[1]+" "))c=d.replace(b[0],b[2].toLowerCase()),e[c]=d,"o"===b[1]&&V(a[d])});a._hungarianMap=e}function H(a,b,c){a._hungarianMap||V(a);var e;h.each(b,function(d){e=a._hungarianMap[d];if(e!==k&&(c||b[e]===k))"o"===e.charAt(0)?(b[e]||(b[e]={}),h.extend(!0,b[e],b[d]),H(a[e],b[e],c)):b[e]=b[d]})}function O(a){var b=o.defaults.oLanguage,c=a.sZeroRecords;
|
5 |
+
!a.sEmptyTable&&(c&&"No data available in table"===b.sEmptyTable)&&E(a,a,"sZeroRecords","sEmptyTable");!a.sLoadingRecords&&(c&&"Loading..."===b.sLoadingRecords)&&E(a,a,"sZeroRecords","sLoadingRecords");a.sInfoThousands&&(a.sThousands=a.sInfoThousands);(a=a.sDecimal)&&db(a)}function eb(a){A(a,"ordering","bSort");A(a,"orderMulti","bSortMulti");A(a,"orderClasses","bSortClasses");A(a,"orderCellsTop","bSortCellsTop");A(a,"order","aaSorting");A(a,"orderFixed","aaSortingFixed");A(a,"paging","bPaginate");
|
6 |
+
A(a,"pagingType","sPaginationType");A(a,"pageLength","iDisplayLength");A(a,"searching","bFilter");if(a=a.aoSearchCols)for(var b=0,c=a.length;b<c;b++)a[b]&&H(o.models.oSearch,a[b])}function fb(a){A(a,"orderable","bSortable");A(a,"orderData","aDataSort");A(a,"orderSequence","asSorting");A(a,"orderDataType","sortDataType")}function gb(a){var a=a.oBrowser,b=h("<div/>").css({position:"absolute",top:0,left:0,height:1,width:1,overflow:"hidden"}).append(h("<div/>").css({position:"absolute",top:1,left:1,width:100,
|
7 |
+
overflow:"scroll"}).append(h('<div class="test"/>').css({width:"100%",height:10}))).appendTo("body"),c=b.find(".test");a.bScrollOversize=100===c[0].offsetWidth;a.bScrollbarLeft=1!==c.offset().left;b.remove()}function hb(a,b,c,e,d,f){var g,j=!1;c!==k&&(g=c,j=!0);for(;e!==d;)a.hasOwnProperty(e)&&(g=j?b(g,a[e],e,a):a[e],j=!0,e+=f);return g}function Fa(a,b){var c=o.defaults.column,e=a.aoColumns.length,c=h.extend({},o.models.oColumn,c,{nTh:b?b:P.createElement("th"),sTitle:c.sTitle?c.sTitle:b?b.innerHTML:
|
8 |
+
"",aDataSort:c.aDataSort?c.aDataSort:[e],mData:c.mData?c.mData:e,idx:e});a.aoColumns.push(c);c=a.aoPreSearchCols;c[e]=h.extend({},o.models.oSearch,c[e]);ka(a,e,h(b).data())}function ka(a,b,c){var b=a.aoColumns[b],e=a.oClasses,d=h(b.nTh);if(!b.sWidthOrig){b.sWidthOrig=d.attr("width")||null;var f=(d.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/);f&&(b.sWidthOrig=f[1])}c!==k&&null!==c&&(fb(c),H(o.defaults.column,c),c.mDataProp!==k&&!c.mData&&(c.mData=c.mDataProp),c.sType&&(b._sManualType=c.sType),
|
9 |
+
c.className&&!c.sClass&&(c.sClass=c.className),h.extend(b,c),E(b,c,"sWidth","sWidthOrig"),"number"===typeof c.iDataSort&&(b.aDataSort=[c.iDataSort]),E(b,c,"aDataSort"));var g=b.mData,j=W(g),i=b.mRender?W(b.mRender):null,c=function(a){return"string"===typeof a&&-1!==a.indexOf("@")};b._bAttrSrc=h.isPlainObject(g)&&(c(g.sort)||c(g.type)||c(g.filter));b.fnGetData=function(a,b,c){var e=j(a,b,k,c);return i&&b?i(e,b,a,c):e};b.fnSetData=function(a,b,c){return Q(g)(a,b,c)};"number"!==typeof g&&(a._rowReadObject=
|
10 |
+
!0);a.oFeatures.bSort||(b.bSortable=!1,d.addClass(e.sSortableNone));a=-1!==h.inArray("asc",b.asSorting);c=-1!==h.inArray("desc",b.asSorting);!b.bSortable||!a&&!c?(b.sSortingClass=e.sSortableNone,b.sSortingClassJUI=""):a&&!c?(b.sSortingClass=e.sSortableAsc,b.sSortingClassJUI=e.sSortJUIAscAllowed):!a&&c?(b.sSortingClass=e.sSortableDesc,b.sSortingClassJUI=e.sSortJUIDescAllowed):(b.sSortingClass=e.sSortable,b.sSortingClassJUI=e.sSortJUI)}function X(a){if(!1!==a.oFeatures.bAutoWidth){var b=a.aoColumns;
|
11 |
+
Ga(a);for(var c=0,e=b.length;c<e;c++)b[c].nTh.style.width=b[c].sWidth}b=a.oScroll;(""!==b.sY||""!==b.sX)&&Y(a);w(a,null,"column-sizing",[a])}function la(a,b){var c=Z(a,"bVisible");return"number"===typeof c[b]?c[b]:null}function $(a,b){var c=Z(a,"bVisible"),c=h.inArray(b,c);return-1!==c?c:null}function aa(a){return Z(a,"bVisible").length}function Z(a,b){var c=[];h.map(a.aoColumns,function(a,d){a[b]&&c.push(d)});return c}function Ha(a){var b=a.aoColumns,c=a.aoData,e=o.ext.type.detect,d,f,g,j,i,h,l,
|
12 |
+
p,n;d=0;for(f=b.length;d<f;d++)if(l=b[d],n=[],!l.sType&&l._sManualType)l.sType=l._sManualType;else if(!l.sType){g=0;for(j=e.length;g<j;g++){i=0;for(h=c.length;i<h;i++){n[i]===k&&(n[i]=y(a,i,d,"type"));p=e[g](n[i],a);if(!p&&g!==e.length-1)break;if("html"===p)break}if(p){l.sType=p;break}}l.sType||(l.sType="string")}}function ib(a,b,c,e){var d,f,g,j,i,m,l=a.aoColumns;if(b)for(d=b.length-1;0<=d;d--){m=b[d];var p=m.targets!==k?m.targets:m.aTargets;h.isArray(p)||(p=[p]);f=0;for(g=p.length;f<g;f++)if("number"===
|
13 |
+
typeof p[f]&&0<=p[f]){for(;l.length<=p[f];)Fa(a);e(p[f],m)}else if("number"===typeof p[f]&&0>p[f])e(l.length+p[f],m);else if("string"===typeof p[f]){j=0;for(i=l.length;j<i;j++)("_all"==p[f]||h(l[j].nTh).hasClass(p[f]))&&e(j,m)}}if(c){d=0;for(a=c.length;d<a;d++)e(d,c[d])}}function J(a,b,c,e){var d=a.aoData.length,f=h.extend(!0,{},o.models.oRow,{src:c?"dom":"data"});f._aData=b;a.aoData.push(f);for(var b=a.aoColumns,f=0,g=b.length;f<g;f++)c&&Ia(a,d,f,y(a,d,f)),b[f].sType=null;a.aiDisplayMaster.push(d);
|
14 |
+
(c||!a.oFeatures.bDeferRender)&&Ja(a,d,c,e);return d}function ma(a,b){var c;b instanceof h||(b=h(b));return b.map(function(b,d){c=na(a,d);return J(a,c.data,d,c.cells)})}function y(a,b,c,e){var d=a.iDraw,f=a.aoColumns[c],g=a.aoData[b]._aData,j=f.sDefaultContent,c=f.fnGetData(g,e,{settings:a,row:b,col:c});if(c===k)return a.iDrawError!=d&&null===j&&(R(a,0,"Requested unknown parameter "+("function"==typeof f.mData?"{function}":"'"+f.mData+"'")+" for row "+b,4),a.iDrawError=d),j;if((c===g||null===c)&&
|
15 |
+
null!==j)c=j;else if("function"===typeof c)return c.call(g);return null===c&&"display"==e?"":c}function Ia(a,b,c,e){a.aoColumns[c].fnSetData(a.aoData[b]._aData,e,{settings:a,row:b,col:c})}function Ka(a){return h.map(a.match(/(\\.|[^\.])+/g),function(a){return a.replace(/\\./g,".")})}function W(a){if(h.isPlainObject(a)){var b={};h.each(a,function(a,c){c&&(b[a]=W(c))});return function(a,c,f,g){var j=b[c]||b._;return j!==k?j(a,c,f,g):a}}if(null===a)return function(a){return a};if("function"===typeof a)return function(b,
|
16 |
+
c,f,g){return a(b,c,f,g)};if("string"===typeof a&&(-1!==a.indexOf(".")||-1!==a.indexOf("[")||-1!==a.indexOf("("))){var c=function(a,b,f){var g,j;if(""!==f){j=Ka(f);for(var i=0,h=j.length;i<h;i++){f=j[i].match(ba);g=j[i].match(S);if(f){j[i]=j[i].replace(ba,"");""!==j[i]&&(a=a[j[i]]);g=[];j.splice(0,i+1);j=j.join(".");i=0;for(h=a.length;i<h;i++)g.push(c(a[i],b,j));a=f[0].substring(1,f[0].length-1);a=""===a?g:g.join(a);break}else if(g){j[i]=j[i].replace(S,"");a=a[j[i]]();continue}if(null===a||a[j[i]]===
|
17 |
+
k)return k;a=a[j[i]]}}return a};return function(b,d){return c(b,d,a)}}return function(b){return b[a]}}function Q(a){if(h.isPlainObject(a))return Q(a._);if(null===a)return function(){};if("function"===typeof a)return function(b,e,d){a(b,"set",e,d)};if("string"===typeof a&&(-1!==a.indexOf(".")||-1!==a.indexOf("[")||-1!==a.indexOf("("))){var b=function(a,e,d){var d=Ka(d),f;f=d[d.length-1];for(var g,j,i=0,h=d.length-1;i<h;i++){g=d[i].match(ba);j=d[i].match(S);if(g){d[i]=d[i].replace(ba,"");a[d[i]]=[];
|
18 |
+
f=d.slice();f.splice(0,i+1);g=f.join(".");j=0;for(h=e.length;j<h;j++)f={},b(f,e[j],g),a[d[i]].push(f);return}j&&(d[i]=d[i].replace(S,""),a=a[d[i]](e));if(null===a[d[i]]||a[d[i]]===k)a[d[i]]={};a=a[d[i]]}if(f.match(S))a[f.replace(S,"")](e);else a[f.replace(ba,"")]=e};return function(c,e){return b(c,e,a)}}return function(b,e){b[a]=e}}function La(a){return D(a.aoData,"_aData")}function oa(a){a.aoData.length=0;a.aiDisplayMaster.length=0;a.aiDisplay.length=0}function pa(a,b,c){for(var e=-1,d=0,f=a.length;d<
|
19 |
+
f;d++)a[d]==b?e=d:a[d]>b&&a[d]--; -1!=e&&c===k&&a.splice(e,1)}function ca(a,b,c,e){var d=a.aoData[b],f,g=function(c,f){for(;c.childNodes.length;)c.removeChild(c.firstChild);c.innerHTML=y(a,b,f,"display")};if("dom"===c||(!c||"auto"===c)&&"dom"===d.src)d._aData=na(a,d,e,e===k?k:d._aData).data;else{var j=d.anCells;if(j)if(e!==k)g(j[e],e);else{c=0;for(f=j.length;c<f;c++)g(j[c],c)}}d._aSortData=null;d._aFilterData=null;g=a.aoColumns;if(e!==k)g[e].sType=null;else{c=0;for(f=g.length;c<f;c++)g[c].sType=null;
|
20 |
+
Ma(d)}}function na(a,b,c,e){var d=[],f=b.firstChild,g,j=0,i,m=a.aoColumns,l=a._rowReadObject,e=e||l?{}:[],p=function(a,b){if("string"===typeof a){var c=a.indexOf("@");-1!==c&&(c=a.substring(c+1),Q(a)(e,b.getAttribute(c)))}},a=function(a){if(c===k||c===j)g=m[j],i=h.trim(a.innerHTML),g&&g._bAttrSrc?(Q(g.mData._)(e,i),p(g.mData.sort,a),p(g.mData.type,a),p(g.mData.filter,a)):l?(g._setter||(g._setter=Q(g.mData)),g._setter(e,i)):e[j]=i;j++};if(f)for(;f;){b=f.nodeName.toUpperCase();if("TD"==b||"TH"==b)a(f),
|
21 |
+
d.push(f);f=f.nextSibling}else{d=b.anCells;f=0;for(b=d.length;f<b;f++)a(d[f])}return{data:e,cells:d}}function Ja(a,b,c,e){var d=a.aoData[b],f=d._aData,g=[],j,i,h,l,p;if(null===d.nTr){j=c||P.createElement("tr");d.nTr=j;d.anCells=g;j._DT_RowIndex=b;Ma(d);l=0;for(p=a.aoColumns.length;l<p;l++){h=a.aoColumns[l];i=c?e[l]:P.createElement(h.sCellType);g.push(i);if(!c||h.mRender||h.mData!==l)i.innerHTML=y(a,b,l,"display");h.sClass&&(i.className+=" "+h.sClass);h.bVisible&&!c?j.appendChild(i):!h.bVisible&&c&&
|
22 |
+
i.parentNode.removeChild(i);h.fnCreatedCell&&h.fnCreatedCell.call(a.oInstance,i,y(a,b,l),f,b,l)}w(a,"aoRowCreatedCallback",null,[j,f,b])}d.nTr.setAttribute("role","row")}function Ma(a){var b=a.nTr,c=a._aData;if(b){c.DT_RowId&&(b.id=c.DT_RowId);if(c.DT_RowClass){var e=c.DT_RowClass.split(" ");a.__rowc=a.__rowc?Na(a.__rowc.concat(e)):e;h(b).removeClass(a.__rowc.join(" ")).addClass(c.DT_RowClass)}c.DT_RowAttr&&h(b).attr(c.DT_RowAttr);c.DT_RowData&&h(b).data(c.DT_RowData)}}function jb(a){var b,c,e,d,
|
23 |
+
f,g=a.nTHead,j=a.nTFoot,i=0===h("th, td",g).length,m=a.oClasses,l=a.aoColumns;i&&(d=h("<tr/>").appendTo(g));b=0;for(c=l.length;b<c;b++)f=l[b],e=h(f.nTh).addClass(f.sClass),i&&e.appendTo(d),a.oFeatures.bSort&&(e.addClass(f.sSortingClass),!1!==f.bSortable&&(e.attr("tabindex",a.iTabIndex).attr("aria-controls",a.sTableId),Oa(a,f.nTh,b))),f.sTitle!=e.html()&&e.html(f.sTitle),Pa(a,"header")(a,e,f,m);i&&da(a.aoHeader,g);h(g).find(">tr").attr("role","row");h(g).find(">tr>th, >tr>td").addClass(m.sHeaderTH);
|
24 |
+
h(j).find(">tr>th, >tr>td").addClass(m.sFooterTH);if(null!==j){a=a.aoFooter[0];b=0;for(c=a.length;b<c;b++)f=l[b],f.nTf=a[b].cell,f.sClass&&h(f.nTf).addClass(f.sClass)}}function ea(a,b,c){var e,d,f,g=[],j=[],i=a.aoColumns.length,m;if(b){c===k&&(c=!1);e=0;for(d=b.length;e<d;e++){g[e]=b[e].slice();g[e].nTr=b[e].nTr;for(f=i-1;0<=f;f--)!a.aoColumns[f].bVisible&&!c&&g[e].splice(f,1);j.push([])}e=0;for(d=g.length;e<d;e++){if(a=g[e].nTr)for(;f=a.firstChild;)a.removeChild(f);f=0;for(b=g[e].length;f<b;f++)if(m=
|
25 |
+
i=1,j[e][f]===k){a.appendChild(g[e][f].cell);for(j[e][f]=1;g[e+i]!==k&&g[e][f].cell==g[e+i][f].cell;)j[e+i][f]=1,i++;for(;g[e][f+m]!==k&&g[e][f].cell==g[e][f+m].cell;){for(c=0;c<i;c++)j[e+c][f+m]=1;m++}h(g[e][f].cell).attr("rowspan",i).attr("colspan",m)}}}}function M(a){var b=w(a,"aoPreDrawCallback","preDraw",[a]);if(-1!==h.inArray(!1,b))C(a,!1);else{var b=[],c=0,e=a.asStripeClasses,d=e.length,f=a.oLanguage,g=a.iInitDisplayStart,j="ssp"==B(a),i=a.aiDisplay;a.bDrawing=!0;g!==k&&-1!==g&&(a._iDisplayStart=
|
26 |
+
j?g:g>=a.fnRecordsDisplay()?0:g,a.iInitDisplayStart=-1);var g=a._iDisplayStart,m=a.fnDisplayEnd();if(a.bDeferLoading)a.bDeferLoading=!1,a.iDraw++,C(a,!1);else if(j){if(!a.bDestroying&&!kb(a))return}else a.iDraw++;if(0!==i.length){f=j?a.aoData.length:m;for(j=j?0:g;j<f;j++){var l=i[j],p=a.aoData[l];null===p.nTr&&Ja(a,l);l=p.nTr;if(0!==d){var n=e[c%d];p._sRowStripe!=n&&(h(l).removeClass(p._sRowStripe).addClass(n),p._sRowStripe=n)}w(a,"aoRowCallback",null,[l,p._aData,c,j]);b.push(l);c++}}else c=f.sZeroRecords,
|
27 |
+
1==a.iDraw&&"ajax"==B(a)?c=f.sLoadingRecords:f.sEmptyTable&&0===a.fnRecordsTotal()&&(c=f.sEmptyTable),b[0]=h("<tr/>",{"class":d?e[0]:""}).append(h("<td />",{valign:"top",colSpan:aa(a),"class":a.oClasses.sRowEmpty}).html(c))[0];w(a,"aoHeaderCallback","header",[h(a.nTHead).children("tr")[0],La(a),g,m,i]);w(a,"aoFooterCallback","footer",[h(a.nTFoot).children("tr")[0],La(a),g,m,i]);e=h(a.nTBody);e.children().detach();e.append(h(b));w(a,"aoDrawCallback","draw",[a]);a.bSorted=!1;a.bFiltered=!1;a.bDrawing=
|
28 |
+
!1}}function N(a,b){var c=a.oFeatures,e=c.bFilter;c.bSort&&lb(a);e?fa(a,a.oPreviousSearch):a.aiDisplay=a.aiDisplayMaster.slice();!0!==b&&(a._iDisplayStart=0);a._drawHold=b;M(a);a._drawHold=!1}function mb(a){var b=a.oClasses,c=h(a.nTable),c=h("<div/>").insertBefore(c),e=a.oFeatures,d=h("<div/>",{id:a.sTableId+"_wrapper","class":b.sWrapper+(a.nTFoot?"":" "+b.sNoFooter)});a.nHolding=c[0];a.nTableWrapper=d[0];a.nTableReinsertBefore=a.nTable.nextSibling;for(var f=a.sDom.split(""),g,j,i,m,l,p,n=0;n<f.length;n++){g=
|
29 |
+
null;j=f[n];if("<"==j){i=h("<div/>")[0];m=f[n+1];if("'"==m||'"'==m){l="";for(p=2;f[n+p]!=m;)l+=f[n+p],p++;"H"==l?l=b.sJUIHeader:"F"==l&&(l=b.sJUIFooter);-1!=l.indexOf(".")?(m=l.split("."),i.id=m[0].substr(1,m[0].length-1),i.className=m[1]):"#"==l.charAt(0)?i.id=l.substr(1,l.length-1):i.className=l;n+=p}d.append(i);d=h(i)}else if(">"==j)d=d.parent();else if("l"==j&&e.bPaginate&&e.bLengthChange)g=nb(a);else if("f"==j&&e.bFilter)g=ob(a);else if("r"==j&&e.bProcessing)g=pb(a);else if("t"==j)g=qb(a);else if("i"==
|
30 |
+
j&&e.bInfo)g=rb(a);else if("p"==j&&e.bPaginate)g=sb(a);else if(0!==o.ext.feature.length){i=o.ext.feature;p=0;for(m=i.length;p<m;p++)if(j==i[p].cFeature){g=i[p].fnInit(a);break}}g&&(i=a.aanFeatures,i[j]||(i[j]=[]),i[j].push(g),d.append(g))}c.replaceWith(d)}function da(a,b){var c=h(b).children("tr"),e,d,f,g,j,i,m,l,p,n;a.splice(0,a.length);f=0;for(i=c.length;f<i;f++)a.push([]);f=0;for(i=c.length;f<i;f++){e=c[f];for(d=e.firstChild;d;){if("TD"==d.nodeName.toUpperCase()||"TH"==d.nodeName.toUpperCase()){l=
|
31 |
+
1*d.getAttribute("colspan");p=1*d.getAttribute("rowspan");l=!l||0===l||1===l?1:l;p=!p||0===p||1===p?1:p;g=0;for(j=a[f];j[g];)g++;m=g;n=1===l?!0:!1;for(j=0;j<l;j++)for(g=0;g<p;g++)a[f+g][m+j]={cell:d,unique:n},a[f+g].nTr=e}d=d.nextSibling}}}function qa(a,b,c){var e=[];c||(c=a.aoHeader,b&&(c=[],da(c,b)));for(var b=0,d=c.length;b<d;b++)for(var f=0,g=c[b].length;f<g;f++)if(c[b][f].unique&&(!e[f]||!a.bSortCellsTop))e[f]=c[b][f].cell;return e}function ra(a,b,c){w(a,"aoServerParams","serverParams",[b]);
|
32 |
+
if(b&&h.isArray(b)){var e={},d=/(.*?)\[\]$/;h.each(b,function(a,b){var c=b.name.match(d);c?(c=c[0],e[c]||(e[c]=[]),e[c].push(b.value)):e[b.name]=b.value});b=e}var f,g=a.ajax,j=a.oInstance;if(h.isPlainObject(g)&&g.data){f=g.data;var i=h.isFunction(f)?f(b):f,b=h.isFunction(f)&&i?i:h.extend(!0,b,i);delete g.data}i={data:b,success:function(b){var f=b.error||b.sError;f&&a.oApi._fnLog(a,0,f);a.json=b;w(a,null,"xhr",[a,b]);c(b)},dataType:"json",cache:!1,type:a.sServerMethod,error:function(b,c){var f=a.oApi._fnLog;
|
33 |
+
"parsererror"==c?f(a,0,"Invalid JSON response",1):4===b.readyState&&f(a,0,"Ajax error",7);C(a,!1)}};a.oAjaxData=b;w(a,null,"preXhr",[a,b]);a.fnServerData?a.fnServerData.call(j,a.sAjaxSource,h.map(b,function(a,b){return{name:b,value:a}}),c,a):a.sAjaxSource||"string"===typeof g?a.jqXHR=h.ajax(h.extend(i,{url:g||a.sAjaxSource})):h.isFunction(g)?a.jqXHR=g.call(j,b,c,a):(a.jqXHR=h.ajax(h.extend(i,g)),g.data=f)}function kb(a){return a.bAjaxDataGet?(a.iDraw++,C(a,!0),ra(a,tb(a),function(b){ub(a,b)}),!1):
|
34 |
+
!0}function tb(a){var b=a.aoColumns,c=b.length,e=a.oFeatures,d=a.oPreviousSearch,f=a.aoPreSearchCols,g,j=[],i,m,l,p=T(a);g=a._iDisplayStart;i=!1!==e.bPaginate?a._iDisplayLength:-1;var n=function(a,b){j.push({name:a,value:b})};n("sEcho",a.iDraw);n("iColumns",c);n("sColumns",D(b,"sName").join(","));n("iDisplayStart",g);n("iDisplayLength",i);var k={draw:a.iDraw,columns:[],order:[],start:g,length:i,search:{value:d.sSearch,regex:d.bRegex}};for(g=0;g<c;g++)m=b[g],l=f[g],i="function"==typeof m.mData?"function":
|
35 |
+
m.mData,k.columns.push({data:i,name:m.sName,searchable:m.bSearchable,orderable:m.bSortable,search:{value:l.sSearch,regex:l.bRegex}}),n("mDataProp_"+g,i),e.bFilter&&(n("sSearch_"+g,l.sSearch),n("bRegex_"+g,l.bRegex),n("bSearchable_"+g,m.bSearchable)),e.bSort&&n("bSortable_"+g,m.bSortable);e.bFilter&&(n("sSearch",d.sSearch),n("bRegex",d.bRegex));e.bSort&&(h.each(p,function(a,b){k.order.push({column:b.col,dir:b.dir});n("iSortCol_"+a,b.col);n("sSortDir_"+a,b.dir)}),n("iSortingCols",p.length));b=o.ext.legacy.ajax;
|
36 |
+
return null===b?a.sAjaxSource?j:k:b?j:k}function ub(a,b){var c=b.sEcho!==k?b.sEcho:b.draw,e=b.iTotalRecords!==k?b.iTotalRecords:b.recordsTotal,d=b.iTotalDisplayRecords!==k?b.iTotalDisplayRecords:b.recordsFiltered;if(c){if(1*c<a.iDraw)return;a.iDraw=1*c}oa(a);a._iRecordsTotal=parseInt(e,10);a._iRecordsDisplay=parseInt(d,10);c=sa(a,b);e=0;for(d=c.length;e<d;e++)J(a,c[e]);a.aiDisplay=a.aiDisplayMaster.slice();a.bAjaxDataGet=!1;M(a);a._bInitComplete||ta(a,b);a.bAjaxDataGet=!0;C(a,!1)}function sa(a,b){var c=
|
37 |
+
h.isPlainObject(a.ajax)&&a.ajax.dataSrc!==k?a.ajax.dataSrc:a.sAjaxDataProp;return"data"===c?b.aaData||b[c]:""!==c?W(c)(b):b}function ob(a){var b=a.oClasses,c=a.sTableId,e=a.oLanguage,d=a.oPreviousSearch,f=a.aanFeatures,g='<input type="search" class="'+b.sFilterInput+'"/>',j=e.sSearch,j=j.match(/_INPUT_/)?j.replace("_INPUT_",g):j+g,b=h("<div/>",{id:!f.f?c+"_filter":null,"class":b.sFilter}).append(h("<label/>").append(j)),f=function(){var b=!this.value?"":this.value;b!=d.sSearch&&(fa(a,{sSearch:b,bRegex:d.bRegex,
|
38 |
+
bSmart:d.bSmart,bCaseInsensitive:d.bCaseInsensitive}),a._iDisplayStart=0,M(a))},g=null!==a.searchDelay?a.searchDelay:"ssp"===B(a)?400:0,i=h("input",b).val(d.sSearch).attr("placeholder",e.sSearchPlaceholder).bind("keyup.DT search.DT input.DT paste.DT cut.DT",g?ua(f,g):f).bind("keypress.DT",function(a){if(13==a.keyCode)return!1}).attr("aria-controls",c);h(a.nTable).on("search.dt.DT",function(b,c){if(a===c)try{i[0]!==P.activeElement&&i.val(d.sSearch)}catch(f){}});return b[0]}function fa(a,b,c){var e=
|
39 |
+
a.oPreviousSearch,d=a.aoPreSearchCols,f=function(a){e.sSearch=a.sSearch;e.bRegex=a.bRegex;e.bSmart=a.bSmart;e.bCaseInsensitive=a.bCaseInsensitive};Ha(a);if("ssp"!=B(a)){vb(a,b.sSearch,c,b.bEscapeRegex!==k?!b.bEscapeRegex:b.bRegex,b.bSmart,b.bCaseInsensitive);f(b);for(b=0;b<d.length;b++)wb(a,d[b].sSearch,b,d[b].bEscapeRegex!==k?!d[b].bEscapeRegex:d[b].bRegex,d[b].bSmart,d[b].bCaseInsensitive);xb(a)}else f(b);a.bFiltered=!0;w(a,null,"search",[a])}function xb(a){for(var b=o.ext.search,c=a.aiDisplay,
|
40 |
+
e,d,f=0,g=b.length;f<g;f++){for(var j=[],i=0,h=c.length;i<h;i++)d=c[i],e=a.aoData[d],b[f](a,e._aFilterData,d,e._aData,i)&&j.push(d);c.length=0;c.push.apply(c,j)}}function wb(a,b,c,e,d,f){if(""!==b)for(var g=a.aiDisplay,e=Qa(b,e,d,f),d=g.length-1;0<=d;d--)b=a.aoData[g[d]]._aFilterData[c],e.test(b)||g.splice(d,1)}function vb(a,b,c,e,d,f){var e=Qa(b,e,d,f),d=a.oPreviousSearch.sSearch,f=a.aiDisplayMaster,g;0!==o.ext.search.length&&(c=!0);g=yb(a);if(0>=b.length)a.aiDisplay=f.slice();else{if(g||c||d.length>
|
41 |
+
b.length||0!==b.indexOf(d)||a.bSorted)a.aiDisplay=f.slice();b=a.aiDisplay;for(c=b.length-1;0<=c;c--)e.test(a.aoData[b[c]]._sFilterRow)||b.splice(c,1)}}function Qa(a,b,c,e){a=b?a:va(a);c&&(a="^(?=.*?"+h.map(a.match(/"[^"]+"|[^ ]+/g)||"",function(a){if('"'===a.charAt(0))var b=a.match(/^"(.*)"$/),a=b?b[1]:a;return a.replace('"',"")}).join(")(?=.*?")+").*$");return RegExp(a,e?"i":"")}function va(a){return a.replace(Yb,"\\$1")}function yb(a){var b=a.aoColumns,c,e,d,f,g,j,i,h,l=o.ext.type.search;c=!1;e=
|
42 |
+
0;for(f=a.aoData.length;e<f;e++)if(h=a.aoData[e],!h._aFilterData){j=[];d=0;for(g=b.length;d<g;d++)c=b[d],c.bSearchable?(i=y(a,e,d,"filter"),l[c.sType]&&(i=l[c.sType](i)),null===i&&(i=""),"string"!==typeof i&&i.toString&&(i=i.toString())):i="",i.indexOf&&-1!==i.indexOf("&")&&(wa.innerHTML=i,i=Zb?wa.textContent:wa.innerText),i.replace&&(i=i.replace(/[\r\n]/g,"")),j.push(i);h._aFilterData=j;h._sFilterRow=j.join(" ");c=!0}return c}function zb(a){return{search:a.sSearch,smart:a.bSmart,regex:a.bRegex,
|
43 |
+
caseInsensitive:a.bCaseInsensitive}}function Ab(a){return{sSearch:a.search,bSmart:a.smart,bRegex:a.regex,bCaseInsensitive:a.caseInsensitive}}function rb(a){var b=a.sTableId,c=a.aanFeatures.i,e=h("<div/>",{"class":a.oClasses.sInfo,id:!c?b+"_info":null});c||(a.aoDrawCallback.push({fn:Bb,sName:"information"}),e.attr("role","status").attr("aria-live","polite"),h(a.nTable).attr("aria-describedby",b+"_info"));return e[0]}function Bb(a){var b=a.aanFeatures.i;if(0!==b.length){var c=a.oLanguage,e=a._iDisplayStart+
|
44 |
+
1,d=a.fnDisplayEnd(),f=a.fnRecordsTotal(),g=a.fnRecordsDisplay(),j=g?c.sInfo:c.sInfoEmpty;g!==f&&(j+=" "+c.sInfoFiltered);j+=c.sInfoPostFix;j=Cb(a,j);c=c.fnInfoCallback;null!==c&&(j=c.call(a.oInstance,a,e,d,f,g,j));h(b).html(j)}}function Cb(a,b){var c=a.fnFormatNumber,e=a._iDisplayStart+1,d=a._iDisplayLength,f=a.fnRecordsDisplay(),g=-1===d;return b.replace(/_START_/g,c.call(a,e)).replace(/_END_/g,c.call(a,a.fnDisplayEnd())).replace(/_MAX_/g,c.call(a,a.fnRecordsTotal())).replace(/_TOTAL_/g,c.call(a,
|
45 |
+
f)).replace(/_PAGE_/g,c.call(a,g?1:Math.ceil(e/d))).replace(/_PAGES_/g,c.call(a,g?1:Math.ceil(f/d)))}function ga(a){var b,c,e=a.iInitDisplayStart,d=a.aoColumns,f;c=a.oFeatures;if(a.bInitialised){mb(a);jb(a);ea(a,a.aoHeader);ea(a,a.aoFooter);C(a,!0);c.bAutoWidth&&Ga(a);b=0;for(c=d.length;b<c;b++)f=d[b],f.sWidth&&(f.nTh.style.width=s(f.sWidth));N(a);d=B(a);"ssp"!=d&&("ajax"==d?ra(a,[],function(c){var f=sa(a,c);for(b=0;b<f.length;b++)J(a,f[b]);a.iInitDisplayStart=e;N(a);C(a,!1);ta(a,c)},a):(C(a,!1),
|
46 |
+
ta(a)))}else setTimeout(function(){ga(a)},200)}function ta(a,b){a._bInitComplete=!0;b&&X(a);w(a,"aoInitComplete","init",[a,b])}function Ra(a,b){var c=parseInt(b,10);a._iDisplayLength=c;Sa(a);w(a,null,"length",[a,c])}function nb(a){for(var b=a.oClasses,c=a.sTableId,e=a.aLengthMenu,d=h.isArray(e[0]),f=d?e[0]:e,e=d?e[1]:e,d=h("<select/>",{name:c+"_length","aria-controls":c,"class":b.sLengthSelect}),g=0,j=f.length;g<j;g++)d[0][g]=new Option(e[g],f[g]);var i=h("<div><label/></div>").addClass(b.sLength);
|
47 |
+
a.aanFeatures.l||(i[0].id=c+"_length");i.children().append(a.oLanguage.sLengthMenu.replace("_MENU_",d[0].outerHTML));h("select",i).val(a._iDisplayLength).bind("change.DT",function(){Ra(a,h(this).val());M(a)});h(a.nTable).bind("length.dt.DT",function(b,c,f){a===c&&h("select",i).val(f)});return i[0]}function sb(a){var b=a.sPaginationType,c=o.ext.pager[b],e="function"===typeof c,d=function(a){M(a)},b=h("<div/>").addClass(a.oClasses.sPaging+b)[0],f=a.aanFeatures;e||c.fnInit(a,b,d);f.p||(b.id=a.sTableId+
|
48 |
+
"_paginate",a.aoDrawCallback.push({fn:function(a){if(e){var b=a._iDisplayStart,h=a._iDisplayLength,m=a.fnRecordsDisplay(),l=-1===h,b=l?0:Math.ceil(b/h),h=l?1:Math.ceil(m/h),m=c(b,h),p,l=0;for(p=f.p.length;l<p;l++)Pa(a,"pageButton")(a,f.p[l],l,m,b,h)}else c.fnUpdate(a,d)},sName:"pagination"}));return b}function Ta(a,b,c){var e=a._iDisplayStart,d=a._iDisplayLength,f=a.fnRecordsDisplay();0===f||-1===d?e=0:"number"===typeof b?(e=b*d,e>f&&(e=0)):"first"==b?e=0:"previous"==b?(e=0<=d?e-d:0,0>e&&(e=0)):"next"==
|
49 |
+
b?e+d<f&&(e+=d):"last"==b?e=Math.floor((f-1)/d)*d:R(a,0,"Unknown paging action: "+b,5);b=a._iDisplayStart!==e;a._iDisplayStart=e;b&&(w(a,null,"page",[a]),c&&M(a));return b}function pb(a){return h("<div/>",{id:!a.aanFeatures.r?a.sTableId+"_processing":null,"class":a.oClasses.sProcessing}).html(a.oLanguage.sProcessing).insertBefore(a.nTable)[0]}function C(a,b){a.oFeatures.bProcessing&&h(a.aanFeatures.r).css("display",b?"block":"none");w(a,null,"processing",[a,b])}function qb(a){var b=h(a.nTable);b.attr("role",
|
50 |
+
"grid");var c=a.oScroll;if(""===c.sX&&""===c.sY)return a.nTable;var e=c.sX,d=c.sY,f=a.oClasses,g=b.children("caption"),j=g.length?g[0]._captionSide:null,i=h(b[0].cloneNode(!1)),m=h(b[0].cloneNode(!1)),l=b.children("tfoot");c.sX&&"100%"===b.attr("width")&&b.removeAttr("width");l.length||(l=null);c=h("<div/>",{"class":f.sScrollWrapper}).append(h("<div/>",{"class":f.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:e?!e?null:s(e):"100%"}).append(h("<div/>",{"class":f.sScrollHeadInner}).css({"box-sizing":"content-box",
|
51 |
+
width:c.sXInner||"100%"}).append(i.removeAttr("id").css("margin-left",0).append("top"===j?g:null).append(b.children("thead"))))).append(h("<div/>",{"class":f.sScrollBody}).css({overflow:"auto",height:!d?null:s(d),width:!e?null:s(e)}).append(b));l&&c.append(h("<div/>",{"class":f.sScrollFoot}).css({overflow:"hidden",border:0,width:e?!e?null:s(e):"100%"}).append(h("<div/>",{"class":f.sScrollFootInner}).append(m.removeAttr("id").css("margin-left",0).append("bottom"===j?g:null).append(b.children("tfoot")))));
|
52 |
+
var b=c.children(),p=b[0],f=b[1],n=l?b[2]:null;if(e)h(f).on("scroll.DT",function(){var a=this.scrollLeft;p.scrollLeft=a;l&&(n.scrollLeft=a)});a.nScrollHead=p;a.nScrollBody=f;a.nScrollFoot=n;a.aoDrawCallback.push({fn:Y,sName:"scrolling"});return c[0]}function Y(a){var b=a.oScroll,c=b.sX,e=b.sXInner,d=b.sY,f=b.iBarWidth,g=h(a.nScrollHead),j=g[0].style,i=g.children("div"),m=i[0].style,l=i.children("table"),i=a.nScrollBody,p=h(i),n=i.style,k=h(a.nScrollFoot).children("div"),q=k.children("table"),o=h(a.nTHead),
|
53 |
+
r=h(a.nTable),t=r[0],u=t.style,K=a.nTFoot?h(a.nTFoot):null,ha=a.oBrowser,w=ha.bScrollOversize,x,v,y,L,z,A=[],B=[],C=[],D,E=function(a){a=a.style;a.paddingTop="0";a.paddingBottom="0";a.borderTopWidth="0";a.borderBottomWidth="0";a.height=0};r.children("thead, tfoot").remove();z=o.clone().prependTo(r);x=o.find("tr");y=z.find("tr");z.find("th, td").removeAttr("tabindex");K&&(L=K.clone().prependTo(r),v=K.find("tr"),L=L.find("tr"));c||(n.width="100%",g[0].style.width="100%");h.each(qa(a,z),function(b,c){D=
|
54 |
+
la(a,b);c.style.width=a.aoColumns[D].sWidth});K&&G(function(a){a.style.width=""},L);b.bCollapse&&""!==d&&(n.height=p[0].offsetHeight+o[0].offsetHeight+"px");g=r.outerWidth();if(""===c){if(u.width="100%",w&&(r.find("tbody").height()>i.offsetHeight||"scroll"==p.css("overflow-y")))u.width=s(r.outerWidth()-f)}else""!==e?u.width=s(e):g==p.width()&&p.height()<r.height()?(u.width=s(g-f),r.outerWidth()>g-f&&(u.width=s(g))):u.width=s(g);g=r.outerWidth();G(E,y);G(function(a){C.push(a.innerHTML);A.push(s(h(a).css("width")))},
|
55 |
+
y);G(function(a,b){a.style.width=A[b]},x);h(y).height(0);K&&(G(E,L),G(function(a){B.push(s(h(a).css("width")))},L),G(function(a,b){a.style.width=B[b]},v),h(L).height(0));G(function(a,b){a.innerHTML='<div class="dataTables_sizing" style="height:0;overflow:hidden;">'+C[b]+"</div>";a.style.width=A[b]},y);K&&G(function(a,b){a.innerHTML="";a.style.width=B[b]},L);if(r.outerWidth()<g){v=i.scrollHeight>i.offsetHeight||"scroll"==p.css("overflow-y")?g+f:g;if(w&&(i.scrollHeight>i.offsetHeight||"scroll"==p.css("overflow-y")))u.width=
|
56 |
+
s(v-f);(""===c||""!==e)&&R(a,1,"Possible column misalignment",6)}else v="100%";n.width=s(v);j.width=s(v);K&&(a.nScrollFoot.style.width=s(v));!d&&w&&(n.height=s(t.offsetHeight+f));d&&b.bCollapse&&(n.height=s(d),b=c&&t.offsetWidth>i.offsetWidth?f:0,t.offsetHeight<i.offsetHeight&&(n.height=s(t.offsetHeight+b)));b=r.outerWidth();l[0].style.width=s(b);m.width=s(b);l=r.height()>i.clientHeight||"scroll"==p.css("overflow-y");ha="padding"+(ha.bScrollbarLeft?"Left":"Right");m[ha]=l?f+"px":"0px";K&&(q[0].style.width=
|
57 |
+
s(b),k[0].style.width=s(b),k[0].style[ha]=l?f+"px":"0px");p.scroll();if((a.bSorted||a.bFiltered)&&!a._drawHold)i.scrollTop=0}function G(a,b,c){for(var e=0,d=0,f=b.length,g,j;d<f;){g=b[d].firstChild;for(j=c?c[d].firstChild:null;g;)1===g.nodeType&&(c?a(g,j,e):a(g,e),e++),g=g.nextSibling,j=c?j.nextSibling:null;d++}}function Ga(a){var b=a.nTable,c=a.aoColumns,e=a.oScroll,d=e.sY,f=e.sX,g=e.sXInner,j=c.length,e=Z(a,"bVisible"),i=h("th",a.nTHead),m=b.style.width||b.getAttribute("width"),l=b.parentNode,p=
|
58 |
+
!1,n,k;for(n=0;n<e.length;n++)k=c[e[n]],null!==k.sWidth&&(k.sWidth=Db(k.sWidthOrig,l),p=!0);if(!p&&!f&&!d&&j==aa(a)&&j==i.length)for(n=0;n<j;n++)c[n].sWidth=s(i.eq(n).width());else{j=h(b).clone().empty().css("visibility","hidden").removeAttr("id").append(h(a.nTHead).clone(!1)).append(h(a.nTFoot).clone(!1)).append(h("<tbody><tr/></tbody>"));j.find("tfoot th, tfoot td").css("width","");var q=j.find("tbody tr"),i=qa(a,j.find("thead")[0]);for(n=0;n<e.length;n++)k=c[e[n]],i[n].style.width=null!==k.sWidthOrig&&
|
59 |
+
""!==k.sWidthOrig?s(k.sWidthOrig):"";if(a.aoData.length)for(n=0;n<e.length;n++)p=e[n],k=c[p],h(Eb(a,p)).clone(!1).append(k.sContentPadding).appendTo(q);j.appendTo(l);f&&g?j.width(g):f?(j.css("width","auto"),j.width()<l.offsetWidth&&j.width(l.offsetWidth)):d?j.width(l.offsetWidth):m&&j.width(m);Fb(a,j[0]);if(f){for(n=g=0;n<e.length;n++)k=c[e[n]],d=h(i[n]).outerWidth(),g+=null===k.sWidthOrig?d:parseInt(k.sWidth,10)+d-h(i[n]).width();j.width(s(g));b.style.width=s(g)}for(n=0;n<e.length;n++)if(k=c[e[n]],
|
60 |
+
d=h(i[n]).width())k.sWidth=s(d);b.style.width=s(j.css("width"));j.remove()}m&&(b.style.width=s(m));if((m||f)&&!a._reszEvt)h(Ea).bind("resize.DT-"+a.sInstance,ua(function(){X(a)})),a._reszEvt=!0}function ua(a,b){var c=b!==k?b:200,e,d;return function(){var b=this,g=+new Date,j=arguments;e&&g<e+c?(clearTimeout(d),d=setTimeout(function(){e=k;a.apply(b,j)},c)):(e=g,a.apply(b,j))}}function Db(a,b){if(!a)return 0;var c=h("<div/>").css("width",s(a)).appendTo(b||P.body),e=c[0].offsetWidth;c.remove();return e}
|
61 |
+
function Fb(a,b){var c=a.oScroll;if(c.sX||c.sY)c=!c.sX?c.iBarWidth:0,b.style.width=s(h(b).outerWidth()-c)}function Eb(a,b){var c=Gb(a,b);if(0>c)return null;var e=a.aoData[c];return!e.nTr?h("<td/>").html(y(a,c,b,"display"))[0]:e.anCells[b]}function Gb(a,b){for(var c,e=-1,d=-1,f=0,g=a.aoData.length;f<g;f++)c=y(a,f,b,"display")+"",c=c.replace($b,""),c.length>e&&(e=c.length,d=f);return d}function s(a){return null===a?"0px":"number"==typeof a?0>a?"0px":a+"px":a.match(/\d$/)?a+"px":a}function Hb(){if(!o.__scrollbarWidth){var a=
|
62 |
+
h("<p/>").css({width:"100%",height:200,padding:0})[0],b=h("<div/>").css({position:"absolute",top:0,left:0,width:200,height:150,padding:0,overflow:"hidden",visibility:"hidden"}).append(a).appendTo("body"),c=a.offsetWidth;b.css("overflow","scroll");a=a.offsetWidth;c===a&&(a=b[0].clientWidth);b.remove();o.__scrollbarWidth=c-a}return o.__scrollbarWidth}function T(a){var b,c,e=[],d=a.aoColumns,f,g,j,i;b=a.aaSortingFixed;c=h.isPlainObject(b);var m=[];f=function(a){a.length&&!h.isArray(a[0])?m.push(a):m.push.apply(m,
|
63 |
+
a)};h.isArray(b)&&f(b);c&&b.pre&&f(b.pre);f(a.aaSorting);c&&b.post&&f(b.post);for(a=0;a<m.length;a++){i=m[a][0];f=d[i].aDataSort;b=0;for(c=f.length;b<c;b++)g=f[b],j=d[g].sType||"string",m[a]._idx===k&&(m[a]._idx=h.inArray(m[a][1],d[g].asSorting)),e.push({src:i,col:g,dir:m[a][1],index:m[a]._idx,type:j,formatter:o.ext.type.order[j+"-pre"]})}return e}function lb(a){var b,c,e=[],d=o.ext.type.order,f=a.aoData,g=0,j,h=a.aiDisplayMaster,m;Ha(a);m=T(a);b=0;for(c=m.length;b<c;b++)j=m[b],j.formatter&&g++,Ib(a,
|
64 |
+
j.col);if("ssp"!=B(a)&&0!==m.length){b=0;for(c=h.length;b<c;b++)e[h[b]]=b;g===m.length?h.sort(function(a,b){var c,d,g,h,j=m.length,i=f[a]._aSortData,k=f[b]._aSortData;for(g=0;g<j;g++)if(h=m[g],c=i[h.col],d=k[h.col],c=c<d?-1:c>d?1:0,0!==c)return"asc"===h.dir?c:-c;c=e[a];d=e[b];return c<d?-1:c>d?1:0}):h.sort(function(a,b){var c,g,h,j,i=m.length,k=f[a]._aSortData,o=f[b]._aSortData;for(h=0;h<i;h++)if(j=m[h],c=k[j.col],g=o[j.col],j=d[j.type+"-"+j.dir]||d["string-"+j.dir],c=j(c,g),0!==c)return c;c=e[a];
|
65 |
+
g=e[b];return c<g?-1:c>g?1:0})}a.bSorted=!0}function Jb(a){for(var b,c,e=a.aoColumns,d=T(a),a=a.oLanguage.oAria,f=0,g=e.length;f<g;f++){c=e[f];var h=c.asSorting;b=c.sTitle.replace(/<.*?>/g,"");var i=c.nTh;i.removeAttribute("aria-sort");c.bSortable&&(0<d.length&&d[0].col==f?(i.setAttribute("aria-sort","asc"==d[0].dir?"ascending":"descending"),c=h[d[0].index+1]||h[0]):c=h[0],b+="asc"===c?a.sSortAscending:a.sSortDescending);i.setAttribute("aria-label",b)}}function Ua(a,b,c,e){var d=a.aaSorting,f=a.aoColumns[b].asSorting,
|
66 |
+
g=function(a,b){var c=a._idx;c===k&&(c=h.inArray(a[1],f));return c+1<f.length?c+1:b?null:0};"number"===typeof d[0]&&(d=a.aaSorting=[d]);c&&a.oFeatures.bSortMulti?(c=h.inArray(b,D(d,"0")),-1!==c?(b=g(d[c],!0),null===b?d.splice(c,1):(d[c][1]=f[b],d[c]._idx=b)):(d.push([b,f[0],0]),d[d.length-1]._idx=0)):d.length&&d[0][0]==b?(b=g(d[0]),d.length=1,d[0][1]=f[b],d[0]._idx=b):(d.length=0,d.push([b,f[0]]),d[0]._idx=0);N(a);"function"==typeof e&&e(a)}function Oa(a,b,c,e){var d=a.aoColumns[c];Va(b,{},function(b){!1!==
|
67 |
+
d.bSortable&&(a.oFeatures.bProcessing?(C(a,!0),setTimeout(function(){Ua(a,c,b.shiftKey,e);"ssp"!==B(a)&&C(a,!1)},0)):Ua(a,c,b.shiftKey,e))})}function xa(a){var b=a.aLastSort,c=a.oClasses.sSortColumn,e=T(a),d=a.oFeatures,f,g;if(d.bSort&&d.bSortClasses){d=0;for(f=b.length;d<f;d++)g=b[d].src,h(D(a.aoData,"anCells",g)).removeClass(c+(2>d?d+1:3));d=0;for(f=e.length;d<f;d++)g=e[d].src,h(D(a.aoData,"anCells",g)).addClass(c+(2>d?d+1:3))}a.aLastSort=e}function Ib(a,b){var c=a.aoColumns[b],e=o.ext.order[c.sSortDataType],
|
68 |
+
d;e&&(d=e.call(a.oInstance,a,b,$(a,b)));for(var f,g=o.ext.type.order[c.sType+"-pre"],h=0,i=a.aoData.length;h<i;h++)if(c=a.aoData[h],c._aSortData||(c._aSortData=[]),!c._aSortData[b]||e)f=e?d[h]:y(a,h,b,"sort"),c._aSortData[b]=g?g(f):f}function ya(a){if(a.oFeatures.bStateSave&&!a.bDestroying){var b={time:+new Date,start:a._iDisplayStart,length:a._iDisplayLength,order:h.extend(!0,[],a.aaSorting),search:zb(a.oPreviousSearch),columns:h.map(a.aoColumns,function(b,e){return{visible:b.bVisible,search:zb(a.aoPreSearchCols[e])}})};
|
69 |
+
w(a,"aoStateSaveParams","stateSaveParams",[a,b]);a.oSavedState=b;a.fnStateSaveCallback.call(a.oInstance,a,b)}}function Kb(a){var b,c,e=a.aoColumns;if(a.oFeatures.bStateSave){var d=a.fnStateLoadCallback.call(a.oInstance,a);if(d&&d.time&&(b=w(a,"aoStateLoadParams","stateLoadParams",[a,d]),-1===h.inArray(!1,b)&&(b=a.iStateDuration,!(0<b&&d.time<+new Date-1E3*b)&&e.length===d.columns.length))){a.oLoadedState=h.extend(!0,{},d);a._iDisplayStart=d.start;a.iInitDisplayStart=d.start;a._iDisplayLength=d.length;
|
70 |
+
a.aaSorting=[];h.each(d.order,function(b,c){a.aaSorting.push(c[0]>=e.length?[0,c[1]]:c)});h.extend(a.oPreviousSearch,Ab(d.search));b=0;for(c=d.columns.length;b<c;b++){var f=d.columns[b];e[b].bVisible=f.visible;h.extend(a.aoPreSearchCols[b],Ab(f.search))}w(a,"aoStateLoaded","stateLoaded",[a,d])}}}function za(a){var b=o.settings,a=h.inArray(a,D(b,"nTable"));return-1!==a?b[a]:null}function R(a,b,c,e){c="DataTables warning: "+(null!==a?"table id="+a.sTableId+" - ":"")+c;e&&(c+=". For more information about this error, please see http://datatables.net/tn/"+
|
71 |
+
e);if(b)Ea.console&&console.log&&console.log(c);else if(b=o.ext,b=b.sErrMode||b.errMode,w(a,null,"error",[a,e,c]),"alert"==b)alert(c);else{if("throw"==b)throw Error(c);"function"==typeof b&&b(a,e,c)}}function E(a,b,c,e){h.isArray(c)?h.each(c,function(c,f){h.isArray(f)?E(a,b,f[0],f[1]):E(a,b,f)}):(e===k&&(e=c),b[c]!==k&&(a[e]=b[c]))}function Lb(a,b,c){var e,d;for(d in b)b.hasOwnProperty(d)&&(e=b[d],h.isPlainObject(e)?(h.isPlainObject(a[d])||(a[d]={}),h.extend(!0,a[d],e)):a[d]=c&&"data"!==d&&"aaData"!==
|
72 |
+
d&&h.isArray(e)?e.slice():e);return a}function Va(a,b,c){h(a).bind("click.DT",b,function(b){a.blur();c(b)}).bind("keypress.DT",b,function(a){13===a.which&&(a.preventDefault(),c(a))}).bind("selectstart.DT",function(){return!1})}function z(a,b,c,e){c&&a[b].push({fn:c,sName:e})}function w(a,b,c,e){var d=[];b&&(d=h.map(a[b].slice().reverse(),function(b){return b.fn.apply(a.oInstance,e)}));null!==c&&h(a.nTable).trigger(c+".dt",e);return d}function Sa(a){var b=a._iDisplayStart,c=a.fnDisplayEnd(),e=a._iDisplayLength;
|
73 |
+
b>=c&&(b=c-e);b-=b%e;if(-1===e||0>b)b=0;a._iDisplayStart=b}function Pa(a,b){var c=a.renderer,e=o.ext.renderer[b];return h.isPlainObject(c)&&c[b]?e[c[b]]||e._:"string"===typeof c?e[c]||e._:e._}function B(a){return a.oFeatures.bServerSide?"ssp":a.ajax||a.sAjaxSource?"ajax":"dom"}function Wa(a,b){var c=[],c=Mb.numbers_length,e=Math.floor(c/2);b<=c?c=U(0,b):a<=e?(c=U(0,c-2),c.push("ellipsis"),c.push(b-1)):(a>=b-1-e?c=U(b-(c-2),b):(c=U(a-1,a+2),c.push("ellipsis"),c.push(b-1)),c.splice(0,0,"ellipsis"),
|
74 |
+
c.splice(0,0,0));c.DT_el="span";return c}function db(a){h.each({num:function(b){return Aa(b,a)},"num-fmt":function(b){return Aa(b,a,Xa)},"html-num":function(b){return Aa(b,a,Ba)},"html-num-fmt":function(b){return Aa(b,a,Ba,Xa)}},function(b,c){x.type.order[b+a+"-pre"]=c;b.match(/^html\-/)&&(x.type.search[b+a]=x.type.search.html)})}function Nb(a){return function(){var b=[za(this[o.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return o.ext.internal[a].apply(this,b)}}var o,x,t,r,u,Ya=
|
75 |
+
{},Ob=/[\r\n]/g,Ba=/<.*?>/g,ac=/^[\w\+\-]/,bc=/[\w\+\-]$/,Yb=RegExp("(\\/|\\.|\\*|\\+|\\?|\\||\\(|\\)|\\[|\\]|\\{|\\}|\\\\|\\$|\\^|\\-)","g"),Xa=/[',$\u00a3\u20ac\u00a5%\u2009\u202F]/g,I=function(a){return!a||!0===a||"-"===a?!0:!1},Pb=function(a){var b=parseInt(a,10);return!isNaN(b)&&isFinite(a)?b:null},Qb=function(a,b){Ya[b]||(Ya[b]=RegExp(va(b),"g"));return"string"===typeof a&&"."!==b?a.replace(/\./g,"").replace(Ya[b],"."):a},Za=function(a,b,c){var e="string"===typeof a;b&&e&&(a=Qb(a,b));c&&e&&
|
76 |
+
(a=a.replace(Xa,""));return I(a)||!isNaN(parseFloat(a))&&isFinite(a)},Rb=function(a,b,c){return I(a)?!0:!(I(a)||"string"===typeof a)?null:Za(a.replace(Ba,""),b,c)?!0:null},D=function(a,b,c){var e=[],d=0,f=a.length;if(c!==k)for(;d<f;d++)a[d]&&a[d][b]&&e.push(a[d][b][c]);else for(;d<f;d++)a[d]&&e.push(a[d][b]);return e},ia=function(a,b,c,e){var d=[],f=0,g=b.length;if(e!==k)for(;f<g;f++)a[b[f]][c]&&d.push(a[b[f]][c][e]);else for(;f<g;f++)d.push(a[b[f]][c]);return d},U=function(a,b){var c=[],e;b===k?
|
77 |
+
(b=0,e=a):(e=b,b=a);for(var d=b;d<e;d++)c.push(d);return c},Sb=function(a){for(var b=[],c=0,e=a.length;c<e;c++)a[c]&&b.push(a[c]);return b},Na=function(a){var b=[],c,e,d=a.length,f,g=0;e=0;a:for(;e<d;e++){c=a[e];for(f=0;f<g;f++)if(b[f]===c)continue a;b.push(c);g++}return b},A=function(a,b,c){a[b]!==k&&(a[c]=a[b])},ba=/\[.*?\]$/,S=/\(\)$/,wa=h("<div>")[0],Zb=wa.textContent!==k,$b=/<.*?>/g;o=function(a){this.$=function(a,b){return this.api(!0).$(a,b)};this._=function(a,b){return this.api(!0).rows(a,
|
78 |
+
b).data()};this.api=function(a){return a?new t(za(this[x.iApiIndex])):new t(this)};this.fnAddData=function(a,b){var c=this.api(!0),e=h.isArray(a)&&(h.isArray(a[0])||h.isPlainObject(a[0]))?c.rows.add(a):c.row.add(a);(b===k||b)&&c.draw();return e.flatten().toArray()};this.fnAdjustColumnSizing=function(a){var b=this.api(!0).columns.adjust(),c=b.settings()[0],e=c.oScroll;a===k||a?b.draw(!1):(""!==e.sX||""!==e.sY)&&Y(c)};this.fnClearTable=function(a){var b=this.api(!0).clear();(a===k||a)&&b.draw()};this.fnClose=
|
79 |
+
function(a){this.api(!0).row(a).child.hide()};this.fnDeleteRow=function(a,b,c){var e=this.api(!0),a=e.rows(a),d=a.settings()[0],h=d.aoData[a[0][0]];a.remove();b&&b.call(this,d,h);(c===k||c)&&e.draw();return h};this.fnDestroy=function(a){this.api(!0).destroy(a)};this.fnDraw=function(a){this.api(!0).draw(!a)};this.fnFilter=function(a,b,c,e,d,h){d=this.api(!0);null===b||b===k?d.search(a,c,e,h):d.column(b).search(a,c,e,h);d.draw()};this.fnGetData=function(a,b){var c=this.api(!0);if(a!==k){var e=a.nodeName?
|
80 |
+
a.nodeName.toLowerCase():"";return b!==k||"td"==e||"th"==e?c.cell(a,b).data():c.row(a).data()||null}return c.data().toArray()};this.fnGetNodes=function(a){var b=this.api(!0);return a!==k?b.row(a).node():b.rows().nodes().flatten().toArray()};this.fnGetPosition=function(a){var b=this.api(!0),c=a.nodeName.toUpperCase();return"TR"==c?b.row(a).index():"TD"==c||"TH"==c?(a=b.cell(a).index(),[a.row,a.columnVisible,a.column]):null};this.fnIsOpen=function(a){return this.api(!0).row(a).child.isShown()};this.fnOpen=
|
81 |
+
function(a,b,c){return this.api(!0).row(a).child(b,c).show().child()[0]};this.fnPageChange=function(a,b){var c=this.api(!0).page(a);(b===k||b)&&c.draw(!1)};this.fnSetColumnVis=function(a,b,c){a=this.api(!0).column(a).visible(b);(c===k||c)&&a.columns.adjust().draw()};this.fnSettings=function(){return za(this[x.iApiIndex])};this.fnSort=function(a){this.api(!0).order(a).draw()};this.fnSortListener=function(a,b,c){this.api(!0).order.listener(a,b,c)};this.fnUpdate=function(a,b,c,e,d){var h=this.api(!0);
|
82 |
+
c===k||null===c?h.row(b).data(a):h.cell(b,c).data(a);(d===k||d)&&h.columns.adjust();(e===k||e)&&h.draw();return 0};this.fnVersionCheck=x.fnVersionCheck;var b=this,c=a===k,e=this.length;c&&(a={});this.oApi=this.internal=x.internal;for(var d in o.ext.internal)d&&(this[d]=Nb(d));this.each(function(){var d={},d=1<e?Lb(d,a,!0):a,g=0,j,i=this.getAttribute("id"),m=!1,l=o.defaults,p=h(this);if("table"!=this.nodeName.toLowerCase())R(null,0,"Non-table node initialisation ("+this.nodeName+")",2);else{eb(l);
|
83 |
+
fb(l.column);H(l,l,!0);H(l.column,l.column,!0);H(l,h.extend(d,p.data()));var n=o.settings,g=0;for(j=n.length;g<j;g++){var r=n[g];if(r.nTable==this||r.nTHead.parentNode==this||r.nTFoot&&r.nTFoot.parentNode==this){g=d.bRetrieve!==k?d.bRetrieve:l.bRetrieve;if(c||g)return r.oInstance;if(d.bDestroy!==k?d.bDestroy:l.bDestroy){r.oInstance.fnDestroy();break}else{R(r,0,"Cannot reinitialise DataTable",3);return}}if(r.sTableId==this.id){n.splice(g,1);break}}if(null===i||""===i)this.id=i="DataTables_Table_"+
|
84 |
+
o.ext._unique++;var q=h.extend(!0,{},o.models.oSettings,{nTable:this,oApi:b.internal,oInit:d,sDestroyWidth:p[0].style.width,sInstance:i,sTableId:i});n.push(q);q.oInstance=1===b.length?b:p.dataTable();eb(d);d.oLanguage&&O(d.oLanguage);d.aLengthMenu&&!d.iDisplayLength&&(d.iDisplayLength=h.isArray(d.aLengthMenu[0])?d.aLengthMenu[0][0]:d.aLengthMenu[0]);d=Lb(h.extend(!0,{},l),d);E(q.oFeatures,d,"bPaginate bLengthChange bFilter bSort bSortMulti bInfo bProcessing bAutoWidth bSortClasses bServerSide bDeferRender".split(" "));
|
85 |
+
E(q,d,["asStripeClasses","ajax","fnServerData","fnFormatNumber","sServerMethod","aaSorting","aaSortingFixed","aLengthMenu","sPaginationType","sAjaxSource","sAjaxDataProp","iStateDuration","sDom","bSortCellsTop","iTabIndex","fnStateLoadCallback","fnStateSaveCallback","renderer","searchDelay",["iCookieDuration","iStateDuration"],["oSearch","oPreviousSearch"],["aoSearchCols","aoPreSearchCols"],["iDisplayLength","_iDisplayLength"],["bJQueryUI","bJUI"]]);E(q.oScroll,d,[["sScrollX","sX"],["sScrollXInner",
|
86 |
+
"sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]);E(q.oLanguage,d,"fnInfoCallback");z(q,"aoDrawCallback",d.fnDrawCallback,"user");z(q,"aoServerParams",d.fnServerParams,"user");z(q,"aoStateSaveParams",d.fnStateSaveParams,"user");z(q,"aoStateLoadParams",d.fnStateLoadParams,"user");z(q,"aoStateLoaded",d.fnStateLoaded,"user");z(q,"aoRowCallback",d.fnRowCallback,"user");z(q,"aoRowCreatedCallback",d.fnCreatedRow,"user");z(q,"aoHeaderCallback",d.fnHeaderCallback,"user");z(q,"aoFooterCallback",
|
87 |
+
d.fnFooterCallback,"user");z(q,"aoInitComplete",d.fnInitComplete,"user");z(q,"aoPreDrawCallback",d.fnPreDrawCallback,"user");i=q.oClasses;d.bJQueryUI?(h.extend(i,o.ext.oJUIClasses,d.oClasses),d.sDom===l.sDom&&"lfrtip"===l.sDom&&(q.sDom='<"H"lfr>t<"F"ip>'),q.renderer)?h.isPlainObject(q.renderer)&&!q.renderer.header&&(q.renderer.header="jqueryui"):q.renderer="jqueryui":h.extend(i,o.ext.classes,d.oClasses);p.addClass(i.sTable);if(""!==q.oScroll.sX||""!==q.oScroll.sY)q.oScroll.iBarWidth=Hb();!0===q.oScroll.sX&&
|
88 |
+
(q.oScroll.sX="100%");q.iInitDisplayStart===k&&(q.iInitDisplayStart=d.iDisplayStart,q._iDisplayStart=d.iDisplayStart);null!==d.iDeferLoading&&(q.bDeferLoading=!0,g=h.isArray(d.iDeferLoading),q._iRecordsDisplay=g?d.iDeferLoading[0]:d.iDeferLoading,q._iRecordsTotal=g?d.iDeferLoading[1]:d.iDeferLoading);var t=q.oLanguage;h.extend(!0,t,d.oLanguage);""!==t.sUrl&&(h.ajax({dataType:"json",url:t.sUrl,success:function(a){O(a);H(l.oLanguage,a);h.extend(true,t,a);ga(q)},error:function(){ga(q)}}),m=!0);null===
|
89 |
+
d.asStripeClasses&&(q.asStripeClasses=[i.sStripeOdd,i.sStripeEven]);var g=q.asStripeClasses,s=h("tbody tr",this).eq(0);-1!==h.inArray(!0,h.map(g,function(a){return s.hasClass(a)}))&&(h("tbody tr",this).removeClass(g.join(" ")),q.asDestroyStripes=g.slice());n=[];g=this.getElementsByTagName("thead");0!==g.length&&(da(q.aoHeader,g[0]),n=qa(q));if(null===d.aoColumns){r=[];g=0;for(j=n.length;g<j;g++)r.push(null)}else r=d.aoColumns;g=0;for(j=r.length;g<j;g++)Fa(q,n?n[g]:null);ib(q,d.aoColumnDefs,r,function(a,
|
90 |
+
b){ka(q,a,b)});if(s.length){var u=function(a,b){return a.getAttribute("data-"+b)!==null?b:null};h.each(na(q,s[0]).cells,function(a,b){var c=q.aoColumns[a];if(c.mData===a){var e=u(b,"sort")||u(b,"order"),d=u(b,"filter")||u(b,"search");if(e!==null||d!==null){c.mData={_:a+".display",sort:e!==null?a+".@data-"+e:k,type:e!==null?a+".@data-"+e:k,filter:d!==null?a+".@data-"+d:k};ka(q,a)}}})}var v=q.oFeatures;d.bStateSave&&(v.bStateSave=!0,Kb(q,d),z(q,"aoDrawCallback",ya,"state_save"));if(d.aaSorting===k){n=
|
91 |
+
q.aaSorting;g=0;for(j=n.length;g<j;g++)n[g][1]=q.aoColumns[g].asSorting[0]}xa(q);v.bSort&&z(q,"aoDrawCallback",function(){if(q.bSorted){var a=T(q),b={};h.each(a,function(a,c){b[c.src]=c.dir});w(q,null,"order",[q,a,b]);Jb(q)}});z(q,"aoDrawCallback",function(){(q.bSorted||B(q)==="ssp"||v.bDeferRender)&&xa(q)},"sc");gb(q);g=p.children("caption").each(function(){this._captionSide=p.css("caption-side")});j=p.children("thead");0===j.length&&(j=h("<thead/>").appendTo(this));q.nTHead=j[0];j=p.children("tbody");
|
92 |
+
0===j.length&&(j=h("<tbody/>").appendTo(this));q.nTBody=j[0];j=p.children("tfoot");if(0===j.length&&0<g.length&&(""!==q.oScroll.sX||""!==q.oScroll.sY))j=h("<tfoot/>").appendTo(this);0===j.length||0===j.children().length?p.addClass(i.sNoFooter):0<j.length&&(q.nTFoot=j[0],da(q.aoFooter,q.nTFoot));if(d.aaData)for(g=0;g<d.aaData.length;g++)J(q,d.aaData[g]);else(q.bDeferLoading||"dom"==B(q))&&ma(q,h(q.nTBody).children("tr"));q.aiDisplay=q.aiDisplayMaster.slice();q.bInitialised=!0;!1===m&&ga(q)}});b=null;
|
93 |
+
return this};var Tb=[],v=Array.prototype,cc=function(a){var b,c,e=o.settings,d=h.map(e,function(a){return a.nTable});if(a){if(a.nTable&&a.oApi)return[a];if(a.nodeName&&"table"===a.nodeName.toLowerCase())return b=h.inArray(a,d),-1!==b?[e[b]]:null;if(a&&"function"===typeof a.settings)return a.settings().toArray();"string"===typeof a?c=h(a):a instanceof h&&(c=a)}else return[];if(c)return c.map(function(){b=h.inArray(this,d);return-1!==b?e[b]:null}).toArray()};t=function(a,b){if(!this instanceof t)throw"DT API must be constructed as a new object";
|
94 |
+
var c=[],e=function(a){(a=cc(a))&&c.push.apply(c,a)};if(h.isArray(a))for(var d=0,f=a.length;d<f;d++)e(a[d]);else e(a);this.context=Na(c);b&&this.push.apply(this,b.toArray?b.toArray():b);this.selector={rows:null,cols:null,opts:null};t.extend(this,this,Tb)};o.Api=t;t.prototype={concat:v.concat,context:[],each:function(a){for(var b=0,c=this.length;b<c;b++)a.call(this,this[b],b,this);return this},eq:function(a){var b=this.context;return b.length>a?new t(b[a],this[a]):null},filter:function(a){var b=[];
|
95 |
+
if(v.filter)b=v.filter.call(this,a,this);else for(var c=0,e=this.length;c<e;c++)a.call(this,this[c],c,this)&&b.push(this[c]);return new t(this.context,b)},flatten:function(){var a=[];return new t(this.context,a.concat.apply(a,this.toArray()))},join:v.join,indexOf:v.indexOf||function(a,b){for(var c=b||0,e=this.length;c<e;c++)if(this[c]===a)return c;return-1},iterator:function(a,b,c,e){var d=[],f,g,h,i,m,l=this.context,p,n,o=this.selector;"string"===typeof a&&(e=c,c=b,b=a,a=!1);g=0;for(h=l.length;g<
|
96 |
+
h;g++){var q=new t(l[g]);if("table"===b)f=c.call(q,l[g],g),f!==k&&d.push(f);else if("columns"===b||"rows"===b)f=c.call(q,l[g],this[g],g),f!==k&&d.push(f);else if("column"===b||"column-rows"===b||"row"===b||"cell"===b){n=this[g];"column-rows"===b&&(p=Ca(l[g],o.opts));i=0;for(m=n.length;i<m;i++)f=n[i],f="cell"===b?c.call(q,l[g],f.row,f.column,g,i):c.call(q,l[g],f,g,i,p),f!==k&&d.push(f)}}return d.length||e?(a=new t(l,a?d.concat.apply([],d):d),b=a.selector,b.rows=o.rows,b.cols=o.cols,b.opts=o.opts,a):
|
97 |
+
this},lastIndexOf:v.lastIndexOf||function(a,b){return this.indexOf.apply(this.toArray.reverse(),arguments)},length:0,map:function(a){var b=[];if(v.map)b=v.map.call(this,a,this);else for(var c=0,e=this.length;c<e;c++)b.push(a.call(this,this[c],c));return new t(this.context,b)},pluck:function(a){return this.map(function(b){return b[a]})},pop:v.pop,push:v.push,reduce:v.reduce||function(a,b){return hb(this,a,b,0,this.length,1)},reduceRight:v.reduceRight||function(a,b){return hb(this,a,b,this.length-1,
|
98 |
+
-1,-1)},reverse:v.reverse,selector:null,shift:v.shift,sort:v.sort,splice:v.splice,toArray:function(){return v.slice.call(this)},to$:function(){return h(this)},toJQuery:function(){return h(this)},unique:function(){return new t(this.context,Na(this))},unshift:v.unshift};t.extend=function(a,b,c){if(c.length&&b&&(b instanceof t||b.__dt_wrapper)){var e,d,f,g=function(a,b,c){return function(){var e=b.apply(a,arguments);t.extend(e,e,c.methodExt);return e}};e=0;for(d=c.length;e<d;e++)f=c[e],b[f.name]="function"===
|
99 |
+
typeof f.val?g(a,f.val,f):h.isPlainObject(f.val)?{}:f.val,b[f.name].__dt_wrapper=!0,t.extend(a,b[f.name],f.propExt)}};t.register=r=function(a,b){if(h.isArray(a))for(var c=0,e=a.length;c<e;c++)t.register(a[c],b);else for(var d=a.split("."),f=Tb,g,j,c=0,e=d.length;c<e;c++){g=(j=-1!==d[c].indexOf("()"))?d[c].replace("()",""):d[c];var i;a:{i=0;for(var m=f.length;i<m;i++)if(f[i].name===g){i=f[i];break a}i=null}i||(i={name:g,val:{},methodExt:[],propExt:[]},f.push(i));c===e-1?i.val=b:f=j?i.methodExt:i.propExt}};
|
100 |
+
t.registerPlural=u=function(a,b,c){t.register(a,c);t.register(b,function(){var a=c.apply(this,arguments);return a===this?this:a instanceof t?a.length?h.isArray(a[0])?new t(a.context,a[0]):a[0]:k:a})};r("tables()",function(a){var b;if(a){b=t;var c=this.context;if("number"===typeof a)a=[c[a]];else var e=h.map(c,function(a){return a.nTable}),a=h(e).filter(a).map(function(){var a=h.inArray(this,e);return c[a]}).toArray();b=new b(a)}else b=this;return b});r("table()",function(a){var a=this.tables(a),b=
|
101 |
+
a.context;return b.length?new t(b[0]):a});u("tables().nodes()","table().node()",function(){return this.iterator("table",function(a){return a.nTable},1)});u("tables().body()","table().body()",function(){return this.iterator("table",function(a){return a.nTBody},1)});u("tables().header()","table().header()",function(){return this.iterator("table",function(a){return a.nTHead},1)});u("tables().footer()","table().footer()",function(){return this.iterator("table",function(a){return a.nTFoot},1)});u("tables().containers()",
|
102 |
+
"table().container()",function(){return this.iterator("table",function(a){return a.nTableWrapper},1)});r("draw()",function(a){return this.iterator("table",function(b){N(b,!1===a)})});r("page()",function(a){return a===k?this.page.info().page:this.iterator("table",function(b){Ta(b,a)})});r("page.info()",function(){if(0===this.context.length)return k;var a=this.context[0],b=a._iDisplayStart,c=a._iDisplayLength,e=a.fnRecordsDisplay(),d=-1===c;return{page:d?0:Math.floor(b/c),pages:d?1:Math.ceil(e/c),start:b,
|
103 |
+
end:a.fnDisplayEnd(),length:c,recordsTotal:a.fnRecordsTotal(),recordsDisplay:e}});r("page.len()",function(a){return a===k?0!==this.context.length?this.context[0]._iDisplayLength:k:this.iterator("table",function(b){Ra(b,a)})});var Ub=function(a,b,c){"ssp"==B(a)?N(a,b):(C(a,!0),ra(a,[],function(c){oa(a);for(var c=sa(a,c),e=0,g=c.length;e<g;e++)J(a,c[e]);N(a,b);C(a,!1)}));if(c){var e=new t(a);e.one("draw",function(){c(e.ajax.json())})}};r("ajax.json()",function(){var a=this.context;if(0<a.length)return a[0].json});
|
104 |
+
r("ajax.params()",function(){var a=this.context;if(0<a.length)return a[0].oAjaxData});r("ajax.reload()",function(a,b){return this.iterator("table",function(c){Ub(c,!1===b,a)})});r("ajax.url()",function(a){var b=this.context;if(a===k){if(0===b.length)return k;b=b[0];return b.ajax?h.isPlainObject(b.ajax)?b.ajax.url:b.ajax:b.sAjaxSource}return this.iterator("table",function(b){h.isPlainObject(b.ajax)?b.ajax.url=a:b.ajax=a})});r("ajax.url().load()",function(a,b){return this.iterator("table",function(c){Ub(c,
|
105 |
+
!1===b,a)})});var $a=function(a,b){var c=[],e,d,f,g,j,i;e=typeof a;if(!a||"string"===e||"function"===e||a.length===k)a=[a];f=0;for(g=a.length;f<g;f++){d=a[f]&&a[f].split?a[f].split(","):[a[f]];j=0;for(i=d.length;j<i;j++)(e=b("string"===typeof d[j]?h.trim(d[j]):d[j]))&&e.length&&c.push.apply(c,e)}return c},ab=function(a){a||(a={});a.filter&&!a.search&&(a.search=a.filter);return{search:a.search||"none",order:a.order||"current",page:a.page||"all"}},bb=function(a){for(var b=0,c=a.length;b<c;b++)if(0<
|
106 |
+
a[b].length)return a[0]=a[b],a.length=1,a.context=[a.context[b]],a;a.length=0;return a},Ca=function(a,b){var c,e,d,f=[],g=a.aiDisplay;c=a.aiDisplayMaster;var j=b.search;e=b.order;d=b.page;if("ssp"==B(a))return"removed"===j?[]:U(0,c.length);if("current"==d){c=a._iDisplayStart;for(e=a.fnDisplayEnd();c<e;c++)f.push(g[c])}else if("current"==e||"applied"==e)f="none"==j?c.slice():"applied"==j?g.slice():h.map(c,function(a){return-1===h.inArray(a,g)?a:null});else if("index"==e||"original"==e){c=0;for(e=a.aoData.length;c<
|
107 |
+
e;c++)"none"==j?f.push(c):(d=h.inArray(c,g),(-1===d&&"removed"==j||0<=d&&"applied"==j)&&f.push(c))}return f};r("rows()",function(a,b){a===k?a="":h.isPlainObject(a)&&(b=a,a="");var b=ab(b),c=this.iterator("table",function(c){var d=b;return $a(a,function(a){var b=Pb(a);if(b!==null&&!d)return[b];var j=Ca(c,d);if(b!==null&&h.inArray(b,j)!==-1)return[b];if(!a)return j;if(typeof a==="function")return h.map(j,function(b){var d=c.aoData[b];return a(b,d._aData,d.nTr)?b:null});b=Sb(ia(c.aoData,j,"nTr"));return a.nodeName&&
|
108 |
+
h.inArray(a,b)!==-1?[a._DT_RowIndex]:h(b).filter(a).map(function(){return this._DT_RowIndex}).toArray()})},1);c.selector.rows=a;c.selector.opts=b;return c});r("rows().nodes()",function(){return this.iterator("row",function(a,b){return a.aoData[b].nTr||k},1)});r("rows().data()",function(){return this.iterator(!0,"rows",function(a,b){return ia(a.aoData,b,"_aData")},1)});u("rows().cache()","row().cache()",function(a){return this.iterator("row",function(b,c){var e=b.aoData[c];return"search"===a?e._aFilterData:
|
109 |
+
e._aSortData},1)});u("rows().invalidate()","row().invalidate()",function(a){return this.iterator("row",function(b,c){ca(b,c,a)})});u("rows().indexes()","row().index()",function(){return this.iterator("row",function(a,b){return b},1)});u("rows().remove()","row().remove()",function(){var a=this;return this.iterator("row",function(b,c,e){var d=b.aoData;d.splice(c,1);for(var f=0,g=d.length;f<g;f++)null!==d[f].nTr&&(d[f].nTr._DT_RowIndex=f);h.inArray(c,b.aiDisplay);pa(b.aiDisplayMaster,c);pa(b.aiDisplay,
|
110 |
+
c);pa(a[e],c,!1);Sa(b)})});r("rows.add()",function(a){var b=this.iterator("table",function(b){var c,f,g,h=[];f=0;for(g=a.length;f<g;f++)c=a[f],c.nodeName&&"TR"===c.nodeName.toUpperCase()?h.push(ma(b,c)[0]):h.push(J(b,c));return h},1),c=this.rows(-1);c.pop();c.push.apply(c,b.toArray());return c});r("row()",function(a,b){return bb(this.rows(a,b))});r("row().data()",function(a){var b=this.context;if(a===k)return b.length&&this.length?b[0].aoData[this[0]]._aData:k;b[0].aoData[this[0]]._aData=a;ca(b[0],
|
111 |
+
this[0],"data");return this});r("row().node()",function(){var a=this.context;return a.length&&this.length?a[0].aoData[this[0]].nTr||null:null});r("row.add()",function(a){a instanceof h&&a.length&&(a=a[0]);var b=this.iterator("table",function(b){return a.nodeName&&"TR"===a.nodeName.toUpperCase()?ma(b,a)[0]:J(b,a)});return this.row(b[0])});var cb=function(a,b){var c=a.context;c.length&&(c=c[0].aoData[b!==k?b:a[0]],c._details&&(c._details.remove(),c._detailsShow=k,c._details=k))},Vb=function(a,b){var c=
|
112 |
+
a.context;if(c.length&&a.length){var e=c[0].aoData[a[0]];if(e._details){(e._detailsShow=b)?e._details.insertAfter(e.nTr):e._details.detach();var d=c[0],f=new t(d),g=d.aoData;f.off("draw.dt.DT_details column-visibility.dt.DT_details destroy.dt.DT_details");0<D(g,"_details").length&&(f.on("draw.dt.DT_details",function(a,b){d===b&&f.rows({page:"current"}).eq(0).each(function(a){a=g[a];a._detailsShow&&a._details.insertAfter(a.nTr)})}),f.on("column-visibility.dt.DT_details",function(a,b){if(d===b)for(var c,
|
113 |
+
e=aa(b),f=0,h=g.length;f<h;f++)c=g[f],c._details&&c._details.children("td[colspan]").attr("colspan",e)}),f.on("destroy.dt.DT_details",function(a,b){if(d===b)for(var c=0,e=g.length;c<e;c++)g[c]._details&&cb(f,c)}))}}};r("row().child()",function(a,b){var c=this.context;if(a===k)return c.length&&this.length?c[0].aoData[this[0]]._details:k;if(!0===a)this.child.show();else if(!1===a)cb(this);else if(c.length&&this.length){var e=c[0],c=c[0].aoData[this[0]],d=[],f=function(a,b){if(a.nodeName&&"tr"===a.nodeName.toLowerCase())d.push(a);
|
114 |
+
else{var c=h("<tr><td/></tr>").addClass(b);h("td",c).addClass(b).html(a)[0].colSpan=aa(e);d.push(c[0])}};if(h.isArray(a)||a instanceof h)for(var g=0,j=a.length;g<j;g++)f(a[g],b);else f(a,b);c._details&&c._details.remove();c._details=h(d);c._detailsShow&&c._details.insertAfter(c.nTr)}return this});r(["row().child.show()","row().child().show()"],function(){Vb(this,!0);return this});r(["row().child.hide()","row().child().hide()"],function(){Vb(this,!1);return this});r(["row().child.remove()","row().child().remove()"],
|
115 |
+
function(){cb(this);return this});r("row().child.isShown()",function(){var a=this.context;return a.length&&this.length?a[0].aoData[this[0]]._detailsShow||!1:!1});var dc=/^(.+):(name|visIdx|visible)$/,Wb=function(a,b,c,e,d){for(var c=[],e=0,f=d.length;e<f;e++)c.push(y(a,d[e],b));return c};r("columns()",function(a,b){a===k?a="":h.isPlainObject(a)&&(b=a,a="");var b=ab(b),c=this.iterator("table",function(c){var d=a,f=b,g=c.aoColumns,j=D(g,"sName"),i=D(g,"nTh");return $a(d,function(a){var b=Pb(a);if(a===
|
116 |
+
"")return U(g.length);if(b!==null)return[b>=0?b:g.length+b];if(typeof a==="function"){var d=Ca(c,f);return h.map(g,function(b,f){return a(f,Wb(c,f,0,0,d),i[f])?f:null})}var k=typeof a==="string"?a.match(dc):"";if(k)switch(k[2]){case "visIdx":case "visible":b=parseInt(k[1],10);if(b<0){var o=h.map(g,function(a,b){return a.bVisible?b:null});return[o[o.length+b]]}return[la(c,b)];case "name":return h.map(j,function(a,b){return a===k[1]?b:null})}else return h(i).filter(a).map(function(){return h.inArray(this,
|
117 |
+
i)}).toArray()})},1);c.selector.cols=a;c.selector.opts=b;return c});u("columns().header()","column().header()",function(){return this.iterator("column",function(a,b){return a.aoColumns[b].nTh},1)});u("columns().footer()","column().footer()",function(){return this.iterator("column",function(a,b){return a.aoColumns[b].nTf},1)});u("columns().data()","column().data()",function(){return this.iterator("column-rows",Wb,1)});u("columns().dataSrc()","column().dataSrc()",function(){return this.iterator("column",
|
118 |
+
function(a,b){return a.aoColumns[b].mData},1)});u("columns().cache()","column().cache()",function(a){return this.iterator("column-rows",function(b,c,e,d,f){return ia(b.aoData,f,"search"===a?"_aFilterData":"_aSortData",c)},1)});u("columns().nodes()","column().nodes()",function(){return this.iterator("column-rows",function(a,b,c,e,d){return ia(a.aoData,d,"anCells",b)},1)});u("columns().visible()","column().visible()",function(a,b){return this.iterator("column",function(c,e){if(a===k)return c.aoColumns[e].bVisible;
|
119 |
+
var d=c.aoColumns,f=d[e],g=c.aoData,j,i,m;if(a!==k&&f.bVisible!==a){if(a){var l=h.inArray(!0,D(d,"bVisible"),e+1);j=0;for(i=g.length;j<i;j++)m=g[j].nTr,d=g[j].anCells,m&&m.insertBefore(d[e],d[l]||null)}else h(D(c.aoData,"anCells",e)).detach();f.bVisible=a;ea(c,c.aoHeader);ea(c,c.aoFooter);if(b===k||b)X(c),(c.oScroll.sX||c.oScroll.sY)&&Y(c);w(c,null,"column-visibility",[c,e,a]);ya(c)}})});u("columns().indexes()","column().index()",function(a){return this.iterator("column",function(b,c){return"visible"===
|
120 |
+
a?$(b,c):c},1)});r("columns.adjust()",function(){return this.iterator("table",function(a){X(a)},1)});r("column.index()",function(a,b){if(0!==this.context.length){var c=this.context[0];if("fromVisible"===a||"toData"===a)return la(c,b);if("fromData"===a||"toVisible"===a)return $(c,b)}});r("column()",function(a,b){return bb(this.columns(a,b))});r("cells()",function(a,b,c){h.isPlainObject(a)&&(typeof a.row!==k?(c=b,b=null):(c=a,a=null));h.isPlainObject(b)&&(c=b,b=null);if(null===b||b===k)return this.iterator("table",
|
121 |
+
function(b){var e=a,d=ab(c),f=b.aoData,g=Ca(b,d),d=Sb(ia(f,g,"anCells")),j=h([].concat.apply([],d)),i,l=b.aoColumns.length,m,o,r,t,s,u;return $a(e,function(a){var c=typeof a==="function";if(a===null||a===k||c){m=[];o=0;for(r=g.length;o<r;o++){i=g[o];for(t=0;t<l;t++){s={row:i,column:t};if(c){u=b.aoData[i];a(s,y(b,i,t),u.anCells[t])&&m.push(s)}else m.push(s)}}return m}return h.isPlainObject(a)?[a]:j.filter(a).map(function(a,b){i=b.parentNode._DT_RowIndex;return{row:i,column:h.inArray(b,f[i].anCells)}}).toArray()})});
|
122 |
+
var e=this.columns(b,c),d=this.rows(a,c),f,g,j,i,m,l=this.iterator("table",function(a,b){f=[];g=0;for(j=d[b].length;g<j;g++){i=0;for(m=e[b].length;i<m;i++)f.push({row:d[b][g],column:e[b][i]})}return f},1);h.extend(l.selector,{cols:b,rows:a,opts:c});return l});u("cells().nodes()","cell().node()",function(){return this.iterator("cell",function(a,b,c){return(a=a.aoData[b].anCells)?a[c]:k},1)});r("cells().data()",function(){return this.iterator("cell",function(a,b,c){return y(a,b,c)},1)});u("cells().cache()",
|
123 |
+
"cell().cache()",function(a){a="search"===a?"_aFilterData":"_aSortData";return this.iterator("cell",function(b,c,e){return b.aoData[c][a][e]},1)});u("cells().render()","cell().render()",function(a){return this.iterator("cell",function(b,c,e){return y(b,c,e,a)},1)});u("cells().indexes()","cell().index()",function(){return this.iterator("cell",function(a,b,c){return{row:b,column:c,columnVisible:$(a,c)}},1)});u("cells().invalidate()","cell().invalidate()",function(a){return this.iterator("cell",function(b,
|
124 |
+
c,e){ca(b,c,a,e)})});r("cell()",function(a,b,c){return bb(this.cells(a,b,c))});r("cell().data()",function(a){var b=this.context,c=this[0];if(a===k)return b.length&&c.length?y(b[0],c[0].row,c[0].column):k;Ia(b[0],c[0].row,c[0].column,a);ca(b[0],c[0].row,"data",c[0].column);return this});r("order()",function(a,b){var c=this.context;if(a===k)return 0!==c.length?c[0].aaSorting:k;"number"===typeof a?a=[[a,b]]:h.isArray(a[0])||(a=Array.prototype.slice.call(arguments));return this.iterator("table",function(b){b.aaSorting=
|
125 |
+
a.slice()})});r("order.listener()",function(a,b,c){return this.iterator("table",function(e){Oa(e,a,b,c)})});r(["columns().order()","column().order()"],function(a){var b=this;return this.iterator("table",function(c,e){var d=[];h.each(b[e],function(b,c){d.push([c,a])});c.aaSorting=d})});r("search()",function(a,b,c,e){var d=this.context;return a===k?0!==d.length?d[0].oPreviousSearch.sSearch:k:this.iterator("table",function(d){d.oFeatures.bFilter&&fa(d,h.extend({},d.oPreviousSearch,{sSearch:a+"",bRegex:null===
|
126 |
+
b?!1:b,bSmart:null===c?!0:c,bCaseInsensitive:null===e?!0:e}),1)})});u("columns().search()","column().search()",function(a,b,c,e){return this.iterator("column",function(d,f){var g=d.aoPreSearchCols;if(a===k)return g[f].sSearch;d.oFeatures.bFilter&&(h.extend(g[f],{sSearch:a+"",bRegex:null===b?!1:b,bSmart:null===c?!0:c,bCaseInsensitive:null===e?!0:e}),fa(d,d.oPreviousSearch,1))})});r("state()",function(){return this.context.length?this.context[0].oSavedState:null});r("state.clear()",function(){return this.iterator("table",
|
127 |
+
function(a){a.fnStateSaveCallback.call(a.oInstance,a,{})})});r("state.loaded()",function(){return this.context.length?this.context[0].oLoadedState:null});r("state.save()",function(){return this.iterator("table",function(a){ya(a)})});o.versionCheck=o.fnVersionCheck=function(a){for(var b=o.version.split("."),a=a.split("."),c,e,d=0,f=a.length;d<f;d++)if(c=parseInt(b[d],10)||0,e=parseInt(a[d],10)||0,c!==e)return c>e;return!0};o.isDataTable=o.fnIsDataTable=function(a){var b=h(a).get(0),c=!1;h.each(o.settings,
|
128 |
+
function(a,d){if(d.nTable===b||h("table",d.nScrollHead)[0]===b||h("table",d.nScrollFoot)[0]===b)c=!0});return c};o.tables=o.fnTables=function(a){return h.map(o.settings,function(b){if(!a||a&&h(b.nTable).is(":visible"))return b.nTable})};o.util={throttle:ua,escapeRegex:va};o.camelToHungarian=H;r("$()",function(a,b){var c=this.rows(b).nodes(),c=h(c);return h([].concat(c.filter(a).toArray(),c.find(a).toArray()))});h.each(["on","one","off"],function(a,b){r(b+"()",function(){var a=Array.prototype.slice.call(arguments);
|
129 |
+
a[0].match(/\.dt\b/)||(a[0]+=".dt");var e=h(this.tables().nodes());e[b].apply(e,a);return this})});r("clear()",function(){return this.iterator("table",function(a){oa(a)})});r("settings()",function(){return new t(this.context,this.context)});r("data()",function(){return this.iterator("table",function(a){return D(a.aoData,"_aData")}).flatten()});r("destroy()",function(a){a=a||!1;return this.iterator("table",function(b){var c=b.nTableWrapper.parentNode,e=b.oClasses,d=b.nTable,f=b.nTBody,g=b.nTHead,j=
|
130 |
+
b.nTFoot,i=h(d),f=h(f),k=h(b.nTableWrapper),l=h.map(b.aoData,function(a){return a.nTr}),p;b.bDestroying=!0;w(b,"aoDestroyCallback","destroy",[b]);a||(new t(b)).columns().visible(!0);k.unbind(".DT").find(":not(tbody *)").unbind(".DT");h(Ea).unbind(".DT-"+b.sInstance);d!=g.parentNode&&(i.children("thead").detach(),i.append(g));j&&d!=j.parentNode&&(i.children("tfoot").detach(),i.append(j));i.detach();k.detach();b.aaSorting=[];b.aaSortingFixed=[];xa(b);h(l).removeClass(b.asStripeClasses.join(" "));h("th, td",
|
131 |
+
g).removeClass(e.sSortable+" "+e.sSortableAsc+" "+e.sSortableDesc+" "+e.sSortableNone);b.bJUI&&(h("th span."+e.sSortIcon+", td span."+e.sSortIcon,g).detach(),h("th, td",g).each(function(){var a=h("div."+e.sSortJUIWrapper,this);h(this).append(a.contents());a.detach()}));!a&&c&&c.insertBefore(d,b.nTableReinsertBefore);f.children().detach();f.append(l);i.css("width",b.sDestroyWidth).removeClass(e.sTable);(p=b.asDestroyStripes.length)&&f.children().each(function(a){h(this).addClass(b.asDestroyStripes[a%
|
132 |
+
p])});c=h.inArray(b,o.settings);-1!==c&&o.settings.splice(c,1)})});o.version="1.10.5";o.settings=[];o.models={};o.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0};o.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null};o.models.oColumn={idx:null,aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bVisible:null,_sManualType:null,_bAttrSrc:!1,fnCreatedCell:null,fnGetData:null,fnSetData:null,mData:null,mRender:null,
|
133 |
+
nTh:null,nTf:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sSortingClassJUI:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null};o.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],asStripeClasses:null,bAutoWidth:!0,bDeferRender:!1,bDestroy:!1,bFilter:!0,bInfo:!0,bJQueryUI:!1,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,
|
134 |
+
bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:!1,bSortClasses:!0,bStateSave:!1,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(a){return a.toString().replace(/\B(?=(\d{3})+(?!\d))/g,this.oLanguage.sThousands)},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnServerData:null,fnServerParams:null,fnStateLoadCallback:function(a){try{return JSON.parse((-1===a.iStateDuration?sessionStorage:localStorage).getItem("DataTables_"+
|
135 |
+
a.sInstance+"_"+location.pathname))}catch(b){}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(a,b){try{(-1===a.iStateDuration?sessionStorage:localStorage).setItem("DataTables_"+a.sInstance+"_"+location.pathname,JSON.stringify(b))}catch(c){}},fnStateSaveParams:null,iStateDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{sSortAscending:": activate to sort column ascending",sSortDescending:": activate to sort column descending"},
|
136 |
+
oPaginate:{sFirst:"First",sLast:"Last",sNext:"Next",sPrevious:"Previous"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ entries",sInfoEmpty:"Showing 0 to 0 of 0 entries",sInfoFiltered:"(filtered from _MAX_ total entries)",sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"Show _MENU_ entries",sLoadingRecords:"Loading...",sProcessing:"Processing...",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},oSearch:h.extend({},
|
137 |
+
o.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",searchDelay:null,sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null};V(o.defaults);o.defaults.column={aDataSort:null,iDataSort:-1,asSorting:["asc","desc"],bSearchable:!0,bSortable:!0,bVisible:!0,fnCreatedCell:null,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null};V(o.defaults.column);
|
138 |
+
o.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:null,bLengthChange:null,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null,bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,iBarWidth:0,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollOversize:!1,bScrollbarLeft:!1},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},aoPreSearchCols:[],
|
139 |
+
aaSorting:null,aaSortingFixed:[],asStripeClasses:null,asDestroyStripes:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bDeferLoading:!1,bInitialised:!1,aoOpenRows:[],sDom:null,searchDelay:null,sPaginationType:"two_button",iStateDuration:0,aoStateSave:[],
|
140 |
+
aoStateLoad:[],oSavedState:null,oLoadedState:null,sAjaxSource:null,sAjaxDataProp:null,bAjaxDataGet:!0,jqXHR:null,json:k,oAjaxData:k,fnServerData:null,aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,bJUI:null,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return"ssp"==B(this)?1*this._iRecordsTotal:this.aiDisplayMaster.length},
|
141 |
+
fnRecordsDisplay:function(){return"ssp"==B(this)?1*this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var a=this._iDisplayLength,b=this._iDisplayStart,c=b+a,e=this.aiDisplay.length,d=this.oFeatures,f=d.bPaginate;return d.bServerSide?!1===f||-1===a?b+e:Math.min(b+a,this._iRecordsDisplay):!f||c>e||-1===a?e:c},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{}};o.ext=x={buttons:{},classes:{},errMode:"alert",feature:[],search:[],internal:{},
|
142 |
+
legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},order:{},type:{detect:[],search:{},order:{}},_unique:0,fnVersionCheck:o.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:o.version};h.extend(x,{afnFiltering:x.search,aTypes:x.type.detect,ofnSearch:x.type.search,oSort:x.type.order,afnSortData:x.order,aoFeatures:x.feature,oApi:x.internal,oStdClasses:x.classes,oPagination:x.pager});h.extend(o.ext.classes,{sTable:"dataTable",sNoFooter:"no-footer",sPageButton:"paginate_button",sPageButtonActive:"current",
|
143 |
+
sPageButtonDisabled:"disabled",sStripeOdd:"odd",sStripeEven:"even",sRowEmpty:"dataTables_empty",sWrapper:"dataTables_wrapper",sFilter:"dataTables_filter",sInfo:"dataTables_info",sPaging:"dataTables_paginate paging_",sLength:"dataTables_length",sProcessing:"dataTables_processing",sSortAsc:"sorting_asc",sSortDesc:"sorting_desc",sSortable:"sorting",sSortableAsc:"sorting_asc_disabled",sSortableDesc:"sorting_desc_disabled",sSortableNone:"sorting_disabled",sSortColumn:"sorting_",sFilterInput:"",sLengthSelect:"",
|
144 |
+
sScrollWrapper:"dataTables_scroll",sScrollHead:"dataTables_scrollHead",sScrollHeadInner:"dataTables_scrollHeadInner",sScrollBody:"dataTables_scrollBody",sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sHeaderTH:"",sFooterTH:"",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",sJUIHeader:"",sJUIFooter:""});var Da="",Da="",F=Da+"ui-state-default",ja=Da+"css_right ui-icon ui-icon-",Xb=Da+"fg-toolbar ui-toolbar ui-widget-header ui-helper-clearfix";
|
145 |
+
h.extend(o.ext.oJUIClasses,o.ext.classes,{sPageButton:"fg-button ui-button "+F,sPageButtonActive:"ui-state-disabled",sPageButtonDisabled:"ui-state-disabled",sPaging:"dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi ui-buttonset-multi paging_",sSortAsc:F+" sorting_asc",sSortDesc:F+" sorting_desc",sSortable:F+" sorting",sSortableAsc:F+" sorting_asc_disabled",sSortableDesc:F+" sorting_desc_disabled",sSortableNone:F+" sorting_disabled",sSortJUIAsc:ja+"triangle-1-n",sSortJUIDesc:ja+"triangle-1-s",
|
146 |
+
sSortJUI:ja+"carat-2-n-s",sSortJUIAscAllowed:ja+"carat-1-n",sSortJUIDescAllowed:ja+"carat-1-s",sSortJUIWrapper:"DataTables_sort_wrapper",sSortIcon:"DataTables_sort_icon",sScrollHead:"dataTables_scrollHead "+F,sScrollFoot:"dataTables_scrollFoot "+F,sHeaderTH:F,sFooterTH:F,sJUIHeader:Xb+" ui-corner-tl ui-corner-tr",sJUIFooter:Xb+" ui-corner-bl ui-corner-br"});var Mb=o.ext.pager;h.extend(Mb,{simple:function(){return["previous","next"]},full:function(){return["first","previous","next","last"]},simple_numbers:function(a,
|
147 |
+
b){return["previous",Wa(a,b),"next"]},full_numbers:function(a,b){return["first","previous",Wa(a,b),"next","last"]},_numbers:Wa,numbers_length:7});h.extend(!0,o.ext.renderer,{pageButton:{_:function(a,b,c,e,d,f){var g=a.oClasses,j=a.oLanguage.oPaginate,i,k,l=0,o=function(b,e){var n,r,t,s,u=function(b){Ta(a,b.data.action,true)};n=0;for(r=e.length;n<r;n++){s=e[n];if(h.isArray(s)){t=h("<"+(s.DT_el||"div")+"/>").appendTo(b);o(t,s)}else{k=i="";switch(s){case "ellipsis":b.append("<span>…</span>");
|
148 |
+
break;case "first":i=j.sFirst;k=s+(d>0?"":" "+g.sPageButtonDisabled);break;case "previous":i=j.sPrevious;k=s+(d>0?"":" "+g.sPageButtonDisabled);break;case "next":i=j.sNext;k=s+(d<f-1?"":" "+g.sPageButtonDisabled);break;case "last":i=j.sLast;k=s+(d<f-1?"":" "+g.sPageButtonDisabled);break;default:i=s+1;k=d===s?g.sPageButtonActive:""}if(i){t=h("<a>",{"class":g.sPageButton+" "+k,"aria-controls":a.sTableId,"data-dt-idx":l,tabindex:a.iTabIndex,id:c===0&&typeof s==="string"?a.sTableId+"_"+s:null}).html(i).appendTo(b);
|
149 |
+
Va(t,{action:s},u);l++}}}},n;try{n=h(P.activeElement).data("dt-idx")}catch(r){}o(h(b).empty(),e);n&&h(b).find("[data-dt-idx="+n+"]").focus()}}});h.extend(o.ext.type.detect,[function(a,b){var c=b.oLanguage.sDecimal;return Za(a,c)?"num"+c:null},function(a){if(a&&!(a instanceof Date)&&(!ac.test(a)||!bc.test(a)))return null;var b=Date.parse(a);return null!==b&&!isNaN(b)||I(a)?"date":null},function(a,b){var c=b.oLanguage.sDecimal;return Za(a,c,!0)?"num-fmt"+c:null},function(a,b){var c=b.oLanguage.sDecimal;
|
150 |
+
return Rb(a,c)?"html-num"+c:null},function(a,b){var c=b.oLanguage.sDecimal;return Rb(a,c,!0)?"html-num-fmt"+c:null},function(a){return I(a)||"string"===typeof a&&-1!==a.indexOf("<")?"html":null}]);h.extend(o.ext.type.search,{html:function(a){return I(a)?a:"string"===typeof a?a.replace(Ob," ").replace(Ba,""):""},string:function(a){return I(a)?a:"string"===typeof a?a.replace(Ob," "):a}});var Aa=function(a,b,c,e){if(0!==a&&(!a||"-"===a))return-Infinity;b&&(a=Qb(a,b));a.replace&&(c&&(a=a.replace(c,"")),
|
151 |
+
e&&(a=a.replace(e,"")));return 1*a};h.extend(x.type.order,{"date-pre":function(a){return Date.parse(a)||0},"html-pre":function(a){return I(a)?"":a.replace?a.replace(/<.*?>/g,"").toLowerCase():a+""},"string-pre":function(a){return I(a)?"":"string"===typeof a?a.toLowerCase():!a.toString?"":a.toString()},"string-asc":function(a,b){return a<b?-1:a>b?1:0},"string-desc":function(a,b){return a<b?1:a>b?-1:0}});db("");h.extend(!0,o.ext.renderer,{header:{_:function(a,b,c,e){h(a.nTable).on("order.dt.DT",function(d,
|
152 |
+
f,g,h){if(a===f){d=c.idx;b.removeClass(c.sSortingClass+" "+e.sSortAsc+" "+e.sSortDesc).addClass(h[d]=="asc"?e.sSortAsc:h[d]=="desc"?e.sSortDesc:c.sSortingClass)}})},jqueryui:function(a,b,c,e){h("<div/>").addClass(e.sSortJUIWrapper).append(b.contents()).append(h("<span/>").addClass(e.sSortIcon+" "+c.sSortingClassJUI)).appendTo(b);h(a.nTable).on("order.dt.DT",function(d,f,g,h){if(a===f){d=c.idx;b.removeClass(e.sSortAsc+" "+e.sSortDesc).addClass(h[d]=="asc"?e.sSortAsc:h[d]=="desc"?e.sSortDesc:c.sSortingClass);
|
153 |
+
b.find("span."+e.sSortIcon).removeClass(e.sSortJUIAsc+" "+e.sSortJUIDesc+" "+e.sSortJUI+" "+e.sSortJUIAscAllowed+" "+e.sSortJUIDescAllowed).addClass(h[d]=="asc"?e.sSortJUIAsc:h[d]=="desc"?e.sSortJUIDesc:c.sSortingClassJUI)}})}}});o.render={number:function(a,b,c,e){return{display:function(d){var f=0>d?"-":"",d=Math.abs(parseFloat(d)),g=parseInt(d,10),d=c?b+(d-g).toFixed(c).substring(2):"";return f+(e||"")+g.toString().replace(/\B(?=(\d{3})+(?!\d))/g,a)+d}}}};h.extend(o.ext.internal,{_fnExternApiFunc:Nb,
|
154 |
+
_fnBuildAjax:ra,_fnAjaxUpdate:kb,_fnAjaxParameters:tb,_fnAjaxUpdateDraw:ub,_fnAjaxDataSrc:sa,_fnAddColumn:Fa,_fnColumnOptions:ka,_fnAdjustColumnSizing:X,_fnVisibleToColumnIndex:la,_fnColumnIndexToVisible:$,_fnVisbleColumns:aa,_fnGetColumns:Z,_fnColumnTypes:Ha,_fnApplyColumnDefs:ib,_fnHungarianMap:V,_fnCamelToHungarian:H,_fnLanguageCompat:O,_fnBrowserDetect:gb,_fnAddData:J,_fnAddTr:ma,_fnNodeToDataIndex:function(a,b){return b._DT_RowIndex!==k?b._DT_RowIndex:null},_fnNodeToColumnIndex:function(a,b,
|
155 |
+
c){return h.inArray(c,a.aoData[b].anCells)},_fnGetCellData:y,_fnSetCellData:Ia,_fnSplitObjNotation:Ka,_fnGetObjectDataFn:W,_fnSetObjectDataFn:Q,_fnGetDataMaster:La,_fnClearTable:oa,_fnDeleteIndex:pa,_fnInvalidate:ca,_fnGetRowElements:na,_fnCreateTr:Ja,_fnBuildHead:jb,_fnDrawHead:ea,_fnDraw:M,_fnReDraw:N,_fnAddOptionsHtml:mb,_fnDetectHeader:da,_fnGetUniqueThs:qa,_fnFeatureHtmlFilter:ob,_fnFilterComplete:fa,_fnFilterCustom:xb,_fnFilterColumn:wb,_fnFilter:vb,_fnFilterCreateSearch:Qa,_fnEscapeRegex:va,
|
156 |
+
_fnFilterData:yb,_fnFeatureHtmlInfo:rb,_fnUpdateInfo:Bb,_fnInfoMacros:Cb,_fnInitialise:ga,_fnInitComplete:ta,_fnLengthChange:Ra,_fnFeatureHtmlLength:nb,_fnFeatureHtmlPaginate:sb,_fnPageChange:Ta,_fnFeatureHtmlProcessing:pb,_fnProcessingDisplay:C,_fnFeatureHtmlTable:qb,_fnScrollDraw:Y,_fnApplyToChildren:G,_fnCalculateColumnWidths:Ga,_fnThrottle:ua,_fnConvertToWidth:Db,_fnScrollingWidthAdjust:Fb,_fnGetWidestNode:Eb,_fnGetMaxLenString:Gb,_fnStringToCss:s,_fnScrollBarWidth:Hb,_fnSortFlatten:T,_fnSort:lb,
|
157 |
+
_fnSortAria:Jb,_fnSortListener:Ua,_fnSortAttachListener:Oa,_fnSortingClasses:xa,_fnSortData:Ib,_fnSaveState:ya,_fnLoadState:Kb,_fnSettingsFromNode:za,_fnLog:R,_fnMap:E,_fnBindAction:Va,_fnCallbackReg:z,_fnCallbackFire:w,_fnLengthOverflow:Sa,_fnRenderer:Pa,_fnDataSource:B,_fnRowAttributes:Ma,_fnCalculateEnd:function(){}});h.fn.dataTable=o;h.fn.dataTableSettings=o.settings;h.fn.dataTableExt=o.ext;h.fn.DataTable=function(a){return h(this).dataTable(a).api()};h.each(o,function(a,b){h.fn.DataTable[a]=
|
158 |
+
b});return h.fn.dataTable};"function"===typeof define&&define.amd?define("datatables",["jquery"],O):"object"===typeof exports?module.exports=O(require("jquery")):jQuery&&!jQuery.fn.dataTable&&O(jQuery)})(window,document);
|
js/media.js
CHANGED
@@ -42,20 +42,24 @@ jQuery(document).ready(function($){
|
|
42 |
tgm_media_frame_img = wp.media.frames.tgm_media_frame = wp.media({
|
43 |
className: 'media-frame tgm-media-frame',
|
44 |
frame: 'select',
|
|
|
45 |
multiple: false,
|
46 |
title: 'Upload Image',
|
47 |
library: {
|
48 |
type: 'image'
|
49 |
},
|
50 |
-
|
51 |
button: {
|
52 |
text: 'Use this image'
|
53 |
}
|
54 |
});
|
|
|
55 |
|
56 |
tgm_media_frame_img.on('select', function(){
|
57 |
var media_attachment = tgm_media_frame_img.state().get('selection').first().toJSON();
|
58 |
-
|
|
|
|
|
|
|
59 |
});
|
60 |
tgm_media_frame_img.open();
|
61 |
});
|
42 |
tgm_media_frame_img = wp.media.frames.tgm_media_frame = wp.media({
|
43 |
className: 'media-frame tgm-media-frame',
|
44 |
frame: 'select',
|
45 |
+
editing: true,
|
46 |
multiple: false,
|
47 |
title: 'Upload Image',
|
48 |
library: {
|
49 |
type: 'image'
|
50 |
},
|
|
|
51 |
button: {
|
52 |
text: 'Use this image'
|
53 |
}
|
54 |
});
|
55 |
+
|
56 |
|
57 |
tgm_media_frame_img.on('select', function(){
|
58 |
var media_attachment = tgm_media_frame_img.state().get('selection').first().toJSON();
|
59 |
+
if (typeof media_attachment["sizes"]["thumbnail"] === "object" && media_attachment["sizes"]["thumbnail"]["url"].length > 0) { var wpgmza_img_thumbnail = media_attachment["sizes"]["thumbnail"]["url"]; }
|
60 |
+
if (typeof media_attachment["sizes"]["full"] === "object" && media_attachment["sizes"]["full"]["url"].length > 0) { var wpgmza_img_full = media_attachment["sizes"]["full"]["url"]; }
|
61 |
+
if (typeof wpgmza_img_thumbnail !== "undefined" && wpgmza_img_thumbnail.length > 0) { jQuery('#wpgmza_add_pic').val(wpgmza_img_thumbnail); }
|
62 |
+
else { jQuery('#wpgmza_add_pic').val(wpgmza_img_full); }
|
63 |
});
|
64 |
tgm_media_frame_img.open();
|
65 |
});
|
languages/wp-google-maps-en_EN.mo
CHANGED
Binary file
|
languages/wp-google-maps-en_EN.po
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: wpgmaps\n"
|
4 |
-
"POT-Creation-Date: 2015-
|
5 |
-
"PO-Revision-Date: 2015-
|
6 |
"Last-Translator: \n"
|
7 |
"Language-Team: \n"
|
8 |
"Language: en\n"
|
@@ -20,383 +20,398 @@ msgstr ""
|
|
20 |
"X-Poedit-SearchPath-2: C:\\wamp\\www\\wordpress38\\wp-content\\plugins\\wp-"
|
21 |
"google-maps-pro\n"
|
22 |
|
23 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-gold/wp-google-maps-gold.php:
|
24 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-gold/wp-google-maps-gold.php:
|
25 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
26 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
27 |
msgid "Geocode was not successful for the following reason"
|
28 |
msgstr ""
|
29 |
|
30 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-gold/wp-google-maps-gold.php:1042
|
31 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-
|
32 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
33 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
34 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
|
|
35 |
msgid "More details"
|
36 |
msgstr ""
|
37 |
|
38 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-gold/wp-google-maps-gold.php:
|
39 |
msgid "Advanced Map Settings"
|
40 |
msgstr ""
|
41 |
|
42 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-gold/wp-google-maps-gold.php:
|
43 |
msgid ""
|
44 |
"Use the <a href='http://gmaps-samples-v3.googlecode.com/svn/trunk/styledmaps/"
|
45 |
"wizard/index.html' target='_BLANK'>Google Maps API Styled Map Wizard</a> to "
|
46 |
"get your style settings"
|
47 |
msgstr ""
|
48 |
|
49 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-gold/wp-google-maps-gold.php:
|
50 |
msgid "Enable Mass Marker Support"
|
51 |
msgstr ""
|
52 |
|
53 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-gold/wp-google-maps-gold.php:
|
54 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-gold/wp-google-maps-gold.php:
|
55 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
56 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
57 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
58 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
59 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
60 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
61 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
62 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
63 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
64 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
65 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
66 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
67 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
|
|
68 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro_categories.php:35
|
69 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
70 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
71 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
72 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
73 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
74 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
75 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
76 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
77 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
78 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
79 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
80 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
81 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
82 |
msgid "Yes"
|
83 |
msgstr ""
|
84 |
|
85 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-gold/wp-google-maps-gold.php:
|
86 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-gold/wp-google-maps-gold.php:
|
87 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
88 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
89 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
90 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
91 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
92 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
93 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
94 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
95 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
96 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
97 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
98 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
99 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
100 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
|
|
101 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro_categories.php:35
|
102 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
103 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
104 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4396
|
105 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4407
|
106 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
107 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
108 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
109 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
110 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
111 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
112 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
113 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
114 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
115 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
|
|
116 |
msgid "No"
|
117 |
msgstr ""
|
118 |
|
119 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-gold/wp-google-maps-gold.php:
|
120 |
msgid "Enable Advanced Styling"
|
121 |
msgstr ""
|
122 |
|
123 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-gold/wp-google-maps-gold.php:
|
124 |
msgid "Paste the JSON data here"
|
125 |
msgstr ""
|
126 |
|
127 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-gold/wp-google-maps-gold.php:
|
128 |
msgid "Save Style Settings"
|
129 |
msgstr ""
|
130 |
|
131 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-gold/wp-google-maps-gold.php:
|
132 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
133 |
msgid ""
|
134 |
"An Unexpected HTTP Error occurred during the API request.</p> <p><a href=\"?"
|
135 |
"\" onclick=\"document.location.reload(); return false;\">Try again</a>"
|
136 |
msgstr ""
|
137 |
|
138 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-gold/wp-google-maps-gold.php:
|
139 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
140 |
msgid "An unknown error occurred"
|
141 |
msgstr ""
|
142 |
|
143 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
144 |
msgid "including Pro & Gold add-ons"
|
145 |
msgstr ""
|
146 |
|
147 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
148 |
msgid "including Pro add-on"
|
149 |
msgstr ""
|
150 |
|
151 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
152 |
msgid ""
|
153 |
"Please <a href='update-core.php'>update your WP Google Maps GOLD version</"
|
154 |
"a>. Your current Gold version is not compatible with the current Pro version."
|
155 |
msgstr ""
|
156 |
|
157 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
158 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
159 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
160 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
161 |
msgid "ZIP / Address:"
|
162 |
msgstr ""
|
163 |
|
164 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
165 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
166 |
msgid "Title / Description:"
|
167 |
msgstr ""
|
168 |
|
169 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
170 |
msgid "Download this as a CSV file"
|
171 |
msgstr ""
|
172 |
|
173 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
174 |
msgid "Download this data as a CSV file"
|
175 |
msgstr ""
|
176 |
|
177 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
178 |
msgid "Create your Map"
|
179 |
msgstr ""
|
180 |
|
181 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
182 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
183 |
msgid "General Settings"
|
184 |
msgstr ""
|
185 |
|
186 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
187 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
188 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wpgmza.php:
|
189 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wpgmza.php:
|
190 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
191 |
msgid "Directions"
|
192 |
msgstr ""
|
193 |
|
194 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
195 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/classes/WPGM_templates.php:21
|
196 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
197 |
msgid "Store Locator"
|
198 |
msgstr ""
|
199 |
|
200 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
201 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
202 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
203 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
204 |
msgid "Advanced Settings"
|
205 |
msgstr ""
|
206 |
|
207 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
208 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
209 |
msgid "Marker Listing Options"
|
210 |
msgstr ""
|
211 |
|
212 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
213 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
214 |
msgid "Short code"
|
215 |
msgstr ""
|
216 |
|
217 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
218 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
219 |
msgid "copy this into your post or page to display the map"
|
220 |
msgstr ""
|
221 |
|
222 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
223 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
224 |
msgid "Map Name"
|
225 |
msgstr ""
|
226 |
|
227 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
228 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
229 |
msgid "Zoom Level"
|
230 |
msgstr ""
|
231 |
|
232 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
233 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
234 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
235 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
236 |
msgid "Width"
|
237 |
msgstr ""
|
238 |
|
239 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
240 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
241 |
#, php-format
|
242 |
msgid "Set to 100% for a responsive map"
|
243 |
msgstr ""
|
244 |
|
245 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
246 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
247 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
248 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
249 |
msgid "Height"
|
250 |
msgstr ""
|
251 |
|
252 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
253 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
254 |
#, php-format
|
255 |
msgid ""
|
256 |
"We recommend that you leave your height in PX. Depending on your theme, "
|
257 |
"using % for the height may break your map."
|
258 |
msgstr ""
|
259 |
|
260 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
261 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
262 |
msgid "Enable Directions?"
|
263 |
msgstr ""
|
264 |
|
265 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
266 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
267 |
msgid "Directions Box Open by Default?"
|
268 |
msgstr ""
|
269 |
|
270 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
271 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
272 |
msgid "Yes, on the left"
|
273 |
msgstr ""
|
274 |
|
275 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
276 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
277 |
msgid "Yes, on the right"
|
278 |
msgstr ""
|
279 |
|
280 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
281 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
282 |
msgid "Yes, above"
|
283 |
msgstr ""
|
284 |
|
285 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
286 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
287 |
msgid "Yes, below"
|
288 |
msgstr ""
|
289 |
|
290 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
291 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
292 |
msgid "Directions Box Width"
|
293 |
msgstr ""
|
294 |
|
295 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
296 |
msgid "Default 'To' address"
|
297 |
msgstr ""
|
298 |
|
299 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
300 |
msgid "General options"
|
301 |
msgstr ""
|
302 |
|
303 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
304 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
305 |
msgid "Enable Store Locator"
|
306 |
msgstr ""
|
307 |
|
308 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
309 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
310 |
msgid "Show distance in"
|
311 |
msgstr ""
|
312 |
|
313 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
314 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
315 |
msgid "Miles"
|
316 |
msgstr ""
|
317 |
|
318 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
319 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
320 |
msgid "Kilometers"
|
321 |
msgstr ""
|
322 |
|
323 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
324 |
msgid "Allow category selection"
|
325 |
msgstr ""
|
326 |
|
327 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
328 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
329 |
msgid "Show bouncing icon"
|
330 |
msgstr ""
|
331 |
|
332 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
333 |
msgid "Hide all markers until a search is done"
|
334 |
msgstr ""
|
335 |
|
336 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
337 |
msgid "Query String"
|
338 |
msgstr ""
|
339 |
|
340 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
341 |
msgid "Enable title search"
|
342 |
msgstr ""
|
343 |
|
344 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
345 |
msgid "Title search String"
|
346 |
msgstr ""
|
347 |
|
348 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
349 |
msgid "Style options"
|
350 |
msgstr ""
|
351 |
|
352 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
353 |
msgid "Line color"
|
354 |
msgstr ""
|
355 |
|
356 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
357 |
msgid "Line opacity"
|
358 |
msgstr ""
|
359 |
|
360 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
361 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
362 |
msgid "(0 - 1.0) example: 0.5 for 50%"
|
363 |
msgstr ""
|
364 |
|
365 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
366 |
msgid "Fill color"
|
367 |
msgstr ""
|
368 |
|
369 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
370 |
msgid "Fill opacity"
|
371 |
msgstr ""
|
372 |
|
373 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
374 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
375 |
msgid "View"
|
376 |
msgstr ""
|
377 |
|
378 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
379 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
380 |
msgid "Store Locator Documentation"
|
381 |
msgstr ""
|
382 |
|
383 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
384 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
385 |
msgid "Default Marker Image"
|
386 |
msgstr ""
|
387 |
|
388 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
389 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
390 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
391 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro_categories.php:101
|
392 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro_categories.php:183
|
393 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
394 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
395 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
396 |
msgid "Upload Image"
|
397 |
msgstr ""
|
398 |
|
399 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
400 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro_categories.php:101
|
401 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro_categories.php:183
|
402 |
msgid ""
|
@@ -404,132 +419,136 @@ msgid ""
|
|
404 |
"target='_BLANK' title='Great Google Map Markers'>here</a>"
|
405 |
msgstr ""
|
406 |
|
407 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
408 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
409 |
msgid "Map type"
|
410 |
msgstr ""
|
411 |
|
412 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
413 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
414 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
415 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
416 |
msgid "Roadmap"
|
417 |
msgstr ""
|
418 |
|
419 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
420 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
421 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
422 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
423 |
msgid "Satellite"
|
424 |
msgstr ""
|
425 |
|
426 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
427 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
428 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
429 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
430 |
msgid "Hybrid"
|
431 |
msgstr ""
|
432 |
|
433 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
434 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
435 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
436 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
437 |
msgid "Terrain"
|
438 |
msgstr ""
|
439 |
|
440 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
441 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
442 |
msgid "Map Alignment"
|
443 |
msgstr ""
|
444 |
|
445 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
446 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
447 |
msgid "Left"
|
448 |
msgstr ""
|
449 |
|
450 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
451 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
452 |
msgid "Center"
|
453 |
msgstr ""
|
454 |
|
455 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
456 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
457 |
msgid "Right"
|
458 |
msgstr ""
|
459 |
|
460 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
461 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
462 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
463 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
464 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
465 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
466 |
msgid "None"
|
467 |
msgstr ""
|
468 |
|
469 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
470 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
471 |
msgid "Show User's Location?"
|
472 |
msgstr ""
|
473 |
|
474 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
475 |
msgid "Enable Layers"
|
476 |
msgstr ""
|
477 |
|
478 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
479 |
msgid "Bicycle Layer"
|
480 |
msgstr ""
|
481 |
|
482 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
483 |
msgid "Traffic Layer"
|
484 |
msgstr ""
|
485 |
|
486 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
487 |
msgid "Weather Layer"
|
488 |
msgstr ""
|
489 |
|
490 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
491 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
492 |
msgid "Show in Degrees Celsius"
|
493 |
msgstr ""
|
494 |
|
495 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
496 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
497 |
msgid "Show in Degrees Fahrenheit"
|
498 |
msgstr ""
|
499 |
|
500 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
501 |
msgid "Cloud Layer"
|
502 |
msgstr ""
|
503 |
|
504 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
505 |
msgid "Transit Layer"
|
506 |
msgstr ""
|
507 |
|
508 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
509 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
510 |
-
msgid "Maximum Zoom Level"
|
511 |
-
msgstr ""
|
512 |
-
|
513 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1366
|
514 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4574
|
515 |
msgid "KML/GeoRSS URL"
|
516 |
msgstr ""
|
517 |
|
518 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
519 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
520 |
msgid "The KML/GeoRSS layer will over-ride most of your map settings"
|
521 |
msgstr ""
|
522 |
|
523 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
524 |
msgid "For multiple sources, separate each one by a comma."
|
525 |
msgstr ""
|
526 |
|
527 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
528 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
529 |
msgid "Fusion table ID"
|
530 |
msgstr ""
|
531 |
|
532 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
533 |
msgid ""
|
534 |
"Read data directly from your Fusion Table. For more information, see <a "
|
535 |
"href='http://googlemapsmania.blogspot.com/2010/05/fusion-tables-google-maps-"
|
@@ -537,375 +556,435 @@ msgid ""
|
|
537 |
"maps-api.html</a>"
|
538 |
msgstr ""
|
539 |
|
540 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
541 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
542 |
msgid "List Markers"
|
543 |
msgstr ""
|
544 |
|
545 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
546 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
547 |
-
msgid "Filter by Category"
|
548 |
-
msgstr ""
|
549 |
-
|
550 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1400
|
551 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4612
|
552 |
-
msgid "Allow users to filter by category?"
|
553 |
-
msgstr ""
|
554 |
-
|
555 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1405
|
556 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4617
|
557 |
msgid "Order markers by"
|
558 |
msgstr ""
|
559 |
|
560 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
561 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
562 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro_categories.php:470
|
563 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro_polygons.php:463
|
564 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro_polylines.php:491
|
565 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wpgmza.php:
|
566 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polygons.php:537
|
567 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polylines.php:554
|
568 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
569 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
570 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
571 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
572 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
573 |
msgid "ID"
|
574 |
msgstr ""
|
575 |
|
576 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
577 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
578 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
579 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
580 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
581 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/
|
582 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/
|
583 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wpgmza.php:
|
584 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wpgmza.php:363
|
585 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wpgmza.php:379
|
586 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polygons.php:34
|
587 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polygons.php:115
|
588 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
589 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
590 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
591 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
592 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
593 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
594 |
msgid "Title"
|
595 |
msgstr ""
|
596 |
|
597 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
598 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/
|
599 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/
|
600 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wpgmza.php:
|
601 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps
|
602 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps
|
603 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
604 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
605 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:5248
|
606 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:5267
|
607 |
msgid "Address"
|
608 |
msgstr ""
|
609 |
|
610 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
611 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
612 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/
|
613 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/
|
614 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wpgmza.php:
|
615 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps
|
616 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps
|
617 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
618 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
619 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:5249
|
620 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:5268
|
621 |
msgid "Description"
|
622 |
msgstr ""
|
623 |
|
624 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
625 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
626 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
627 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5466
|
628 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5579
|
629 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro_categories.php:471
|
630 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wpgmza.php:
|
631 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wpgmza.php:
|
632 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wpgmza.php:
|
633 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
634 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
635 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
636 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
637 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
638 |
msgid "Category"
|
639 |
msgstr ""
|
640 |
|
641 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
642 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
643 |
msgid "Ascending"
|
644 |
msgstr ""
|
645 |
|
646 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
647 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
648 |
msgid "Descending"
|
649 |
msgstr ""
|
650 |
|
651 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
652 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
653 |
msgid "Save Map"
|
654 |
msgstr ""
|
655 |
|
656 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
657 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
658 |
msgid ""
|
659 |
"Tip: Use your mouse to change the layout of your map. When you have "
|
660 |
"positioned the map to your desired location, press \"Save Map\" to keep your "
|
661 |
"settings."
|
662 |
msgstr ""
|
663 |
|
664 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
665 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
666 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
667 |
msgid "Markers"
|
668 |
msgstr ""
|
669 |
|
670 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
671 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/classes/WPGM_templates.php:26
|
672 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
673 |
msgid "Polygons"
|
674 |
msgstr ""
|
675 |
|
676 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
677 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/classes/WPGM_templates.php:31
|
678 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
679 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
680 |
msgid "Polylines"
|
681 |
msgstr ""
|
682 |
|
683 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
684 |
msgid "Add a marker"
|
685 |
msgstr ""
|
686 |
|
687 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
688 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
689 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
690 |
msgid "Address/GPS"
|
691 |
msgstr ""
|
692 |
|
693 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
694 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
695 |
msgid "Or right click on the map"
|
696 |
msgstr ""
|
697 |
|
698 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
699 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
700 |
msgid "Pic URL"
|
701 |
msgstr ""
|
702 |
|
703 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
704 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
705 |
msgid "Link URL"
|
706 |
msgstr ""
|
707 |
|
708 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
709 |
msgid "Format: http://www.domain.com"
|
710 |
msgstr ""
|
711 |
|
712 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
713 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
714 |
msgid "Custom Marker"
|
715 |
msgstr ""
|
716 |
|
717 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
718 |
msgid "ignore if you want to use the default marker"
|
719 |
msgstr ""
|
720 |
|
721 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
722 |
msgid "This is a retina ready marker"
|
723 |
msgstr ""
|
724 |
|
725 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
726 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
727 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
728 |
msgid "Animation"
|
729 |
msgstr ""
|
730 |
|
731 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
732 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
733 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
734 |
msgid "Bounce"
|
735 |
msgstr ""
|
736 |
|
737 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
738 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
739 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
740 |
msgid "Drop"
|
741 |
msgstr ""
|
742 |
|
743 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
744 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
745 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
746 |
msgid "InfoWindow open by default"
|
747 |
msgstr ""
|
748 |
|
749 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
750 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
751 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
752 |
msgid "Add Marker"
|
753 |
msgstr ""
|
754 |
|
755 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
756 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
757 |
msgid "Adding"
|
758 |
msgstr ""
|
759 |
|
760 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
761 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
762 |
msgid "Save Marker"
|
763 |
msgstr ""
|
764 |
|
765 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
766 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
767 |
msgid "Saving"
|
768 |
msgstr ""
|
769 |
|
770 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
771 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
772 |
msgid "Remember to save your marker"
|
773 |
msgstr ""
|
774 |
|
775 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
776 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
777 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
778 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro_polygons.php:25
|
779 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polygons.php:25
|
780 |
msgid "Add a Polygon"
|
781 |
msgstr ""
|
782 |
|
783 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
784 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
785 |
msgid "Add a New Polygon"
|
786 |
msgstr ""
|
787 |
|
788 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
789 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro_polylines.php:25
|
790 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polylines.php:25
|
791 |
msgid "Add a Polyline"
|
792 |
msgstr ""
|
793 |
|
794 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
795 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
796 |
msgid "Add a New Polyline"
|
797 |
msgstr ""
|
798 |
|
799 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
800 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
801 |
msgid "Remember to save your map!"
|
802 |
msgstr ""
|
803 |
|
804 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
805 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
806 |
msgid "Your Markers"
|
807 |
msgstr ""
|
808 |
|
809 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
810 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
811 |
msgid ""
|
812 |
"WP Google Maps encourages you to make use of the amazing icons created by "
|
813 |
"Nicolas Mollet's Maps Icons Collection"
|
814 |
msgstr ""
|
815 |
|
816 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
817 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
818 |
msgid "and to credit him when doing so."
|
819 |
msgstr ""
|
820 |
|
821 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
822 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
823 |
msgid "Use my location"
|
824 |
msgstr ""
|
825 |
|
826 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
827 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
828 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
829 |
msgid "Filter by"
|
830 |
msgstr ""
|
831 |
|
832 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
833 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wpgmza.php:
|
834 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wpgmza.php:
|
835 |
msgid "Get directions to"
|
836 |
msgstr ""
|
837 |
|
838 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
839 |
msgid "Get Directions"
|
840 |
msgstr ""
|
841 |
|
842 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
843 |
msgid "For"
|
844 |
msgstr ""
|
845 |
|
846 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
847 |
msgid "Driving"
|
848 |
msgstr ""
|
849 |
|
850 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
851 |
msgid "Walking"
|
852 |
msgstr ""
|
853 |
|
854 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
855 |
msgid "Bicycling"
|
856 |
msgstr ""
|
857 |
|
858 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
859 |
msgid "show options"
|
860 |
msgstr ""
|
861 |
|
862 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
863 |
msgid "hide options"
|
864 |
msgstr ""
|
865 |
|
866 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
867 |
msgid "Avoid Tolls"
|
868 |
msgstr ""
|
869 |
|
870 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
871 |
msgid "Avoid Highways"
|
872 |
msgstr ""
|
873 |
|
874 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
875 |
msgid "From"
|
876 |
msgstr ""
|
877 |
|
878 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
879 |
msgid "To"
|
880 |
msgstr ""
|
881 |
|
882 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
883 |
msgid "Go"
|
884 |
msgstr ""
|
885 |
|
886 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
887 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
888 |
msgid "Fetching directions..."
|
889 |
msgstr ""
|
890 |
|
891 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
892 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
893 |
msgid "Reset directions"
|
894 |
msgstr ""
|
895 |
|
896 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
897 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
898 |
msgid "Print directions"
|
899 |
msgstr ""
|
900 |
|
901 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
902 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
903 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
904 |
msgid "The map could not load."
|
905 |
msgstr ""
|
906 |
|
907 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
908 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
909 |
msgid ""
|
910 |
"This is normally caused by a conflict with another plugin or a JavaScript "
|
911 |
"error that is preventing our plugin's Javascript from executing. Please try "
|
@@ -913,299 +992,299 @@ msgid ""
|
|
913 |
"persists, please contact nick@wpgmaps.com for support."
|
914 |
msgstr ""
|
915 |
|
916 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
917 |
msgid "Thank you. Your marker is awaiting approval."
|
918 |
msgstr ""
|
919 |
|
920 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
921 |
msgid "Get directions"
|
922 |
msgstr ""
|
923 |
|
924 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
925 |
msgid "My location"
|
926 |
msgstr ""
|
927 |
|
928 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
929 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
930 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
931 |
msgid "km away"
|
932 |
msgstr ""
|
933 |
|
934 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
935 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
936 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
937 |
msgid "miles away"
|
938 |
msgstr ""
|
939 |
|
940 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
941 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
942 |
msgid "Please fill out both the 'from' and 'to' fields"
|
943 |
msgstr ""
|
944 |
|
945 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
946 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
947 |
msgid "Getting your current location address..."
|
948 |
msgstr ""
|
949 |
|
950 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
951 |
msgid "Show _MENU_ entries"
|
952 |
msgstr ""
|
953 |
|
954 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
955 |
msgid "Nothing found - sorry"
|
956 |
msgstr ""
|
957 |
|
958 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
959 |
msgid "Showing _START_ to _END_ of _TOTAL_ records"
|
960 |
msgstr ""
|
961 |
|
962 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
963 |
msgid "Showing 0 to 0 of 0 records"
|
964 |
msgstr ""
|
965 |
|
966 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
967 |
msgid "(filtered from _MAX_ total records)"
|
968 |
msgstr ""
|
969 |
|
970 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
971 |
msgid "First"
|
972 |
msgstr ""
|
973 |
|
974 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
975 |
msgid "Last"
|
976 |
msgstr ""
|
977 |
|
978 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
979 |
msgid "Next"
|
980 |
msgstr ""
|
981 |
|
982 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
983 |
msgid "Previous"
|
984 |
msgstr ""
|
985 |
|
986 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
987 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
988 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
989 |
msgid "Search"
|
990 |
msgstr ""
|
991 |
|
992 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
993 |
msgid "Please prove that you are human by checking the checkbox above"
|
994 |
msgstr ""
|
995 |
|
996 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
997 |
msgid "WP Google Maps"
|
998 |
msgstr ""
|
999 |
|
1000 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1001 |
msgid ""
|
1002 |
"Please ensure you have <strong>both</strong> the <strong>Basic</strong> and "
|
1003 |
"<strong>Pro</strong> versions of WP Google Maps installed and activated at "
|
1004 |
"the same time in order for the plugin to function correctly."
|
1005 |
msgstr ""
|
1006 |
|
1007 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1008 |
msgid "Header 1 should be 'id', not"
|
1009 |
msgstr ""
|
1010 |
|
1011 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1012 |
msgid "Header 2 should be 'map_id', not"
|
1013 |
msgstr ""
|
1014 |
|
1015 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1016 |
msgid "Header 3 should be 'address', not"
|
1017 |
msgstr ""
|
1018 |
|
1019 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1020 |
msgid "Header 4 should be 'description', not"
|
1021 |
msgstr ""
|
1022 |
|
1023 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1024 |
msgid "Header 5 should be 'pic', not"
|
1025 |
msgstr ""
|
1026 |
|
1027 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1028 |
msgid "Header 6 should be 'link', not"
|
1029 |
msgstr ""
|
1030 |
|
1031 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1032 |
msgid "Header 7 should be 'icon', not"
|
1033 |
msgstr ""
|
1034 |
|
1035 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1036 |
msgid "Header 8 should be 'lat', not"
|
1037 |
msgstr ""
|
1038 |
|
1039 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1040 |
msgid "Header 9 should be 'lng', not"
|
1041 |
msgstr ""
|
1042 |
|
1043 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1044 |
msgid "Header 10 should be 'anim', not"
|
1045 |
msgstr ""
|
1046 |
|
1047 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1048 |
msgid "Header 11 should be 'title', not"
|
1049 |
msgstr ""
|
1050 |
|
1051 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1052 |
msgid "Header 12 should be 'infoopen', not"
|
1053 |
msgstr ""
|
1054 |
|
1055 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1056 |
msgid "Header 13 should be 'category', not"
|
1057 |
msgstr ""
|
1058 |
|
1059 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1060 |
msgid "Header 14 should be 'approved', not"
|
1061 |
msgstr ""
|
1062 |
|
1063 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1064 |
msgid "Header 15 should be 'retina', not"
|
1065 |
msgstr ""
|
1066 |
|
1067 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1068 |
msgid "CSV import failed"
|
1069 |
msgstr ""
|
1070 |
|
1071 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1072 |
msgid "Your CSV file has been successfully imported"
|
1073 |
msgstr ""
|
1074 |
|
1075 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1076 |
msgid "Download ALL marker data to a CSV file"
|
1077 |
msgstr ""
|
1078 |
|
1079 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1080 |
msgid "Advanced Options"
|
1081 |
msgstr ""
|
1082 |
|
1083 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1084 |
msgid "OR"
|
1085 |
msgstr ""
|
1086 |
|
1087 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1088 |
msgid "Upload CSV File"
|
1089 |
msgstr ""
|
1090 |
|
1091 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1092 |
msgid "Replace existing data with data in file"
|
1093 |
msgstr ""
|
1094 |
|
1095 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1096 |
msgid ""
|
1097 |
"Automatically geocode addresses to GPS co-ordinates if none are supplied"
|
1098 |
msgstr ""
|
1099 |
|
1100 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1101 |
msgid "Google API Key (Required)"
|
1102 |
msgstr ""
|
1103 |
|
1104 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1105 |
msgid ""
|
1106 |
"You will need a Google Maps Geocode API key for this to work. See https://"
|
1107 |
"developers.google.com/maps/documentation/geocoding/#Limits"
|
1108 |
msgstr ""
|
1109 |
|
1110 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1111 |
msgid "There is a 0.12second delay between each request"
|
1112 |
msgstr ""
|
1113 |
|
1114 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1115 |
msgid "Upload File"
|
1116 |
msgstr ""
|
1117 |
|
1118 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1119 |
msgid "Need help? Read the documentation."
|
1120 |
msgstr ""
|
1121 |
|
1122 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1123 |
msgid "WP Google Maps Support"
|
1124 |
msgstr ""
|
1125 |
|
1126 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1127 |
msgid "Documentation"
|
1128 |
msgstr ""
|
1129 |
|
1130 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1131 |
msgid ""
|
1132 |
"Getting started? Read through some of these articles to help you along your "
|
1133 |
"way."
|
1134 |
msgstr ""
|
1135 |
|
1136 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1137 |
msgid "Documentation:"
|
1138 |
msgstr ""
|
1139 |
|
1140 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1141 |
msgid "Creating your first map"
|
1142 |
msgstr ""
|
1143 |
|
1144 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1145 |
msgid "Using your map as a Widget"
|
1146 |
msgstr ""
|
1147 |
|
1148 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1149 |
msgid "Exporting and Importing your map markers"
|
1150 |
msgstr ""
|
1151 |
|
1152 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1153 |
msgid "Changing the Google Maps language"
|
1154 |
msgstr ""
|
1155 |
|
1156 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1157 |
msgid "WP Google Maps Documentation"
|
1158 |
msgstr ""
|
1159 |
|
1160 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1161 |
msgid "View all documentation."
|
1162 |
msgstr ""
|
1163 |
|
1164 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1165 |
msgid "Troubleshooting"
|
1166 |
msgstr ""
|
1167 |
|
1168 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1169 |
msgid ""
|
1170 |
"WP Google Maps Pro has a diverse and wide range of features which may, from "
|
1171 |
"time to time, run into conflicts with the thousands of themes and other "
|
1172 |
"plugins on the market."
|
1173 |
msgstr ""
|
1174 |
|
1175 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1176 |
msgid "Common issues:"
|
1177 |
msgstr ""
|
1178 |
|
1179 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1180 |
msgid "My map is not showing on my website"
|
1181 |
msgstr ""
|
1182 |
|
1183 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1184 |
msgid "My markers are not showing on my map in the front-end"
|
1185 |
msgstr ""
|
1186 |
|
1187 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1188 |
msgid "I'm getting jQuery errors showing on my website"
|
1189 |
msgstr ""
|
1190 |
|
1191 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1192 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1193 |
msgid "Support"
|
1194 |
msgstr ""
|
1195 |
|
1196 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1197 |
msgid "Still need help? Use one of these links below."
|
1198 |
msgstr ""
|
1199 |
|
1200 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1201 |
msgid "Support forum"
|
1202 |
msgstr ""
|
1203 |
|
1204 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1205 |
msgid "Contact us"
|
1206 |
msgstr ""
|
1207 |
|
1208 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1209 |
msgid ""
|
1210 |
"Dont have time to wait? Jump the queue with <a href='http://www.wpgmaps.com/"
|
1211 |
"priority-support/' title='Priority Support' target='_BLANK'>priority "
|
@@ -1213,493 +1292,516 @@ msgid ""
|
|
1213 |
"href='http://time.is/UTC+2' target='_BLANK'>UTC+2</a>)"
|
1214 |
msgstr ""
|
1215 |
|
1216 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1217 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1218 |
msgid "WP Google Map Settings"
|
1219 |
msgstr ""
|
1220 |
|
1221 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1222 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1223 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1224 |
msgid "Maps"
|
1225 |
msgstr ""
|
1226 |
|
1227 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1228 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1229 |
msgid "InfoWindows"
|
1230 |
msgstr ""
|
1231 |
|
1232 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1233 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1234 |
msgid "Marker Listing"
|
1235 |
msgstr ""
|
1236 |
|
1237 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1238 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1239 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1240 |
msgid "Advanced"
|
1241 |
msgstr ""
|
1242 |
|
1243 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1244 |
msgid "Visitor Generated Markers"
|
1245 |
msgstr ""
|
1246 |
|
1247 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1248 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1249 |
msgid "Error Log"
|
1250 |
msgstr ""
|
1251 |
|
1252 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1253 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1254 |
msgid "WP Google Maps Error log"
|
1255 |
msgstr ""
|
1256 |
|
1257 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1258 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1259 |
msgid ""
|
1260 |
"Having issues? Perhaps something below can give you a clue as to what's "
|
1261 |
"wrong. Alternatively, email this through to nick@wpgmaps.com for help!"
|
1262 |
msgstr ""
|
1263 |
|
1264 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1265 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1266 |
msgid "Save Settings"
|
1267 |
msgstr ""
|
1268 |
|
1269 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1270 |
msgid "Visitor Generated Markers Settings"
|
1271 |
msgstr ""
|
1272 |
|
1273 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1274 |
msgid "Purchase the Visitor Generated Markers Add-on"
|
1275 |
msgstr ""
|
1276 |
|
1277 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1278 |
msgid ""
|
1279 |
"to enable this feature. <br /><br />If you have already purchased it please "
|
1280 |
"ensure that you have uploaded activated the plugin."
|
1281 |
msgstr ""
|
1282 |
|
1283 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1284 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1285 |
msgid "Marker Listing Settings"
|
1286 |
msgstr ""
|
1287 |
|
1288 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1289 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1290 |
msgid ""
|
1291 |
"Changing these settings will alter the way the marker list appears on your "
|
1292 |
"website."
|
1293 |
msgstr ""
|
1294 |
|
1295 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1296 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1297 |
msgid "Advanced Marker Listing"
|
1298 |
msgstr ""
|
1299 |
|
1300 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1301 |
-
|
|
|
|
|
|
|
|
|
1302 |
msgid "Column settings"
|
1303 |
msgstr ""
|
1304 |
|
1305 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1306 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1307 |
msgid "Hide the Icon column"
|
1308 |
msgstr ""
|
1309 |
|
1310 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1311 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1312 |
msgid "Hide the Title column"
|
1313 |
msgstr ""
|
1314 |
|
1315 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1316 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1317 |
msgid "Hide the Address column"
|
1318 |
msgstr ""
|
1319 |
|
1320 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1321 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1322 |
msgid "Hide the Category column"
|
1323 |
msgstr ""
|
1324 |
|
1325 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1326 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1327 |
msgid "Hide the Description column"
|
1328 |
msgstr ""
|
1329 |
|
1330 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1331 |
msgid "Show X items by default"
|
1332 |
msgstr ""
|
1333 |
|
1334 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1335 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1336 |
msgid "Carousel Marker Listing"
|
1337 |
msgstr ""
|
1338 |
|
1339 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1340 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1341 |
msgid "Theme selection"
|
1342 |
msgstr ""
|
1343 |
|
1344 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1345 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1346 |
msgid "Sky"
|
1347 |
msgstr ""
|
1348 |
|
1349 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1350 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1351 |
msgid "Sun"
|
1352 |
msgstr ""
|
1353 |
|
1354 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1355 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1356 |
msgid "Earth"
|
1357 |
msgstr ""
|
1358 |
|
1359 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1360 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1361 |
msgid "Monotone"
|
1362 |
msgstr ""
|
1363 |
|
1364 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1365 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1366 |
msgid "PinkPurple"
|
1367 |
msgstr ""
|
1368 |
|
1369 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1370 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1371 |
msgid "White"
|
1372 |
msgstr ""
|
1373 |
|
1374 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1375 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1376 |
msgid "Black"
|
1377 |
msgstr ""
|
1378 |
|
1379 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1380 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1381 |
msgid "Carousel settings"
|
1382 |
msgstr ""
|
1383 |
|
1384 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1385 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1386 |
msgid "Hide the Image"
|
1387 |
msgstr ""
|
1388 |
|
1389 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1390 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1391 |
msgid "Hide the Title"
|
1392 |
msgstr ""
|
1393 |
|
1394 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1395 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1396 |
msgid "Hide the Marker Icon"
|
1397 |
msgstr ""
|
1398 |
|
1399 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1400 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1401 |
msgid "Hide the Address"
|
1402 |
msgstr ""
|
1403 |
|
1404 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1405 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1406 |
msgid "Hide the Description"
|
1407 |
msgstr ""
|
1408 |
|
1409 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1410 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1411 |
msgid "Hide the Marker Link"
|
1412 |
msgstr ""
|
1413 |
|
1414 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1415 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1416 |
msgid "Hide the Directions Link"
|
1417 |
msgstr ""
|
1418 |
|
1419 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1420 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1421 |
msgid "Resize Images with Timthumb"
|
1422 |
msgstr ""
|
1423 |
|
1424 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1425 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1426 |
msgid "Enable lazyload of images"
|
1427 |
msgstr ""
|
1428 |
|
1429 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1430 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1431 |
msgid "Enable autoheight"
|
1432 |
msgstr ""
|
1433 |
|
1434 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1435 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1436 |
msgid "Enable pagination"
|
1437 |
msgstr ""
|
1438 |
|
1439 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1440 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1441 |
msgid "Enable navigation"
|
1442 |
msgstr ""
|
1443 |
|
1444 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1445 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1446 |
msgid "Items"
|
1447 |
msgstr ""
|
1448 |
|
1449 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1450 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1451 |
msgid "Autoplay after x milliseconds (1000 = 1 second)"
|
1452 |
msgstr ""
|
1453 |
|
1454 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1455 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1456 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1457 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1458 |
msgid "You can use the following"
|
1459 |
msgstr ""
|
1460 |
|
1461 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1462 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1463 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1464 |
msgid "This folder does not exist. Please create it."
|
1465 |
msgstr ""
|
1466 |
|
1467 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1468 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1469 |
msgid "File Permissions:"
|
1470 |
msgstr ""
|
1471 |
|
1472 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1473 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1474 |
msgid ""
|
1475 |
" - The plugin does not have write access to this folder. Please CHMOD this "
|
1476 |
"folder to 755 or 777, or change the location"
|
1477 |
msgstr ""
|
1478 |
|
1479 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1480 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1481 |
msgid ""
|
1482 |
"We suggest that you change the two fields below ONLY if you are experiencing "
|
1483 |
"issues when trying to save the marker XML files."
|
1484 |
msgstr ""
|
1485 |
|
1486 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1487 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1488 |
msgid "Pull marker data from"
|
1489 |
msgstr ""
|
1490 |
|
1491 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1492 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1493 |
msgid "Database (Great for small amounts of markers)"
|
1494 |
msgstr ""
|
1495 |
|
1496 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1497 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1498 |
msgid "XML File (Great for large amounts of markers)"
|
1499 |
msgstr ""
|
1500 |
|
1501 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1502 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1503 |
msgid "Marker data XML directory"
|
1504 |
msgstr ""
|
1505 |
|
1506 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1507 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1508 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1509 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1510 |
msgid "Currently using"
|
1511 |
msgstr ""
|
1512 |
|
1513 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1514 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1515 |
msgid "Marker data XML URL"
|
1516 |
msgstr ""
|
1517 |
|
1518 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1519 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1520 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1521 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1522 |
msgid "Custom CSS"
|
1523 |
msgstr ""
|
1524 |
|
1525 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1526 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1527 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1528 |
msgid "Map Settings"
|
1529 |
msgstr ""
|
1530 |
|
1531 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1532 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1533 |
msgid "General Map Settings"
|
1534 |
msgstr ""
|
1535 |
|
1536 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1537 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1538 |
msgid "Disable StreetView"
|
1539 |
msgstr ""
|
1540 |
|
1541 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1542 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1543 |
msgid "Disable Zoom Controls"
|
1544 |
msgstr ""
|
1545 |
|
1546 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1547 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1548 |
msgid "Disable Pan Controls"
|
1549 |
msgstr ""
|
1550 |
|
1551 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1552 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1553 |
msgid "Disable Map Type Controls"
|
1554 |
msgstr ""
|
1555 |
|
1556 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1557 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1558 |
msgid "Disable Mouse Wheel Zoom"
|
1559 |
msgstr ""
|
1560 |
|
1561 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1562 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1563 |
msgid "Disable Mouse Dragging"
|
1564 |
msgstr ""
|
1565 |
|
1566 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1567 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1568 |
msgid "Disable Mouse Double Click Zooming"
|
1569 |
msgstr ""
|
1570 |
|
1571 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1572 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1573 |
msgid "Open Marker InfoWindows by"
|
1574 |
msgstr ""
|
1575 |
|
1576 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1577 |
msgid "Filter by category displayed as"
|
1578 |
msgstr ""
|
1579 |
|
1580 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1581 |
msgid "Dropdown"
|
1582 |
msgstr ""
|
1583 |
|
1584 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1585 |
msgid "Checkboxes"
|
1586 |
msgstr ""
|
1587 |
|
1588 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1589 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1590 |
msgid "Troubleshooting Options"
|
1591 |
msgstr ""
|
1592 |
|
1593 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1594 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1595 |
msgid ""
|
1596 |
"Over-ride current jQuery with version 1.8.3 (Tick this box if you are "
|
1597 |
"receiving jQuery related errors)"
|
1598 |
msgstr ""
|
1599 |
|
1600 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1601 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1602 |
msgid "Use Google Maps API"
|
1603 |
msgstr ""
|
1604 |
|
1605 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1606 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1607 |
msgid "Lowest level of access to the map editor"
|
1608 |
msgstr ""
|
1609 |
|
1610 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1611 |
-
msgid "
|
1612 |
msgstr ""
|
1613 |
|
1614 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1615 |
-
msgid "
|
1616 |
msgstr ""
|
1617 |
|
1618 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1619 |
-
msgid "
|
1620 |
msgstr ""
|
1621 |
|
1622 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1623 |
msgid "Image Thumbnails"
|
1624 |
msgstr ""
|
1625 |
|
1626 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1627 |
msgid "Do not use TimThumb"
|
1628 |
msgstr ""
|
1629 |
|
1630 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1631 |
-
msgid "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1632 |
msgstr ""
|
1633 |
|
1634 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1635 |
msgid "Max InfoWindow Width"
|
1636 |
msgstr ""
|
1637 |
|
1638 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1639 |
-
msgid "(Minimum:
|
1640 |
msgstr ""
|
1641 |
|
1642 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1643 |
msgid "Other settings"
|
1644 |
msgstr ""
|
1645 |
|
1646 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1647 |
msgid "Open links in a new window"
|
1648 |
msgstr ""
|
1649 |
|
1650 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1651 |
msgid "(Tick this if you want to open your links in a new window)"
|
1652 |
msgstr ""
|
1653 |
|
1654 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1655 |
msgid "Hide the address field"
|
1656 |
msgstr ""
|
1657 |
|
1658 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1659 |
msgid "Link text"
|
1660 |
msgstr ""
|
1661 |
|
1662 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1663 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1664 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1665 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1666 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1667 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1668 |
msgid "Your settings have been saved."
|
1669 |
msgstr ""
|
1670 |
|
1671 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1672 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1673 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1674 |
msgid "Your marker location has been saved."
|
1675 |
msgstr ""
|
1676 |
|
1677 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1678 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1679 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1680 |
msgid "Your polygon has been created."
|
1681 |
msgstr ""
|
1682 |
|
1683 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1684 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1685 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1686 |
msgid "Your polygon has been saved."
|
1687 |
msgstr ""
|
1688 |
|
1689 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1690 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1691 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1692 |
msgid "Your polyline has been created."
|
1693 |
msgstr ""
|
1694 |
|
1695 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1696 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1697 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1698 |
msgid "Your polyline has been saved."
|
1699 |
msgstr ""
|
1700 |
|
1701 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1702 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1703 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polygons.php:31
|
1704 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polygons.php:112
|
1705 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polygons.php:538
|
@@ -1709,18 +1811,18 @@ msgstr ""
|
|
1709 |
msgid "Name"
|
1710 |
msgstr ""
|
1711 |
|
1712 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1713 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1714 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wpgmza.php:
|
1715 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polygons.php:37
|
1716 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polygons.php:118
|
1717 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1718 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1719 |
msgid "Link"
|
1720 |
msgstr ""
|
1721 |
|
1722 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1723 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1724 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro_polygons.php:28
|
1725 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polygons.php:40
|
1726 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polygons.php:121
|
@@ -1729,23 +1831,23 @@ msgstr ""
|
|
1729 |
msgid "Line Color"
|
1730 |
msgstr ""
|
1731 |
|
1732 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1733 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1734 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polygons.php:43
|
1735 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polygons.php:124
|
1736 |
msgid "Line Opacity"
|
1737 |
msgstr ""
|
1738 |
|
1739 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1740 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1741 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro_polygons.php:29
|
1742 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polygons.php:46
|
1743 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polygons.php:127
|
1744 |
msgid "Fill Color"
|
1745 |
msgstr ""
|
1746 |
|
1747 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1748 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1749 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro_polygons.php:30
|
1750 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polygons.php:49
|
1751 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polygons.php:130
|
@@ -1754,47 +1856,47 @@ msgstr ""
|
|
1754 |
msgid "Opacity"
|
1755 |
msgstr ""
|
1756 |
|
1757 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1758 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1759 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polygons.php:52
|
1760 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polygons.php:133
|
1761 |
msgid "On Hover Line Color"
|
1762 |
msgstr ""
|
1763 |
|
1764 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1765 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1766 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polygons.php:55
|
1767 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polygons.php:136
|
1768 |
msgid "On Hover Fill Color"
|
1769 |
msgstr ""
|
1770 |
|
1771 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1772 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1773 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polygons.php:58
|
1774 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polygons.php:139
|
1775 |
msgid "On Hover Opacity"
|
1776 |
msgstr ""
|
1777 |
|
1778 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1779 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1780 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polygons.php:64
|
1781 |
msgid "Click on the map to insert a vertex."
|
1782 |
msgstr ""
|
1783 |
|
1784 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1785 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1786 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polygons.php:65
|
1787 |
msgid "Click on a vertex to remove it."
|
1788 |
msgstr ""
|
1789 |
|
1790 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1791 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1792 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polygons.php:66
|
1793 |
msgid "Drag a vertex to move it."
|
1794 |
msgstr ""
|
1795 |
|
1796 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1797 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1798 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro_polygons.php:42
|
1799 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro_polygons.php:90
|
1800 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polygons.php:74
|
@@ -1802,144 +1904,137 @@ msgstr ""
|
|
1802 |
msgid "Save Polygon"
|
1803 |
msgstr ""
|
1804 |
|
1805 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1806 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps
|
1807 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wpgmza.php:204
|
1808 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:5206
|
1809 |
-
msgid "View this link"
|
1810 |
-
msgstr ""
|
1811 |
-
|
1812 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5544
|
1813 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:2700
|
1814 |
msgid "Radius"
|
1815 |
msgstr ""
|
1816 |
|
1817 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1818 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1819 |
msgid "1mi"
|
1820 |
msgstr ""
|
1821 |
|
1822 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1823 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1824 |
msgid "5mi"
|
1825 |
msgstr ""
|
1826 |
|
1827 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1828 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1829 |
msgid "10mi"
|
1830 |
msgstr ""
|
1831 |
|
1832 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1833 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1834 |
msgid "25mi"
|
1835 |
msgstr ""
|
1836 |
|
1837 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1838 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1839 |
msgid "50mi"
|
1840 |
msgstr ""
|
1841 |
|
1842 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1843 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1844 |
msgid "75mi"
|
1845 |
msgstr ""
|
1846 |
|
1847 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1848 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1849 |
msgid "100mi"
|
1850 |
msgstr ""
|
1851 |
|
1852 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1853 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1854 |
msgid "150mi"
|
1855 |
msgstr ""
|
1856 |
|
1857 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1858 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1859 |
msgid "200mi"
|
1860 |
msgstr ""
|
1861 |
|
1862 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1863 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1864 |
msgid "300mi"
|
1865 |
msgstr ""
|
1866 |
|
1867 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1868 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1869 |
msgid "1km"
|
1870 |
msgstr ""
|
1871 |
|
1872 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1873 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1874 |
msgid "5km"
|
1875 |
msgstr ""
|
1876 |
|
1877 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1878 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1879 |
msgid "10km"
|
1880 |
msgstr ""
|
1881 |
|
1882 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1883 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1884 |
msgid "25km"
|
1885 |
msgstr ""
|
1886 |
|
1887 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1888 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1889 |
msgid "50km"
|
1890 |
msgstr ""
|
1891 |
|
1892 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1893 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1894 |
msgid "75km"
|
1895 |
msgstr ""
|
1896 |
|
1897 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1898 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1899 |
msgid "100km"
|
1900 |
msgstr ""
|
1901 |
|
1902 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1903 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1904 |
msgid "150km"
|
1905 |
msgstr ""
|
1906 |
|
1907 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1908 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1909 |
msgid "200km"
|
1910 |
msgstr ""
|
1911 |
|
1912 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1913 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1914 |
msgid "300km"
|
1915 |
msgstr ""
|
1916 |
|
1917 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1918 |
msgid "Reset"
|
1919 |
msgstr ""
|
1920 |
|
1921 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1922 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1923 |
msgid "Type"
|
1924 |
msgstr ""
|
1925 |
|
1926 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1927 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro_categories.php:479
|
1928 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1929 |
msgid "Trash"
|
1930 |
msgstr ""
|
1931 |
|
1932 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1933 |
msgid "Duplicate"
|
1934 |
msgstr ""
|
1935 |
|
1936 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:
|
1937 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro_categories.php:483
|
1938 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro_polygons.php:488
|
1939 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro_polylines.php:516
|
1940 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polygons.php:565
|
1941 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polylines.php:582
|
1942 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1943 |
msgid "Edit"
|
1944 |
msgstr ""
|
1945 |
|
@@ -1955,7 +2050,7 @@ msgstr ""
|
|
1955 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro_categories.php:19
|
1956 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polygons.php:34
|
1957 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polygons.php:115
|
1958 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1959 |
msgid "Pro Version"
|
1960 |
msgstr ""
|
1961 |
|
@@ -1964,18 +2059,18 @@ msgid "Create marker categories"
|
|
1964 |
msgstr ""
|
1965 |
|
1966 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro_categories.php:19
|
1967 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1968 |
msgid "with the"
|
1969 |
msgstr ""
|
1970 |
|
1971 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro_categories.php:19
|
1972 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1973 |
msgid "of WP Google Maps for only"
|
1974 |
msgstr ""
|
1975 |
|
1976 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro_categories.php:24
|
1977 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1978 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
1979 |
msgid "Problems with the plugin? See the troubleshooting manual."
|
1980 |
msgstr ""
|
1981 |
|
@@ -2048,9 +2143,9 @@ msgid "All maps"
|
|
2048 |
msgstr ""
|
2049 |
|
2050 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro_categories.php:472
|
2051 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wpgmza.php:
|
2052 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2053 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2054 |
msgid "Icon"
|
2055 |
msgstr ""
|
2056 |
|
@@ -2069,10 +2164,10 @@ msgstr ""
|
|
2069 |
|
2070 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro_polygons.php:465
|
2071 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro_polylines.php:493
|
2072 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wpgmza.php:
|
2073 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polygons.php:539
|
2074 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polylines.php:556
|
2075 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2076 |
msgid "Action"
|
2077 |
msgstr ""
|
2078 |
|
@@ -2107,25 +2202,30 @@ msgstr ""
|
|
2107 |
msgid "Delete this polyline"
|
2108 |
msgstr ""
|
2109 |
|
2110 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wpgmza.php:
|
2111 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps
|
2112 |
-
|
2113 |
-
|
|
|
|
|
|
|
|
|
|
|
2114 |
msgid "Edit this marker"
|
2115 |
msgstr ""
|
2116 |
|
2117 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wpgmza.php:
|
2118 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2119 |
msgid "Approve this marker"
|
2120 |
msgstr ""
|
2121 |
|
2122 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wpgmza.php:
|
2123 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2124 |
msgid "Delete this marker"
|
2125 |
msgstr ""
|
2126 |
|
2127 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wpgmza.php:
|
2128 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2129 |
msgid "Image"
|
2130 |
msgstr ""
|
2131 |
|
@@ -2257,198 +2357,198 @@ msgstr ""
|
|
2257 |
msgid "Line Thickness"
|
2258 |
msgstr ""
|
2259 |
|
2260 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2261 |
msgid "My first map"
|
2262 |
msgstr ""
|
2263 |
|
2264 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2265 |
msgid ""
|
2266 |
"<strong>WP Google Maps cannot find the directory it uses to save marker data "
|
2267 |
"to. Please confirm that <em>"
|
2268 |
msgstr ""
|
2269 |
|
2270 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2271 |
msgid ""
|
2272 |
"</em>exists. Please also ensure that you assign file permissions of 755 (or "
|
2273 |
"777) to this directory."
|
2274 |
msgstr ""
|
2275 |
|
2276 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2277 |
msgid ""
|
2278 |
"Timthumb does not have 'write' permission for the cache directory. Please "
|
2279 |
"enable 'write' permissions (755 or 777) for "
|
2280 |
msgstr ""
|
2281 |
|
2282 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2283 |
msgid "in order for images to show up while using Timthumb. Please see "
|
2284 |
msgstr ""
|
2285 |
|
2286 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2287 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2288 |
msgid "this page"
|
2289 |
msgstr ""
|
2290 |
|
2291 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2292 |
msgid ""
|
2293 |
"for help on how to do it. Alternatively, you can disable the use of Timthumb "
|
2294 |
"in Maps->Settings"
|
2295 |
msgstr ""
|
2296 |
|
2297 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2298 |
msgid "DOMDocument is not enabled"
|
2299 |
msgstr ""
|
2300 |
|
2301 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2302 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2303 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2304 |
msgid "Could not save XML file"
|
2305 |
msgstr ""
|
2306 |
|
2307 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2308 |
msgid "Error: The map ID"
|
2309 |
msgstr ""
|
2310 |
|
2311 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2312 |
msgid "does not exist"
|
2313 |
msgstr ""
|
2314 |
|
2315 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2316 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2317 |
msgid "You cannot save a blank polygon"
|
2318 |
msgstr ""
|
2319 |
|
2320 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2321 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2322 |
msgid "You cannot save a blank polyline"
|
2323 |
msgstr ""
|
2324 |
|
2325 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2326 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2327 |
msgid "Thank you for your feedback!"
|
2328 |
msgstr ""
|
2329 |
|
2330 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2331 |
msgid "Categories"
|
2332 |
msgstr ""
|
2333 |
|
2334 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2335 |
msgid "Settings"
|
2336 |
msgstr ""
|
2337 |
|
2338 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2339 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2340 |
msgid "Experiencing problems with the plugin?"
|
2341 |
msgstr ""
|
2342 |
|
2343 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2344 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2345 |
msgid "See the troubleshooting manual."
|
2346 |
msgstr ""
|
2347 |
|
2348 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2349 |
msgid "Or ask a question on our "
|
2350 |
msgstr ""
|
2351 |
|
2352 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2353 |
msgid "Support forum."
|
2354 |
msgstr ""
|
2355 |
|
2356 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2357 |
msgid "There was a problem deleting the map."
|
2358 |
msgstr ""
|
2359 |
|
2360 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2361 |
msgid "Delete your map"
|
2362 |
msgstr ""
|
2363 |
|
2364 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2365 |
msgid "Are you sure you want to delete the map"
|
2366 |
msgstr ""
|
2367 |
|
2368 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2369 |
msgid "There was a problem duplicating the map."
|
2370 |
msgstr ""
|
2371 |
|
2372 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2373 |
msgid "There was a problem deleting the marker."
|
2374 |
msgstr ""
|
2375 |
|
2376 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2377 |
msgid "Delete Marker"
|
2378 |
msgstr ""
|
2379 |
|
2380 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2381 |
msgid "Are you sure you want to delete this marker:"
|
2382 |
msgstr ""
|
2383 |
|
2384 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2385 |
msgid "Marker InfoWindow Settings"
|
2386 |
msgstr ""
|
2387 |
|
2388 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2389 |
msgid "Marker Data Location"
|
2390 |
msgstr ""
|
2391 |
|
2392 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2393 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2394 |
msgid "My Maps"
|
2395 |
msgstr ""
|
2396 |
|
2397 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2398 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2399 |
msgid "Add New"
|
2400 |
msgstr ""
|
2401 |
|
2402 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2403 |
msgid "Create unlimited maps"
|
2404 |
msgstr ""
|
2405 |
|
2406 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2407 |
msgid "My Markers"
|
2408 |
msgstr ""
|
2409 |
|
2410 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2411 |
msgid "Linked to"
|
2412 |
msgstr ""
|
2413 |
|
2414 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2415 |
msgid "GPS"
|
2416 |
msgstr ""
|
2417 |
|
2418 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2419 |
msgid "Pic"
|
2420 |
msgstr ""
|
2421 |
|
2422 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2423 |
msgid ""
|
2424 |
"Add custom icons, titles, descriptions, pictures and links to your markers "
|
2425 |
"with the"
|
2426 |
msgstr ""
|
2427 |
|
2428 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2429 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2430 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2431 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2432 |
msgid "Pro Edition"
|
2433 |
msgstr ""
|
2434 |
|
2435 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2436 |
msgid "of this plugin for just"
|
2437 |
msgstr ""
|
2438 |
|
2439 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2440 |
msgid "Purchase the Pro Edition"
|
2441 |
msgstr ""
|
2442 |
|
2443 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2444 |
msgid "of WP Google Maps and save your markers to a CSV file!"
|
2445 |
msgstr ""
|
2446 |
|
2447 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2448 |
msgid "Please note"
|
2449 |
msgstr ""
|
2450 |
|
2451 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2452 |
msgid ""
|
2453 |
"We've noticed that you are using W3 Total Cache and that you have CDN "
|
2454 |
"enabled.<br /><br />In order for the markers to show up on your map, you "
|
@@ -2457,35 +2557,35 @@ msgid ""
|
|
2457 |
"page=w3tc_cdn#advanced'>CDN settings page</a> of W3 Total Cache"
|
2458 |
msgstr ""
|
2459 |
|
2460 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2461 |
msgid "Pro Upgrade"
|
2462 |
msgstr ""
|
2463 |
|
2464 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2465 |
msgid "Query string"
|
2466 |
msgstr ""
|
2467 |
|
2468 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2469 |
msgid "Enable Bicycle Layer?"
|
2470 |
msgstr ""
|
2471 |
|
2472 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2473 |
msgid "Enable Traffic Layer?"
|
2474 |
msgstr ""
|
2475 |
|
2476 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2477 |
msgid "Enable Weather Layer?"
|
2478 |
msgstr ""
|
2479 |
|
2480 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2481 |
msgid "Enable Cloud Layer?"
|
2482 |
msgstr ""
|
2483 |
|
2484 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2485 |
msgid "Enable Public Transport Layer?"
|
2486 |
msgstr ""
|
2487 |
|
2488 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:
|
2489 |
msgid ""
|
2490 |
"Get the rest of these advanced features with the Pro version for only <a "
|
2491 |
"href=\"http://www.wpgmaps.com/purchase-professional-version/?"
|
@@ -2493,11 +2593,11 @@ msgid ""
|
|
2493 |
"a>. Support and updates included forever."
|
2494 |
msgstr ""
|
2495 |
|
2496 |
-
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-g
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: wpgmaps\n"
|
4 |
+
"POT-Creation-Date: 2015-03-16 10:01+0200\n"
|
5 |
+
"PO-Revision-Date: 2015-03-16 10:01+0200\n"
|
6 |
"Last-Translator: \n"
|
7 |
"Language-Team: \n"
|
8 |
"Language: en\n"
|
20 |
"X-Poedit-SearchPath-2: C:\\wamp\\www\\wordpress38\\wp-content\\plugins\\wp-"
|
21 |
"google-maps-pro\n"
|
22 |
|
23 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-gold/wp-google-maps-gold.php:640
|
24 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-gold/wp-google-maps-gold.php:750
|
25 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:3296
|
26 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:3405
|
27 |
msgid "Geocode was not successful for the following reason"
|
28 |
msgstr ""
|
29 |
|
30 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-gold/wp-google-maps-gold.php:1042
|
31 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-gold/wp-google-maps-gold.php:1202
|
32 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:2791
|
33 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:3709
|
34 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:3869
|
35 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4817
|
36 |
msgid "More details"
|
37 |
msgstr ""
|
38 |
|
39 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-gold/wp-google-maps-gold.php:1362
|
40 |
msgid "Advanced Map Settings"
|
41 |
msgstr ""
|
42 |
|
43 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-gold/wp-google-maps-gold.php:1363
|
44 |
msgid ""
|
45 |
"Use the <a href='http://gmaps-samples-v3.googlecode.com/svn/trunk/styledmaps/"
|
46 |
"wizard/index.html' target='_BLANK'>Google Maps API Styled Map Wizard</a> to "
|
47 |
"get your style settings"
|
48 |
msgstr ""
|
49 |
|
50 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-gold/wp-google-maps-gold.php:1368
|
51 |
msgid "Enable Mass Marker Support"
|
52 |
msgstr ""
|
53 |
|
54 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-gold/wp-google-maps-gold.php:1371
|
55 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-gold/wp-google-maps-gold.php:1380
|
56 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1155
|
57 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1205
|
58 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1227
|
59 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1235
|
60 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1243
|
61 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1261
|
62 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1355
|
63 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1363
|
64 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1409
|
65 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1413
|
66 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1417
|
67 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1426
|
68 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1430
|
69 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1607
|
70 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro_categories.php:35
|
71 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3544
|
72 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3647
|
73 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4408
|
74 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4444
|
75 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4466
|
76 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4483
|
77 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4491
|
78 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4499
|
79 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4511
|
80 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4519
|
81 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4574
|
82 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4817
|
83 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4870
|
84 |
msgid "Yes"
|
85 |
msgstr ""
|
86 |
|
87 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-gold/wp-google-maps-gold.php:1372
|
88 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-gold/wp-google-maps-gold.php:1381
|
89 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1156
|
90 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1166
|
91 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1206
|
92 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1228
|
93 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1236
|
94 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1244
|
95 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1262
|
96 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1356
|
97 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1364
|
98 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1410
|
99 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1414
|
100 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1418
|
101 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1427
|
102 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1431
|
103 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1606
|
104 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro_categories.php:35
|
105 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3544
|
106 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3647
|
|
|
107 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4407
|
108 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4418
|
109 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4445
|
110 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4467
|
111 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4484
|
112 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4492
|
113 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4500
|
114 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4512
|
115 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4520
|
116 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4573
|
117 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4816
|
118 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4869
|
119 |
msgid "No"
|
120 |
msgstr ""
|
121 |
|
122 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-gold/wp-google-maps-gold.php:1377
|
123 |
msgid "Enable Advanced Styling"
|
124 |
msgstr ""
|
125 |
|
126 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-gold/wp-google-maps-gold.php:1386
|
127 |
msgid "Paste the JSON data here"
|
128 |
msgstr ""
|
129 |
|
130 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-gold/wp-google-maps-gold.php:1390
|
131 |
msgid "Save Style Settings"
|
132 |
msgstr ""
|
133 |
|
134 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-gold/wp-google-maps-gold.php:1468
|
135 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4391
|
136 |
msgid ""
|
137 |
"An Unexpected HTTP Error occurred during the API request.</p> <p><a href=\"?"
|
138 |
"\" onclick=\"document.location.reload(); return false;\">Try again</a>"
|
139 |
msgstr ""
|
140 |
|
141 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-gold/wp-google-maps-gold.php:1473
|
142 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4396
|
143 |
msgid "An unknown error occurred"
|
144 |
msgstr ""
|
145 |
|
146 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:811
|
147 |
msgid "including Pro & Gold add-ons"
|
148 |
msgstr ""
|
149 |
|
150 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:811
|
151 |
msgid "including Pro add-on"
|
152 |
msgstr ""
|
153 |
|
154 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:816
|
155 |
msgid ""
|
156 |
"Please <a href='update-core.php'>update your WP Google Maps GOLD version</"
|
157 |
"a>. Your current Gold version is not compatible with the current Pro version."
|
158 |
msgstr ""
|
159 |
|
160 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:896
|
161 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5707
|
162 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:2698
|
163 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4154
|
164 |
msgid "ZIP / Address:"
|
165 |
msgstr ""
|
166 |
|
167 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:897
|
168 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5708
|
169 |
msgid "Title / Description:"
|
170 |
msgstr ""
|
171 |
|
172 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1044
|
173 |
msgid "Download this as a CSV file"
|
174 |
msgstr ""
|
175 |
|
176 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1044
|
177 |
msgid "Download this data as a CSV file"
|
178 |
msgstr ""
|
179 |
|
180 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1058
|
181 |
msgid "Create your Map"
|
182 |
msgstr ""
|
183 |
|
184 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1065
|
185 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4296
|
186 |
msgid "General Settings"
|
187 |
msgstr ""
|
188 |
|
189 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1066
|
190 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:2114
|
191 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wpgmza.php:278
|
192 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wpgmza.php:363
|
193 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4297
|
194 |
msgid "Directions"
|
195 |
msgstr ""
|
196 |
|
197 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1067
|
198 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/classes/WPGM_templates.php:21
|
199 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4298
|
200 |
msgid "Store Locator"
|
201 |
msgstr ""
|
202 |
|
203 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1068
|
204 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4611
|
205 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3920
|
206 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4299
|
207 |
msgid "Advanced Settings"
|
208 |
msgstr ""
|
209 |
|
210 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1069
|
211 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4300
|
212 |
msgid "Marker Listing Options"
|
213 |
msgstr ""
|
214 |
|
215 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1106
|
216 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4333
|
217 |
msgid "Short code"
|
218 |
msgstr ""
|
219 |
|
220 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1107
|
221 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4334
|
222 |
msgid "copy this into your post or page to display the map"
|
223 |
msgstr ""
|
224 |
|
225 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1111
|
226 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4337
|
227 |
msgid "Map Name"
|
228 |
msgstr ""
|
229 |
|
230 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1115
|
231 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4363
|
232 |
msgid "Zoom Level"
|
233 |
msgstr ""
|
234 |
|
235 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1122
|
236 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5907
|
237 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4040
|
238 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4341
|
239 |
msgid "Width"
|
240 |
msgstr ""
|
241 |
|
242 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1129
|
243 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4348
|
244 |
#, php-format
|
245 |
msgid "Set to 100% for a responsive map"
|
246 |
msgstr ""
|
247 |
|
248 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1134
|
249 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5908
|
250 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4041
|
251 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4353
|
252 |
msgid "Height"
|
253 |
msgstr ""
|
254 |
|
255 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1139
|
256 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4358
|
257 |
#, php-format
|
258 |
msgid ""
|
259 |
"We recommend that you leave your height in PX. Depending on your theme, "
|
260 |
"using % for the height may break your map."
|
261 |
msgstr ""
|
262 |
|
263 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1153
|
264 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4405
|
265 |
msgid "Enable Directions?"
|
266 |
msgstr ""
|
267 |
|
268 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1162
|
269 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4414
|
270 |
msgid "Directions Box Open by Default?"
|
271 |
msgstr ""
|
272 |
|
273 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1167
|
274 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4419
|
275 |
msgid "Yes, on the left"
|
276 |
msgstr ""
|
277 |
|
278 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1168
|
279 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4420
|
280 |
msgid "Yes, on the right"
|
281 |
msgstr ""
|
282 |
|
283 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1169
|
284 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4421
|
285 |
msgid "Yes, above"
|
286 |
msgstr ""
|
287 |
|
288 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1170
|
289 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4422
|
290 |
msgid "Yes, below"
|
291 |
msgstr ""
|
292 |
|
293 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1176
|
294 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4428
|
295 |
msgid "Directions Box Width"
|
296 |
msgstr ""
|
297 |
|
298 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1183
|
299 |
msgid "Default 'To' address"
|
300 |
msgstr ""
|
301 |
|
302 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1199
|
303 |
msgid "General options"
|
304 |
msgstr ""
|
305 |
|
306 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1203
|
307 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4442
|
308 |
msgid "Enable Store Locator"
|
309 |
msgstr ""
|
310 |
|
311 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1211
|
312 |
+
msgid "Restrict to country"
|
313 |
+
msgstr ""
|
314 |
+
|
315 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1212
|
316 |
+
msgid "Insert country TLD. For example, use DE for Germany."
|
317 |
+
msgstr ""
|
318 |
+
|
319 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1212
|
320 |
+
msgid "Leave blank for no restrictions."
|
321 |
+
msgstr ""
|
322 |
+
|
323 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1216
|
324 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4451
|
325 |
msgid "Show distance in"
|
326 |
msgstr ""
|
327 |
|
328 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1218
|
329 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4453
|
330 |
msgid "Miles"
|
331 |
msgstr ""
|
332 |
|
333 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1219
|
334 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4454
|
335 |
msgid "Kilometers"
|
336 |
msgstr ""
|
337 |
|
338 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1225
|
339 |
msgid "Allow category selection"
|
340 |
msgstr ""
|
341 |
|
342 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1233
|
343 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4464
|
344 |
msgid "Show bouncing icon"
|
345 |
msgstr ""
|
346 |
|
347 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1241
|
348 |
msgid "Hide all markers until a search is done"
|
349 |
msgstr ""
|
350 |
|
351 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1254
|
352 |
msgid "Query String"
|
353 |
msgstr ""
|
354 |
|
355 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1259
|
356 |
msgid "Enable title search"
|
357 |
msgstr ""
|
358 |
|
359 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1267
|
360 |
msgid "Title search String"
|
361 |
msgstr ""
|
362 |
|
363 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1272
|
364 |
msgid "Style options"
|
365 |
msgstr ""
|
366 |
|
367 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1277
|
368 |
msgid "Line color"
|
369 |
msgstr ""
|
370 |
|
371 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1285
|
372 |
msgid "Line opacity"
|
373 |
msgstr ""
|
374 |
|
375 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1288
|
376 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1304
|
377 |
msgid "(0 - 1.0) example: 0.5 for 50%"
|
378 |
msgstr ""
|
379 |
|
380 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1293
|
381 |
msgid "Fill color"
|
382 |
msgstr ""
|
383 |
|
384 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1301
|
385 |
msgid "Fill opacity"
|
386 |
msgstr ""
|
387 |
|
388 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1313
|
389 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4473
|
390 |
msgid "View"
|
391 |
msgstr ""
|
392 |
|
393 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1313
|
394 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4473
|
395 |
msgid "Store Locator Documentation"
|
396 |
msgstr ""
|
397 |
|
398 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1326
|
399 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4566
|
400 |
msgid "Default Marker Image"
|
401 |
msgstr ""
|
402 |
|
403 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1327
|
404 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1580
|
405 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1584
|
406 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro_categories.php:101
|
407 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro_categories.php:183
|
408 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4567
|
409 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4882
|
410 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4886
|
411 |
msgid "Upload Image"
|
412 |
msgstr ""
|
413 |
|
414 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1327
|
415 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro_categories.php:101
|
416 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro_categories.php:183
|
417 |
msgid ""
|
419 |
"target='_BLANK' title='Great Google Map Markers'>here</a>"
|
420 |
msgstr ""
|
421 |
|
422 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1331
|
423 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4379
|
424 |
msgid "Map type"
|
425 |
msgstr ""
|
426 |
|
427 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1333
|
428 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5915
|
429 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4048
|
430 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4381
|
431 |
msgid "Roadmap"
|
432 |
msgstr ""
|
433 |
|
434 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1334
|
435 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5916
|
436 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4049
|
437 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4382
|
438 |
msgid "Satellite"
|
439 |
msgstr ""
|
440 |
|
441 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1335
|
442 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5917
|
443 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4050
|
444 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4383
|
445 |
msgid "Hybrid"
|
446 |
msgstr ""
|
447 |
|
448 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1336
|
449 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5918
|
450 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4051
|
451 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4384
|
452 |
msgid "Terrain"
|
453 |
msgstr ""
|
454 |
|
455 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1342
|
456 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4369
|
457 |
msgid "Map Alignment"
|
458 |
msgstr ""
|
459 |
|
460 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1344
|
461 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4371
|
462 |
msgid "Left"
|
463 |
msgstr ""
|
464 |
|
465 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1345
|
466 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4372
|
467 |
msgid "Center"
|
468 |
msgstr ""
|
469 |
|
470 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1346
|
471 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4373
|
472 |
msgid "Right"
|
473 |
msgstr ""
|
474 |
|
475 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1347
|
476 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1597
|
477 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4374
|
478 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4612
|
479 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4805
|
480 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4858
|
481 |
msgid "None"
|
482 |
msgstr ""
|
483 |
|
484 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1353
|
485 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4571
|
486 |
msgid "Show User's Location?"
|
487 |
msgstr ""
|
488 |
|
489 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1361
|
490 |
+
msgid "Click marker opens link"
|
491 |
+
msgstr ""
|
492 |
+
|
493 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1372
|
494 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4526
|
495 |
+
msgid "Maximum Zoom Level"
|
496 |
+
msgstr ""
|
497 |
+
|
498 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1406
|
499 |
msgid "Enable Layers"
|
500 |
msgstr ""
|
501 |
|
502 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1411
|
503 |
msgid "Bicycle Layer"
|
504 |
msgstr ""
|
505 |
|
506 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1415
|
507 |
msgid "Traffic Layer"
|
508 |
msgstr ""
|
509 |
|
510 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1420
|
511 |
msgid "Weather Layer"
|
512 |
msgstr ""
|
513 |
|
514 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1421
|
515 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4503
|
516 |
msgid "Show in Degrees Celsius"
|
517 |
msgstr ""
|
518 |
|
519 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1422
|
520 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4504
|
521 |
msgid "Show in Degrees Fahrenheit"
|
522 |
msgstr ""
|
523 |
|
524 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1428
|
525 |
msgid "Cloud Layer"
|
526 |
msgstr ""
|
527 |
|
528 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1432
|
529 |
msgid "Transit Layer"
|
530 |
msgstr ""
|
531 |
|
532 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1438
|
533 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4585
|
|
|
|
|
|
|
|
|
|
|
534 |
msgid "KML/GeoRSS URL"
|
535 |
msgstr ""
|
536 |
|
537 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1440
|
538 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4587
|
539 |
msgid "The KML/GeoRSS layer will over-ride most of your map settings"
|
540 |
msgstr ""
|
541 |
|
542 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1440
|
543 |
msgid "For multiple sources, separate each one by a comma."
|
544 |
msgstr ""
|
545 |
|
546 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1444
|
547 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4591
|
548 |
msgid "Fusion table ID"
|
549 |
msgstr ""
|
550 |
|
551 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1446
|
552 |
msgid ""
|
553 |
"Read data directly from your Fusion Table. For more information, see <a "
|
554 |
"href='http://googlemapsmania.blogspot.com/2010/05/fusion-tables-google-maps-"
|
556 |
"maps-api.html</a>"
|
557 |
msgstr ""
|
558 |
|
559 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1458
|
560 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4609
|
561 |
msgid "List Markers"
|
562 |
msgstr ""
|
563 |
|
564 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1472
|
565 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4628
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
566 |
msgid "Order markers by"
|
567 |
msgstr ""
|
568 |
|
569 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1475
|
570 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5905
|
571 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro_categories.php:470
|
572 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro_polygons.php:463
|
573 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro_polylines.php:491
|
574 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wpgmza.php:408
|
575 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polygons.php:537
|
576 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polylines.php:554
|
577 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4038
|
578 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4097
|
579 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4631
|
580 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4997
|
581 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:5255
|
582 |
msgid "ID"
|
583 |
msgstr ""
|
584 |
|
585 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1476
|
586 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1567
|
587 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5400
|
588 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5482
|
589 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5906
|
590 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wpgmza.php:410
|
591 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wpgmza.php:437
|
592 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wpgmza.php:457
|
|
|
|
|
593 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polygons.php:34
|
594 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polygons.php:115
|
595 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4039
|
596 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4100
|
597 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4632
|
598 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4874
|
599 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:5257
|
600 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:5276
|
601 |
msgid "Title"
|
602 |
msgstr ""
|
603 |
|
604 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1477
|
605 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wpgmza.php:412
|
606 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wpgmza.php:439
|
607 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wpgmza.php:459
|
608 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4101
|
609 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4633
|
610 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:5259
|
611 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:5278
|
|
|
|
|
612 |
msgid "Address"
|
613 |
msgstr ""
|
614 |
|
615 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1478
|
616 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1577
|
617 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wpgmza.php:413
|
618 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wpgmza.php:440
|
619 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wpgmza.php:460
|
620 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4634
|
621 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4879
|
622 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:5260
|
623 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:5279
|
|
|
|
|
624 |
msgid "Description"
|
625 |
msgstr ""
|
626 |
|
627 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1479
|
628 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1588
|
629 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5765
|
|
|
|
|
630 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro_categories.php:471
|
631 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wpgmza.php:411
|
632 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wpgmza.php:438
|
633 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wpgmza.php:458
|
634 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:2746
|
635 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4635
|
636 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4888
|
637 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:5258
|
638 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:5277
|
639 |
msgid "Category"
|
640 |
msgstr ""
|
641 |
|
642 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1482
|
643 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4638
|
644 |
msgid "Ascending"
|
645 |
msgstr ""
|
646 |
|
647 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1483
|
648 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4639
|
649 |
msgid "Descending"
|
650 |
msgstr ""
|
651 |
|
652 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1494
|
653 |
+
msgid "Move list inside map"
|
654 |
+
msgstr ""
|
655 |
+
|
656 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1496
|
657 |
+
msgid "Move your marker list inside the map area"
|
658 |
+
msgstr ""
|
659 |
+
|
660 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1498
|
661 |
+
msgid "Placement: "
|
662 |
+
msgstr ""
|
663 |
+
|
664 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1500
|
665 |
+
msgid "Top Center"
|
666 |
+
msgstr ""
|
667 |
+
|
668 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1501
|
669 |
+
msgid "Top Left"
|
670 |
+
msgstr ""
|
671 |
+
|
672 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1502
|
673 |
+
msgid "Top Right"
|
674 |
+
msgstr ""
|
675 |
+
|
676 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1503
|
677 |
+
msgid "Left Top "
|
678 |
+
msgstr ""
|
679 |
+
|
680 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1504
|
681 |
+
msgid "Right Top"
|
682 |
+
msgstr ""
|
683 |
+
|
684 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1505
|
685 |
+
msgid "Left Center"
|
686 |
+
msgstr ""
|
687 |
+
|
688 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1506
|
689 |
+
msgid "Right Center"
|
690 |
+
msgstr ""
|
691 |
+
|
692 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1507
|
693 |
+
msgid "Left Bottom"
|
694 |
+
msgstr ""
|
695 |
+
|
696 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1508
|
697 |
+
msgid "Right Bottom"
|
698 |
+
msgstr ""
|
699 |
+
|
700 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1509
|
701 |
+
msgid "Bottom Center"
|
702 |
+
msgstr ""
|
703 |
+
|
704 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1510
|
705 |
+
msgid "Bottom Left"
|
706 |
+
msgstr ""
|
707 |
+
|
708 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1511
|
709 |
+
msgid "Bottom Right"
|
710 |
+
msgstr ""
|
711 |
+
|
712 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1513
|
713 |
+
msgid "Container Width: "
|
714 |
+
msgstr ""
|
715 |
+
|
716 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1514
|
717 |
+
msgid "Container Height: "
|
718 |
+
msgstr ""
|
719 |
+
|
720 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1523
|
721 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4621
|
722 |
+
msgid "Filter by Category"
|
723 |
+
msgstr ""
|
724 |
+
|
725 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1525
|
726 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4623
|
727 |
+
msgid "Allow users to filter by category?"
|
728 |
+
msgstr ""
|
729 |
+
|
730 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1543
|
731 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4774
|
732 |
msgid "Save Map"
|
733 |
msgstr ""
|
734 |
|
735 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1545
|
736 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4777
|
737 |
msgid ""
|
738 |
"Tip: Use your mouse to change the layout of your map. When you have "
|
739 |
"positioned the map to your desired location, press \"Save Map\" to keep your "
|
740 |
"settings."
|
741 |
msgstr ""
|
742 |
|
743 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1555
|
744 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4784
|
745 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4792
|
746 |
msgid "Markers"
|
747 |
msgstr ""
|
748 |
|
749 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1556
|
750 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/classes/WPGM_templates.php:26
|
751 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4908
|
752 |
msgid "Polygons"
|
753 |
msgstr ""
|
754 |
|
755 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1557
|
756 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/classes/WPGM_templates.php:31
|
757 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4787
|
758 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4913
|
759 |
msgid "Polylines"
|
760 |
msgstr ""
|
761 |
|
762 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1562
|
763 |
msgid "Add a marker"
|
764 |
msgstr ""
|
765 |
|
766 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1572
|
767 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4796
|
768 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4849
|
769 |
msgid "Address/GPS"
|
770 |
msgstr ""
|
771 |
|
772 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1573
|
773 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4797
|
774 |
msgid "Or right click on the map"
|
775 |
msgstr ""
|
776 |
|
777 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1579
|
778 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4881
|
779 |
msgid "Pic URL"
|
780 |
msgstr ""
|
781 |
|
782 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1581
|
783 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4883
|
784 |
msgid "Link URL"
|
785 |
msgstr ""
|
786 |
|
787 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1582
|
788 |
msgid "Format: http://www.domain.com"
|
789 |
msgstr ""
|
790 |
|
791 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1583
|
792 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4885
|
793 |
msgid "Custom Marker"
|
794 |
msgstr ""
|
795 |
|
796 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1584
|
797 |
msgid "ignore if you want to use the default marker"
|
798 |
msgstr ""
|
799 |
|
800 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1585
|
801 |
msgid "This is a retina ready marker"
|
802 |
msgstr ""
|
803 |
|
804 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1594
|
805 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4802
|
806 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4855
|
807 |
msgid "Animation"
|
808 |
msgstr ""
|
809 |
|
810 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1598
|
811 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4806
|
812 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4859
|
813 |
msgid "Bounce"
|
814 |
msgstr ""
|
815 |
|
816 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1599
|
817 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4807
|
818 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4860
|
819 |
msgid "Drop"
|
820 |
msgstr ""
|
821 |
|
822 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1603
|
823 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4813
|
824 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4866
|
825 |
msgid "InfoWindow open by default"
|
826 |
msgstr ""
|
827 |
|
828 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1613
|
829 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4823
|
830 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4897
|
831 |
msgid "Add Marker"
|
832 |
msgstr ""
|
833 |
|
834 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1613
|
835 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4823
|
836 |
msgid "Adding"
|
837 |
msgstr ""
|
838 |
|
839 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1614
|
840 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4824
|
841 |
msgid "Save Marker"
|
842 |
msgstr ""
|
843 |
|
844 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1614
|
845 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4824
|
846 |
msgid "Saving"
|
847 |
msgstr ""
|
848 |
|
849 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1617
|
850 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4827
|
851 |
msgid "Remember to save your marker"
|
852 |
msgstr ""
|
853 |
|
854 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1627
|
855 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5391
|
856 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5472
|
857 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro_polygons.php:25
|
858 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polygons.php:25
|
859 |
msgid "Add a Polygon"
|
860 |
msgstr ""
|
861 |
|
862 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1628
|
863 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4909
|
864 |
msgid "Add a New Polygon"
|
865 |
msgstr ""
|
866 |
|
867 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1632
|
868 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro_polylines.php:25
|
869 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polylines.php:25
|
870 |
msgid "Add a Polyline"
|
871 |
msgstr ""
|
872 |
|
873 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1633
|
874 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4914
|
875 |
msgid "Add a New Polyline"
|
876 |
msgstr ""
|
877 |
|
878 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1647
|
879 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4935
|
880 |
msgid "Remember to save your map!"
|
881 |
msgstr ""
|
882 |
|
883 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1655
|
884 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4949
|
885 |
msgid "Your Markers"
|
886 |
msgstr ""
|
887 |
|
888 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1665
|
889 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4971
|
890 |
msgid ""
|
891 |
"WP Google Maps encourages you to make use of the amazing icons created by "
|
892 |
"Nicolas Mollet's Maps Icons Collection"
|
893 |
msgstr ""
|
894 |
|
895 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1665
|
896 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4971
|
897 |
msgid "and to credit him when doing so."
|
898 |
msgstr ""
|
899 |
|
900 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1924
|
901 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1925
|
902 |
msgid "Use my location"
|
903 |
msgstr ""
|
904 |
|
905 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1945
|
906 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1952
|
907 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:1960
|
908 |
msgid "Filter by"
|
909 |
msgstr ""
|
910 |
|
911 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:2114
|
912 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wpgmza.php:278
|
913 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wpgmza.php:363
|
914 |
msgid "Get directions to"
|
915 |
msgstr ""
|
916 |
|
917 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:2145
|
918 |
msgid "Get Directions"
|
919 |
msgstr ""
|
920 |
|
921 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:2149
|
922 |
msgid "For"
|
923 |
msgstr ""
|
924 |
|
925 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:2151
|
926 |
msgid "Driving"
|
927 |
msgstr ""
|
928 |
|
929 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:2152
|
930 |
msgid "Walking"
|
931 |
msgstr ""
|
932 |
|
933 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:2153
|
934 |
msgid "Bicycling"
|
935 |
msgstr ""
|
936 |
|
937 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:2156
|
938 |
msgid "show options"
|
939 |
msgstr ""
|
940 |
|
941 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:2157
|
942 |
msgid "hide options"
|
943 |
msgstr ""
|
944 |
|
945 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:2159
|
946 |
msgid "Avoid Tolls"
|
947 |
msgstr ""
|
948 |
|
949 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:2160
|
950 |
msgid "Avoid Highways"
|
951 |
msgstr ""
|
952 |
|
953 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:2165
|
954 |
msgid "From"
|
955 |
msgstr ""
|
956 |
|
957 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:2166
|
958 |
msgid "To"
|
959 |
msgstr ""
|
960 |
|
961 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:2171
|
962 |
msgid "Go"
|
963 |
msgstr ""
|
964 |
|
965 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:2206
|
966 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:2232
|
967 |
msgid "Fetching directions..."
|
968 |
msgstr ""
|
969 |
|
970 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:2208
|
971 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:2234
|
972 |
msgid "Reset directions"
|
973 |
msgstr ""
|
974 |
|
975 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:2209
|
976 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:2235
|
977 |
msgid "Print directions"
|
978 |
msgstr ""
|
979 |
|
980 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:2249
|
981 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4926
|
982 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:5022
|
983 |
msgid "The map could not load."
|
984 |
msgstr ""
|
985 |
|
986 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:2249
|
987 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:5022
|
988 |
msgid ""
|
989 |
"This is normally caused by a conflict with another plugin or a JavaScript "
|
990 |
"error that is preventing our plugin's Javascript from executing. Please try "
|
992 |
"persists, please contact nick@wpgmaps.com for support."
|
993 |
msgstr ""
|
994 |
|
995 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:2308
|
996 |
msgid "Thank you. Your marker is awaiting approval."
|
997 |
msgstr ""
|
998 |
|
999 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:2796
|
1000 |
msgid "Get directions"
|
1001 |
msgstr ""
|
1002 |
|
1003 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:2797
|
1004 |
msgid "My location"
|
1005 |
msgstr ""
|
1006 |
|
1007 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:2798
|
1008 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:1843
|
1009 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:1984
|
1010 |
msgid "km away"
|
1011 |
msgstr ""
|
1012 |
|
1013 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:2799
|
1014 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:1841
|
1015 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:1982
|
1016 |
msgid "miles away"
|
1017 |
msgstr ""
|
1018 |
|
1019 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:2801
|
1020 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:2803
|
1021 |
msgid "Please fill out both the 'from' and 'to' fields"
|
1022 |
msgstr ""
|
1023 |
|
1024 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:2806
|
1025 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:2808
|
1026 |
msgid "Getting your current location address..."
|
1027 |
msgstr ""
|
1028 |
|
1029 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:2812
|
1030 |
msgid "Show _MENU_ entries"
|
1031 |
msgstr ""
|
1032 |
|
1033 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:2813
|
1034 |
msgid "Nothing found - sorry"
|
1035 |
msgstr ""
|
1036 |
|
1037 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:2814
|
1038 |
msgid "Showing _START_ to _END_ of _TOTAL_ records"
|
1039 |
msgstr ""
|
1040 |
|
1041 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:2815
|
1042 |
msgid "Showing 0 to 0 of 0 records"
|
1043 |
msgstr ""
|
1044 |
|
1045 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:2816
|
1046 |
msgid "(filtered from _MAX_ total records)"
|
1047 |
msgstr ""
|
1048 |
|
1049 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:2817
|
1050 |
msgid "First"
|
1051 |
msgstr ""
|
1052 |
|
1053 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:2818
|
1054 |
msgid "Last"
|
1055 |
msgstr ""
|
1056 |
|
1057 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:2819
|
1058 |
msgid "Next"
|
1059 |
msgstr ""
|
1060 |
|
1061 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:2820
|
1062 |
msgid "Previous"
|
1063 |
msgstr ""
|
1064 |
|
1065 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:2821
|
1066 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5772
|
1067 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:2753
|
1068 |
msgid "Search"
|
1069 |
msgstr ""
|
1070 |
|
1071 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:2826
|
1072 |
msgid "Please prove that you are human by checking the checkbox above"
|
1073 |
msgstr ""
|
1074 |
|
1075 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4020
|
1076 |
msgid "WP Google Maps"
|
1077 |
msgstr ""
|
1078 |
|
1079 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4020
|
1080 |
msgid ""
|
1081 |
"Please ensure you have <strong>both</strong> the <strong>Basic</strong> and "
|
1082 |
"<strong>Pro</strong> versions of WP Google Maps installed and activated at "
|
1083 |
"the same time in order for the plugin to function correctly."
|
1084 |
msgstr ""
|
1085 |
|
1086 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4034
|
1087 |
msgid "Header 1 should be 'id', not"
|
1088 |
msgstr ""
|
1089 |
|
1090 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4035
|
1091 |
msgid "Header 2 should be 'map_id', not"
|
1092 |
msgstr ""
|
1093 |
|
1094 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4036
|
1095 |
msgid "Header 3 should be 'address', not"
|
1096 |
msgstr ""
|
1097 |
|
1098 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4037
|
1099 |
msgid "Header 4 should be 'description', not"
|
1100 |
msgstr ""
|
1101 |
|
1102 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4038
|
1103 |
msgid "Header 5 should be 'pic', not"
|
1104 |
msgstr ""
|
1105 |
|
1106 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4039
|
1107 |
msgid "Header 6 should be 'link', not"
|
1108 |
msgstr ""
|
1109 |
|
1110 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4040
|
1111 |
msgid "Header 7 should be 'icon', not"
|
1112 |
msgstr ""
|
1113 |
|
1114 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4041
|
1115 |
msgid "Header 8 should be 'lat', not"
|
1116 |
msgstr ""
|
1117 |
|
1118 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4042
|
1119 |
msgid "Header 9 should be 'lng', not"
|
1120 |
msgstr ""
|
1121 |
|
1122 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4043
|
1123 |
msgid "Header 10 should be 'anim', not"
|
1124 |
msgstr ""
|
1125 |
|
1126 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4044
|
1127 |
msgid "Header 11 should be 'title', not"
|
1128 |
msgstr ""
|
1129 |
|
1130 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4045
|
1131 |
msgid "Header 12 should be 'infoopen', not"
|
1132 |
msgstr ""
|
1133 |
|
1134 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4046
|
1135 |
msgid "Header 13 should be 'category', not"
|
1136 |
msgstr ""
|
1137 |
|
1138 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4047
|
1139 |
msgid "Header 14 should be 'approved', not"
|
1140 |
msgstr ""
|
1141 |
|
1142 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4048
|
1143 |
msgid "Header 15 should be 'retina', not"
|
1144 |
msgstr ""
|
1145 |
|
1146 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4050
|
1147 |
msgid "CSV import failed"
|
1148 |
msgstr ""
|
1149 |
|
1150 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4140
|
1151 |
msgid "Your CSV file has been successfully imported"
|
1152 |
msgstr ""
|
1153 |
|
1154 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4163
|
1155 |
msgid "Download ALL marker data to a CSV file"
|
1156 |
msgstr ""
|
1157 |
|
1158 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4166
|
1159 |
msgid "Advanced Options"
|
1160 |
msgstr ""
|
1161 |
|
1162 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4169
|
1163 |
msgid "OR"
|
1164 |
msgstr ""
|
1165 |
|
1166 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4170
|
1167 |
msgid "Upload CSV File"
|
1168 |
msgstr ""
|
1169 |
|
1170 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4173
|
1171 |
msgid "Replace existing data with data in file"
|
1172 |
msgstr ""
|
1173 |
|
1174 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4174
|
1175 |
msgid ""
|
1176 |
"Automatically geocode addresses to GPS co-ordinates if none are supplied"
|
1177 |
msgstr ""
|
1178 |
|
1179 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4175
|
1180 |
msgid "Google API Key (Required)"
|
1181 |
msgstr ""
|
1182 |
|
1183 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4175
|
1184 |
msgid ""
|
1185 |
"You will need a Google Maps Geocode API key for this to work. See https://"
|
1186 |
"developers.google.com/maps/documentation/geocoding/#Limits"
|
1187 |
msgstr ""
|
1188 |
|
1189 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4175
|
1190 |
msgid "There is a 0.12second delay between each request"
|
1191 |
msgstr ""
|
1192 |
|
1193 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4176
|
1194 |
msgid "Upload File"
|
1195 |
msgstr ""
|
1196 |
|
1197 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4178
|
1198 |
msgid "Need help? Read the documentation."
|
1199 |
msgstr ""
|
1200 |
|
1201 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4190
|
1202 |
msgid "WP Google Maps Support"
|
1203 |
msgstr ""
|
1204 |
|
1205 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4193
|
1206 |
msgid "Documentation"
|
1207 |
msgstr ""
|
1208 |
|
1209 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4195
|
1210 |
msgid ""
|
1211 |
"Getting started? Read through some of these articles to help you along your "
|
1212 |
"way."
|
1213 |
msgstr ""
|
1214 |
|
1215 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4196
|
1216 |
msgid "Documentation:"
|
1217 |
msgstr ""
|
1218 |
|
1219 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4198
|
1220 |
msgid "Creating your first map"
|
1221 |
msgstr ""
|
1222 |
|
1223 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4199
|
1224 |
msgid "Using your map as a Widget"
|
1225 |
msgstr ""
|
1226 |
|
1227 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4200
|
1228 |
msgid "Exporting and Importing your map markers"
|
1229 |
msgstr ""
|
1230 |
|
1231 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4201
|
1232 |
msgid "Changing the Google Maps language"
|
1233 |
msgstr ""
|
1234 |
|
1235 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4202
|
1236 |
msgid "WP Google Maps Documentation"
|
1237 |
msgstr ""
|
1238 |
|
1239 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4202
|
1240 |
msgid "View all documentation."
|
1241 |
msgstr ""
|
1242 |
|
1243 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4206
|
1244 |
msgid "Troubleshooting"
|
1245 |
msgstr ""
|
1246 |
|
1247 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4208
|
1248 |
msgid ""
|
1249 |
"WP Google Maps Pro has a diverse and wide range of features which may, from "
|
1250 |
"time to time, run into conflicts with the thousands of themes and other "
|
1251 |
"plugins on the market."
|
1252 |
msgstr ""
|
1253 |
|
1254 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4209
|
1255 |
msgid "Common issues:"
|
1256 |
msgstr ""
|
1257 |
|
1258 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4211
|
1259 |
msgid "My map is not showing on my website"
|
1260 |
msgstr ""
|
1261 |
|
1262 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4212
|
1263 |
msgid "My markers are not showing on my map in the front-end"
|
1264 |
msgstr ""
|
1265 |
|
1266 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4213
|
1267 |
msgid "I'm getting jQuery errors showing on my website"
|
1268 |
msgstr ""
|
1269 |
|
1270 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4217
|
1271 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3513
|
1272 |
msgid "Support"
|
1273 |
msgstr ""
|
1274 |
|
1275 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4219
|
1276 |
msgid "Still need help? Use one of these links below."
|
1277 |
msgstr ""
|
1278 |
|
1279 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4221
|
1280 |
msgid "Support forum"
|
1281 |
msgstr ""
|
1282 |
|
1283 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4222
|
1284 |
msgid "Contact us"
|
1285 |
msgstr ""
|
1286 |
|
1287 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4225
|
1288 |
msgid ""
|
1289 |
"Dont have time to wait? Jump the queue with <a href='http://www.wpgmaps.com/"
|
1290 |
"priority-support/' title='Priority Support' target='_BLANK'>priority "
|
1292 |
"href='http://time.is/UTC+2' target='_BLANK'>UTC+2</a>)"
|
1293 |
msgstr ""
|
1294 |
|
1295 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4239
|
1296 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3672
|
1297 |
msgid "WP Google Map Settings"
|
1298 |
msgstr ""
|
1299 |
|
1300 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4263
|
1301 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3508
|
1302 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3786
|
1303 |
msgid "Maps"
|
1304 |
msgstr ""
|
1305 |
|
1306 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4264
|
1307 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3787
|
1308 |
msgid "InfoWindows"
|
1309 |
msgstr ""
|
1310 |
|
1311 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4265
|
1312 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3788
|
1313 |
msgid "Marker Listing"
|
1314 |
msgstr ""
|
1315 |
|
1316 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4266
|
1317 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3511
|
1318 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3789
|
1319 |
msgid "Advanced"
|
1320 |
msgstr ""
|
1321 |
|
1322 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4267
|
1323 |
msgid "Visitor Generated Markers"
|
1324 |
msgstr ""
|
1325 |
|
1326 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4268
|
1327 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3790
|
1328 |
msgid "Error Log"
|
1329 |
msgstr ""
|
1330 |
|
1331 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4286
|
1332 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3967
|
1333 |
msgid "WP Google Maps Error log"
|
1334 |
msgstr ""
|
1335 |
|
1336 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4287
|
1337 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3968
|
1338 |
msgid ""
|
1339 |
"Having issues? Perhaps something below can give you a clue as to what's "
|
1340 |
"wrong. Alternatively, email this through to nick@wpgmaps.com for help!"
|
1341 |
msgstr ""
|
1342 |
|
1343 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4300
|
1344 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3975
|
1345 |
msgid "Save Settings"
|
1346 |
msgstr ""
|
1347 |
|
1348 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4409
|
1349 |
msgid "Visitor Generated Markers Settings"
|
1350 |
msgstr ""
|
1351 |
|
1352 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4410
|
1353 |
msgid "Purchase the Visitor Generated Markers Add-on"
|
1354 |
msgstr ""
|
1355 |
|
1356 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4410
|
1357 |
msgid ""
|
1358 |
"to enable this feature. <br /><br />If you have already purchased it please "
|
1359 |
"ensure that you have uploaded activated the plugin."
|
1360 |
msgstr ""
|
1361 |
|
1362 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4485
|
1363 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3855
|
1364 |
msgid "Marker Listing Settings"
|
1365 |
msgstr ""
|
1366 |
|
1367 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4486
|
1368 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3856
|
1369 |
msgid ""
|
1370 |
"Changing these settings will alter the way the marker list appears on your "
|
1371 |
"website."
|
1372 |
msgstr ""
|
1373 |
|
1374 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4489
|
1375 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3866
|
1376 |
msgid "Advanced Marker Listing"
|
1377 |
msgstr ""
|
1378 |
|
1379 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4489
|
1380 |
+
msgid "Basic Marker Listings"
|
1381 |
+
msgstr ""
|
1382 |
+
|
1383 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4492
|
1384 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3869
|
1385 |
msgid "Column settings"
|
1386 |
msgstr ""
|
1387 |
|
1388 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4494
|
1389 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3871
|
1390 |
msgid "Hide the Icon column"
|
1391 |
msgstr ""
|
1392 |
|
1393 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4495
|
1394 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3872
|
1395 |
msgid "Hide the Title column"
|
1396 |
msgstr ""
|
1397 |
|
1398 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4496
|
1399 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3873
|
1400 |
msgid "Hide the Address column"
|
1401 |
msgstr ""
|
1402 |
|
1403 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4497
|
1404 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3874
|
1405 |
msgid "Hide the Category column"
|
1406 |
msgstr ""
|
1407 |
|
1408 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4498
|
1409 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3875
|
1410 |
msgid "Hide the Description column"
|
1411 |
msgstr ""
|
1412 |
|
1413 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4502
|
1414 |
msgid "Show X items by default"
|
1415 |
msgstr ""
|
1416 |
|
1417 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4517
|
1418 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3881
|
1419 |
msgid "Carousel Marker Listing"
|
1420 |
msgstr ""
|
1421 |
|
1422 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4520
|
1423 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3884
|
1424 |
msgid "Theme selection"
|
1425 |
msgstr ""
|
1426 |
|
1427 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4523
|
1428 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3887
|
1429 |
msgid "Sky"
|
1430 |
msgstr ""
|
1431 |
|
1432 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4524
|
1433 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3888
|
1434 |
msgid "Sun"
|
1435 |
msgstr ""
|
1436 |
|
1437 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4525
|
1438 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3889
|
1439 |
msgid "Earth"
|
1440 |
msgstr ""
|
1441 |
|
1442 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4526
|
1443 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3890
|
1444 |
msgid "Monotone"
|
1445 |
msgstr ""
|
1446 |
|
1447 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4527
|
1448 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3891
|
1449 |
msgid "PinkPurple"
|
1450 |
msgstr ""
|
1451 |
|
1452 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4528
|
1453 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3892
|
1454 |
msgid "White"
|
1455 |
msgstr ""
|
1456 |
|
1457 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4529
|
1458 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3893
|
1459 |
msgid "Black"
|
1460 |
msgstr ""
|
1461 |
|
1462 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4534
|
1463 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3898
|
1464 |
msgid "Carousel settings"
|
1465 |
msgstr ""
|
1466 |
|
1467 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4536
|
1468 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3900
|
1469 |
msgid "Hide the Image"
|
1470 |
msgstr ""
|
1471 |
|
1472 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4537
|
1473 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3901
|
1474 |
msgid "Hide the Title"
|
1475 |
msgstr ""
|
1476 |
|
1477 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4538
|
1478 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3902
|
1479 |
msgid "Hide the Marker Icon"
|
1480 |
msgstr ""
|
1481 |
|
1482 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4539
|
1483 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3903
|
1484 |
msgid "Hide the Address"
|
1485 |
msgstr ""
|
1486 |
|
1487 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4540
|
1488 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3904
|
1489 |
msgid "Hide the Description"
|
1490 |
msgstr ""
|
1491 |
|
1492 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4541
|
1493 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3905
|
1494 |
msgid "Hide the Marker Link"
|
1495 |
msgstr ""
|
1496 |
|
1497 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4542
|
1498 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3906
|
1499 |
msgid "Hide the Directions Link"
|
1500 |
msgstr ""
|
1501 |
|
1502 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4543
|
1503 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3907
|
1504 |
msgid "Resize Images with Timthumb"
|
1505 |
msgstr ""
|
1506 |
|
1507 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4544
|
1508 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3908
|
1509 |
msgid "Enable lazyload of images"
|
1510 |
msgstr ""
|
1511 |
|
1512 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4545
|
1513 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3909
|
1514 |
msgid "Enable autoheight"
|
1515 |
msgstr ""
|
1516 |
|
1517 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4546
|
1518 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3910
|
1519 |
msgid "Enable pagination"
|
1520 |
msgstr ""
|
1521 |
|
1522 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4547
|
1523 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3911
|
1524 |
msgid "Enable navigation"
|
1525 |
msgstr ""
|
1526 |
|
1527 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4548
|
1528 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3912
|
1529 |
msgid "Items"
|
1530 |
msgstr ""
|
1531 |
|
1532 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4549
|
1533 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3913
|
1534 |
msgid "Autoplay after x milliseconds (1000 = 1 second)"
|
1535 |
msgstr ""
|
1536 |
|
1537 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4564
|
1538 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4565
|
1539 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3936
|
1540 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3946
|
1541 |
msgid "You can use the following"
|
1542 |
msgstr ""
|
1543 |
|
1544 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4593
|
1545 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3764
|
1546 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:5833
|
1547 |
msgid "This folder does not exist. Please create it."
|
1548 |
msgstr ""
|
1549 |
|
1550 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4599
|
1551 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3767
|
1552 |
msgid "File Permissions:"
|
1553 |
msgstr ""
|
1554 |
|
1555 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4599
|
1556 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3767
|
1557 |
msgid ""
|
1558 |
" - The plugin does not have write access to this folder. Please CHMOD this "
|
1559 |
"folder to 755 or 777, or change the location"
|
1560 |
msgstr ""
|
1561 |
|
1562 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4612
|
1563 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3930
|
1564 |
msgid ""
|
1565 |
"We suggest that you change the two fields below ONLY if you are experiencing "
|
1566 |
"issues when trying to save the marker XML files."
|
1567 |
msgstr ""
|
1568 |
|
1569 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4615
|
1570 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3924
|
1571 |
msgid "Pull marker data from"
|
1572 |
msgstr ""
|
1573 |
|
1574 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4617
|
1575 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3926
|
1576 |
msgid "Database (Great for small amounts of markers)"
|
1577 |
msgstr ""
|
1578 |
|
1579 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4618
|
1580 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3927
|
1581 |
msgid "XML File (Great for large amounts of markers)"
|
1582 |
msgstr ""
|
1583 |
|
1584 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4622
|
1585 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3932
|
1586 |
msgid "Marker data XML directory"
|
1587 |
msgstr ""
|
1588 |
|
1589 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4628
|
1590 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4638
|
1591 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3937
|
1592 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3947
|
1593 |
msgid "Currently using"
|
1594 |
msgstr ""
|
1595 |
|
1596 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4632
|
1597 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3941
|
1598 |
msgid "Marker data XML URL"
|
1599 |
msgstr ""
|
1600 |
|
1601 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4642
|
1602 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4645
|
1603 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3951
|
1604 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3954
|
1605 |
msgid "Custom CSS"
|
1606 |
msgstr ""
|
1607 |
|
1608 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4725
|
1609 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3793
|
1610 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4291
|
1611 |
msgid "Map Settings"
|
1612 |
msgstr ""
|
1613 |
|
1614 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4732
|
1615 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3796
|
1616 |
msgid "General Map Settings"
|
1617 |
msgstr ""
|
1618 |
|
1619 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4734
|
1620 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3798
|
1621 |
msgid "Disable StreetView"
|
1622 |
msgstr ""
|
1623 |
|
1624 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4735
|
1625 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3799
|
1626 |
msgid "Disable Zoom Controls"
|
1627 |
msgstr ""
|
1628 |
|
1629 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4736
|
1630 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3800
|
1631 |
msgid "Disable Pan Controls"
|
1632 |
msgstr ""
|
1633 |
|
1634 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4737
|
1635 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3801
|
1636 |
msgid "Disable Map Type Controls"
|
1637 |
msgstr ""
|
1638 |
|
1639 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4738
|
1640 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3802
|
1641 |
msgid "Disable Mouse Wheel Zoom"
|
1642 |
msgstr ""
|
1643 |
|
1644 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4739
|
1645 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3803
|
1646 |
msgid "Disable Mouse Dragging"
|
1647 |
msgstr ""
|
1648 |
|
1649 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4740
|
1650 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3804
|
1651 |
msgid "Disable Mouse Double Click Zooming"
|
1652 |
msgstr ""
|
1653 |
|
1654 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4744
|
1655 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3846
|
1656 |
msgid "Open Marker InfoWindows by"
|
1657 |
msgstr ""
|
1658 |
|
1659 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4748
|
1660 |
msgid "Filter by category displayed as"
|
1661 |
msgstr ""
|
1662 |
|
1663 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4750
|
1664 |
msgid "Dropdown"
|
1665 |
msgstr ""
|
1666 |
|
1667 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4751
|
1668 |
msgid "Checkboxes"
|
1669 |
msgstr ""
|
1670 |
|
1671 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4757
|
1672 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3809
|
1673 |
msgid "Troubleshooting Options"
|
1674 |
msgstr ""
|
1675 |
|
1676 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4759
|
1677 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3811
|
1678 |
msgid ""
|
1679 |
"Over-ride current jQuery with version 1.8.3 (Tick this box if you are "
|
1680 |
"receiving jQuery related errors)"
|
1681 |
msgstr ""
|
1682 |
|
1683 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4763
|
1684 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3815
|
1685 |
msgid "Use Google Maps API"
|
1686 |
msgstr ""
|
1687 |
|
1688 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4774
|
1689 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3826
|
1690 |
msgid "Lowest level of access to the map editor"
|
1691 |
msgstr ""
|
1692 |
|
1693 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4786
|
1694 |
+
msgid "Retina Icon Width"
|
1695 |
msgstr ""
|
1696 |
|
1697 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4790
|
1698 |
+
msgid "Retina Icon Height"
|
1699 |
msgstr ""
|
1700 |
|
1701 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4834
|
1702 |
+
msgid "InfoWindow Settings"
|
1703 |
msgstr ""
|
1704 |
|
1705 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4837
|
1706 |
msgid "Image Thumbnails"
|
1707 |
msgstr ""
|
1708 |
|
1709 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4839
|
1710 |
msgid "Do not use TimThumb"
|
1711 |
msgstr ""
|
1712 |
|
1713 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4840
|
1714 |
+
msgid ""
|
1715 |
+
"(Timthumb support will be discontinued in the next pro version release. "
|
1716 |
+
"Please check this box and make the necessary changes to your images using "
|
1717 |
+
"the settings below.)"
|
1718 |
+
msgstr ""
|
1719 |
+
|
1720 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4844
|
1721 |
+
msgid "Resize Images"
|
1722 |
+
msgstr ""
|
1723 |
+
|
1724 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4846
|
1725 |
+
msgid "Resize all images to the below sizes"
|
1726 |
+
msgstr ""
|
1727 |
+
|
1728 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4850
|
1729 |
+
msgid "Default Image Width"
|
1730 |
+
msgstr ""
|
1731 |
+
|
1732 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4854
|
1733 |
+
msgid "Default Image Height"
|
1734 |
msgstr ""
|
1735 |
|
1736 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4858
|
1737 |
msgid "Max InfoWindow Width"
|
1738 |
msgstr ""
|
1739 |
|
1740 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4859
|
1741 |
+
msgid "(Minimum: 200px)"
|
1742 |
msgstr ""
|
1743 |
|
1744 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4862
|
1745 |
msgid "Other settings"
|
1746 |
msgstr ""
|
1747 |
|
1748 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4864
|
1749 |
msgid "Open links in a new window"
|
1750 |
msgstr ""
|
1751 |
|
1752 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4865
|
1753 |
msgid "(Tick this if you want to open your links in a new window)"
|
1754 |
msgstr ""
|
1755 |
|
1756 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4866
|
1757 |
msgid "Hide the address field"
|
1758 |
msgstr ""
|
1759 |
|
1760 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:4870
|
1761 |
msgid "Link text"
|
1762 |
msgstr ""
|
1763 |
|
1764 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5085
|
1765 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5366
|
1766 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:2878
|
1767 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3123
|
1768 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3303
|
1769 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3488
|
1770 |
msgid "Your settings have been saved."
|
1771 |
msgstr ""
|
1772 |
|
1773 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5114
|
1774 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:2902
|
1775 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3332
|
1776 |
msgid "Your marker location has been saved."
|
1777 |
msgstr ""
|
1778 |
|
1779 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5169
|
1780 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:2955
|
1781 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3363
|
1782 |
msgid "Your polygon has been created."
|
1783 |
msgstr ""
|
1784 |
|
1785 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5229
|
1786 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3011
|
1787 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3395
|
1788 |
msgid "Your polygon has been saved."
|
1789 |
msgstr ""
|
1790 |
|
1791 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5263
|
1792 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3054
|
1793 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3426
|
1794 |
msgid "Your polyline has been created."
|
1795 |
msgstr ""
|
1796 |
|
1797 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5298
|
1798 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3096
|
1799 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3458
|
1800 |
msgid "Your polyline has been saved."
|
1801 |
msgstr ""
|
1802 |
|
1803 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5397
|
1804 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5479
|
1805 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polygons.php:31
|
1806 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polygons.php:112
|
1807 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polygons.php:538
|
1811 |
msgid "Name"
|
1812 |
msgstr ""
|
1813 |
|
1814 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5403
|
1815 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5485
|
1816 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wpgmza.php:415
|
1817 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polygons.php:37
|
1818 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polygons.php:118
|
1819 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4104
|
1820 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:5262
|
1821 |
msgid "Link"
|
1822 |
msgstr ""
|
1823 |
|
1824 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5406
|
1825 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5488
|
1826 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro_polygons.php:28
|
1827 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polygons.php:40
|
1828 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polygons.php:121
|
1831 |
msgid "Line Color"
|
1832 |
msgstr ""
|
1833 |
|
1834 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5409
|
1835 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5491
|
1836 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polygons.php:43
|
1837 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polygons.php:124
|
1838 |
msgid "Line Opacity"
|
1839 |
msgstr ""
|
1840 |
|
1841 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5412
|
1842 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5494
|
1843 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro_polygons.php:29
|
1844 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polygons.php:46
|
1845 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polygons.php:127
|
1846 |
msgid "Fill Color"
|
1847 |
msgstr ""
|
1848 |
|
1849 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5415
|
1850 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5497
|
1851 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro_polygons.php:30
|
1852 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polygons.php:49
|
1853 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polygons.php:130
|
1856 |
msgid "Opacity"
|
1857 |
msgstr ""
|
1858 |
|
1859 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5418
|
1860 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5500
|
1861 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polygons.php:52
|
1862 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polygons.php:133
|
1863 |
msgid "On Hover Line Color"
|
1864 |
msgstr ""
|
1865 |
|
1866 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5421
|
1867 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5503
|
1868 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polygons.php:55
|
1869 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polygons.php:136
|
1870 |
msgid "On Hover Fill Color"
|
1871 |
msgstr ""
|
1872 |
|
1873 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5424
|
1874 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5506
|
1875 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polygons.php:58
|
1876 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polygons.php:139
|
1877 |
msgid "On Hover Opacity"
|
1878 |
msgstr ""
|
1879 |
|
1880 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5430
|
1881 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5512
|
1882 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polygons.php:64
|
1883 |
msgid "Click on the map to insert a vertex."
|
1884 |
msgstr ""
|
1885 |
|
1886 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5431
|
1887 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5513
|
1888 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polygons.php:65
|
1889 |
msgid "Click on a vertex to remove it."
|
1890 |
msgstr ""
|
1891 |
|
1892 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5432
|
1893 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5514
|
1894 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polygons.php:66
|
1895 |
msgid "Drag a vertex to move it."
|
1896 |
msgstr ""
|
1897 |
|
1898 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5440
|
1899 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5522
|
1900 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro_polygons.php:42
|
1901 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro_polygons.php:90
|
1902 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polygons.php:74
|
1904 |
msgid "Save Polygon"
|
1905 |
msgstr ""
|
1906 |
|
1907 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5730
|
1908 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:2711
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1909 |
msgid "Radius"
|
1910 |
msgstr ""
|
1911 |
|
1912 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5736
|
1913 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:2717
|
1914 |
msgid "1mi"
|
1915 |
msgstr ""
|
1916 |
|
1917 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5737
|
1918 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:2718
|
1919 |
msgid "5mi"
|
1920 |
msgstr ""
|
1921 |
|
1922 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5738
|
1923 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:2719
|
1924 |
msgid "10mi"
|
1925 |
msgstr ""
|
1926 |
|
1927 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5739
|
1928 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:2720
|
1929 |
msgid "25mi"
|
1930 |
msgstr ""
|
1931 |
|
1932 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5740
|
1933 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:2721
|
1934 |
msgid "50mi"
|
1935 |
msgstr ""
|
1936 |
|
1937 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5741
|
1938 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:2722
|
1939 |
msgid "75mi"
|
1940 |
msgstr ""
|
1941 |
|
1942 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5742
|
1943 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:2723
|
1944 |
msgid "100mi"
|
1945 |
msgstr ""
|
1946 |
|
1947 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5743
|
1948 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:2724
|
1949 |
msgid "150mi"
|
1950 |
msgstr ""
|
1951 |
|
1952 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5744
|
1953 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:2725
|
1954 |
msgid "200mi"
|
1955 |
msgstr ""
|
1956 |
|
1957 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5745
|
1958 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:2726
|
1959 |
msgid "300mi"
|
1960 |
msgstr ""
|
1961 |
|
1962 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5747
|
1963 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:2728
|
1964 |
msgid "1km"
|
1965 |
msgstr ""
|
1966 |
|
1967 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5748
|
1968 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:2729
|
1969 |
msgid "5km"
|
1970 |
msgstr ""
|
1971 |
|
1972 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5749
|
1973 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:2730
|
1974 |
msgid "10km"
|
1975 |
msgstr ""
|
1976 |
|
1977 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5750
|
1978 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:2731
|
1979 |
msgid "25km"
|
1980 |
msgstr ""
|
1981 |
|
1982 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5751
|
1983 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:2732
|
1984 |
msgid "50km"
|
1985 |
msgstr ""
|
1986 |
|
1987 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5752
|
1988 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:2733
|
1989 |
msgid "75km"
|
1990 |
msgstr ""
|
1991 |
|
1992 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5753
|
1993 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:2734
|
1994 |
msgid "100km"
|
1995 |
msgstr ""
|
1996 |
|
1997 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5754
|
1998 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:2735
|
1999 |
msgid "150km"
|
2000 |
msgstr ""
|
2001 |
|
2002 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5755
|
2003 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:2736
|
2004 |
msgid "200km"
|
2005 |
msgstr ""
|
2006 |
|
2007 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5756
|
2008 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:2737
|
2009 |
msgid "300km"
|
2010 |
msgstr ""
|
2011 |
|
2012 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5773
|
2013 |
msgid "Reset"
|
2014 |
msgstr ""
|
2015 |
|
2016 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5909
|
2017 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4042
|
2018 |
msgid "Type"
|
2019 |
msgstr ""
|
2020 |
|
2021 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5919
|
2022 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro_categories.php:479
|
2023 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4053
|
2024 |
msgid "Trash"
|
2025 |
msgstr ""
|
2026 |
|
2027 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5920
|
2028 |
msgid "Duplicate"
|
2029 |
msgstr ""
|
2030 |
|
2031 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro.php:5923
|
2032 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro_categories.php:483
|
2033 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro_polygons.php:488
|
2034 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro_polylines.php:516
|
2035 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polygons.php:565
|
2036 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polylines.php:582
|
2037 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4059
|
2038 |
msgid "Edit"
|
2039 |
msgstr ""
|
2040 |
|
2050 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro_categories.php:19
|
2051 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polygons.php:34
|
2052 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polygons.php:115
|
2053 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4006
|
2054 |
msgid "Pro Version"
|
2055 |
msgstr ""
|
2056 |
|
2059 |
msgstr ""
|
2060 |
|
2061 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro_categories.php:19
|
2062 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4006
|
2063 |
msgid "with the"
|
2064 |
msgstr ""
|
2065 |
|
2066 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro_categories.php:19
|
2067 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4006
|
2068 |
msgid "of WP Google Maps for only"
|
2069 |
msgstr ""
|
2070 |
|
2071 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro_categories.php:24
|
2072 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4012
|
2073 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4077
|
2074 |
msgid "Problems with the plugin? See the troubleshooting manual."
|
2075 |
msgstr ""
|
2076 |
|
2143 |
msgstr ""
|
2144 |
|
2145 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro_categories.php:472
|
2146 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wpgmza.php:409
|
2147 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4098
|
2148 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:5256
|
2149 |
msgid "Icon"
|
2150 |
msgstr ""
|
2151 |
|
2164 |
|
2165 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro_polygons.php:465
|
2166 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wp-google-maps-pro_polylines.php:493
|
2167 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wpgmza.php:416
|
2168 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polygons.php:539
|
2169 |
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/base/includes/wp-google-maps-polylines.php:556
|
2170 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:5263
|
2171 |
msgid "Action"
|
2172 |
msgstr ""
|
2173 |
|
2202 |
msgid "Delete this polyline"
|
2203 |
msgstr ""
|
2204 |
|
2205 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wpgmza.php:222
|
2206 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:5217
|
2207 |
+
msgid "View this link"
|
2208 |
+
msgstr ""
|
2209 |
+
|
2210 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wpgmza.php:235
|
2211 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wpgmza.php:236
|
2212 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:5231
|
2213 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:5232
|
2214 |
msgid "Edit this marker"
|
2215 |
msgstr ""
|
2216 |
|
2217 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wpgmza.php:238
|
2218 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:5234
|
2219 |
msgid "Approve this marker"
|
2220 |
msgstr ""
|
2221 |
|
2222 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wpgmza.php:240
|
2223 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:5236
|
2224 |
msgid "Delete this marker"
|
2225 |
msgstr ""
|
2226 |
|
2227 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps-pro/wpgmza.php:414
|
2228 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:5261
|
2229 |
msgid "Image"
|
2230 |
msgstr ""
|
2231 |
|
2357 |
msgid "Line Thickness"
|
2358 |
msgstr ""
|
2359 |
|
2360 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:206
|
2361 |
msgid "My first map"
|
2362 |
msgstr ""
|
2363 |
|
2364 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:429
|
2365 |
msgid ""
|
2366 |
"<strong>WP Google Maps cannot find the directory it uses to save marker data "
|
2367 |
"to. Please confirm that <em>"
|
2368 |
msgstr ""
|
2369 |
|
2370 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:429
|
2371 |
msgid ""
|
2372 |
"</em>exists. Please also ensure that you assign file permissions of 755 (or "
|
2373 |
"777) to this directory."
|
2374 |
msgstr ""
|
2375 |
|
2376 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:435
|
2377 |
msgid ""
|
2378 |
"Timthumb does not have 'write' permission for the cache directory. Please "
|
2379 |
"enable 'write' permissions (755 or 777) for "
|
2380 |
msgstr ""
|
2381 |
|
2382 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:437
|
2383 |
msgid "in order for images to show up while using Timthumb. Please see "
|
2384 |
msgstr ""
|
2385 |
|
2386 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:439
|
2387 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:5415
|
2388 |
msgid "this page"
|
2389 |
msgstr ""
|
2390 |
|
2391 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:441
|
2392 |
msgid ""
|
2393 |
"for help on how to do it. Alternatively, you can disable the use of Timthumb "
|
2394 |
"in Maps->Settings"
|
2395 |
msgstr ""
|
2396 |
|
2397 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:2118
|
2398 |
msgid "DOMDocument is not enabled"
|
2399 |
msgstr ""
|
2400 |
|
2401 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:2230
|
2402 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:2240
|
2403 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:2245
|
2404 |
msgid "Could not save XML file"
|
2405 |
msgstr ""
|
2406 |
|
2407 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:2609
|
2408 |
msgid "Error: The map ID"
|
2409 |
msgstr ""
|
2410 |
|
2411 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:2609
|
2412 |
msgid "does not exist"
|
2413 |
msgstr ""
|
2414 |
|
2415 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:2913
|
2416 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:2968
|
2417 |
msgid "You cannot save a blank polygon"
|
2418 |
msgstr ""
|
2419 |
|
2420 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3023
|
2421 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3067
|
2422 |
msgid "You cannot save a blank polyline"
|
2423 |
msgstr ""
|
2424 |
|
2425 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3156
|
2426 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3160
|
2427 |
msgid "Thank you for your feedback!"
|
2428 |
msgstr ""
|
2429 |
|
2430 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3510
|
2431 |
msgid "Categories"
|
2432 |
msgstr ""
|
2433 |
|
2434 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3512
|
2435 |
msgid "Settings"
|
2436 |
msgstr ""
|
2437 |
|
2438 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3532
|
2439 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3633
|
2440 |
msgid "Experiencing problems with the plugin?"
|
2441 |
msgstr ""
|
2442 |
|
2443 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3532
|
2444 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3633
|
2445 |
msgid "See the troubleshooting manual."
|
2446 |
msgstr ""
|
2447 |
|
2448 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3532
|
2449 |
msgid "Or ask a question on our "
|
2450 |
msgstr ""
|
2451 |
|
2452 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3532
|
2453 |
msgid "Support forum."
|
2454 |
msgstr ""
|
2455 |
|
2456 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3540
|
2457 |
msgid "There was a problem deleting the map."
|
2458 |
msgstr ""
|
2459 |
|
2460 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3544
|
2461 |
msgid "Delete your map"
|
2462 |
msgstr ""
|
2463 |
|
2464 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3544
|
2465 |
msgid "Are you sure you want to delete the map"
|
2466 |
msgstr ""
|
2467 |
|
2468 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3553
|
2469 |
msgid "There was a problem duplicating the map."
|
2470 |
msgstr ""
|
2471 |
|
2472 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3643
|
2473 |
msgid "There was a problem deleting the marker."
|
2474 |
msgstr ""
|
2475 |
|
2476 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3647
|
2477 |
msgid "Delete Marker"
|
2478 |
msgstr ""
|
2479 |
|
2480 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3647
|
2481 |
msgid "Are you sure you want to delete this marker:"
|
2482 |
msgstr ""
|
2483 |
|
2484 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3843
|
2485 |
msgid "Marker InfoWindow Settings"
|
2486 |
msgstr ""
|
2487 |
|
2488 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:3921
|
2489 |
msgid "Marker Data Location"
|
2490 |
msgstr ""
|
2491 |
|
2492 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4000
|
2493 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4005
|
2494 |
msgid "My Maps"
|
2495 |
msgstr ""
|
2496 |
|
2497 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4000
|
2498 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4074
|
2499 |
msgid "Add New"
|
2500 |
msgstr ""
|
2501 |
|
2502 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4006
|
2503 |
msgid "Create unlimited maps"
|
2504 |
msgstr ""
|
2505 |
|
2506 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4074
|
2507 |
msgid "My Markers"
|
2508 |
msgstr ""
|
2509 |
|
2510 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4099
|
2511 |
msgid "Linked to"
|
2512 |
msgstr ""
|
2513 |
|
2514 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4102
|
2515 |
msgid "GPS"
|
2516 |
msgstr ""
|
2517 |
|
2518 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4103
|
2519 |
msgid "Pic"
|
2520 |
msgstr ""
|
2521 |
|
2522 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4254
|
2523 |
msgid ""
|
2524 |
"Add custom icons, titles, descriptions, pictures and links to your markers "
|
2525 |
"with the"
|
2526 |
msgstr ""
|
2527 |
|
2528 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4254
|
2529 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4255
|
2530 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4961
|
2531 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4965
|
2532 |
msgid "Pro Edition"
|
2533 |
msgstr ""
|
2534 |
|
2535 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4254
|
2536 |
msgid "of this plugin for just"
|
2537 |
msgstr ""
|
2538 |
|
2539 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4255
|
2540 |
msgid "Purchase the Pro Edition"
|
2541 |
msgstr ""
|
2542 |
|
2543 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4255
|
2544 |
msgid "of WP Google Maps and save your markers to a CSV file!"
|
2545 |
msgstr ""
|
2546 |
|
2547 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4273
|
2548 |
msgid "Please note"
|
2549 |
msgstr ""
|
2550 |
|
2551 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4273
|
2552 |
msgid ""
|
2553 |
"We've noticed that you are using W3 Total Cache and that you have CDN "
|
2554 |
"enabled.<br /><br />In order for the markers to show up on your map, you "
|
2557 |
"page=w3tc_cdn#advanced'>CDN settings page</a> of W3 Total Cache"
|
2558 |
msgstr ""
|
2559 |
|
2560 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4301
|
2561 |
msgid "Pro Upgrade"
|
2562 |
msgstr ""
|
2563 |
|
2564 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4459
|
2565 |
msgid "Query string"
|
2566 |
msgstr ""
|
2567 |
|
2568 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4481
|
2569 |
msgid "Enable Bicycle Layer?"
|
2570 |
msgstr ""
|
2571 |
|
2572 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4489
|
2573 |
msgid "Enable Traffic Layer?"
|
2574 |
msgstr ""
|
2575 |
|
2576 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4496
|
2577 |
msgid "Enable Weather Layer?"
|
2578 |
msgstr ""
|
2579 |
|
2580 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4509
|
2581 |
msgid "Enable Cloud Layer?"
|
2582 |
msgstr ""
|
2583 |
|
2584 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4517
|
2585 |
msgid "Enable Public Transport Layer?"
|
2586 |
msgstr ""
|
2587 |
|
2588 |
+
#: C:\wamp\www\wordpress38\wp-content\plugins\wp-google-maps/wpGoogleMaps.php:4559
|
2589 |
msgid ""
|
2590 |
"Get the rest of these advanced features with the Pro version for only <a "
|
2591 |
"href=\"http://www.wpgmaps.com/purchase-professional-version/?"
|
2593 |
"a>. Support and updates included forever."
|
2594 |
msgstr ""
|
2595 |
|
|