jquery-datatables-rails 0.1.0 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. data/.gitignore +1 -0
  2. data/lib/jquery/datatables/rails/version.rb +1 -1
  3. data/vendor/assets/images/dataTables/back_disabled.png +0 -0
  4. data/vendor/assets/images/dataTables/back_enabled.png +0 -0
  5. data/vendor/assets/images/dataTables/back_enabled_hover.png +0 -0
  6. data/vendor/assets/images/dataTables/favicon.ico +0 -0
  7. data/vendor/assets/images/dataTables/forward_disabled.png +0 -0
  8. data/vendor/assets/images/dataTables/forward_enabled.png +0 -0
  9. data/vendor/assets/images/dataTables/forward_enabled_hover.png +0 -0
  10. data/vendor/assets/images/dataTables/sort_asc.png +0 -0
  11. data/vendor/assets/images/dataTables/sort_asc_disabled.png +0 -0
  12. data/vendor/assets/images/dataTables/sort_both.png +0 -0
  13. data/vendor/assets/images/dataTables/sort_desc.png +0 -0
  14. data/vendor/assets/images/dataTables/sort_desc_disabled.png +0 -0
  15. data/vendor/assets/javascripts/jquery.dataTables.editable.js +1017 -0
  16. data/vendor/assets/javascripts/jquery.dataTables.fnReloadAjax.js +4 -3
  17. data/vendor/assets/javascripts/jquery.dataTables.js +9882 -5617
  18. data/vendor/assets/javascripts/jquery.dataTables.min.js +141 -139
  19. data/vendor/assets/javascripts/jquery.jeditable.js +507 -0
  20. data/vendor/assets/javascripts/jquery.validate.js +1150 -0
  21. data/vendor/assets/stylesheets/dataTables/demo_page.css +107 -0
  22. data/vendor/assets/stylesheets/dataTables/demo_table.css +59 -22
  23. data/vendor/assets/stylesheets/dataTables/demo_table_jui.css +17 -16
  24. data/vendor/assets/stylesheets/dataTables/jquery.dataTables.css +219 -0
  25. data/vendor/assets/stylesheets/dataTables/jquery.dataTables_themeroller.css +243 -0
  26. metadata +18 -10
  27. data/vendor/assets/images/dataTables/back_disabled.jpg +0 -0
  28. data/vendor/assets/images/dataTables/back_enabled.jpg +0 -0
  29. data/vendor/assets/images/dataTables/forward_disabled.jpg +0 -0
  30. data/vendor/assets/images/dataTables/forward_enabled.jpg +0 -0
  31. data/vendor/assets/javascripts/jquery.dataTables.min.js.gz +0 -0
@@ -0,0 +1,107 @@
1
+
2
+ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
3
+ * General page setup
4
+ */
5
+ #dt_example {
6
+ font: 80%/1.45em "Lucida Grande", Verdana, Arial, Helvetica, sans-serif;
7
+ margin: 0;
8
+ padding: 0;
9
+ color: #333;
10
+ background-color: #fff;
11
+ }
12
+
13
+
14
+ #dt_example #container {
15
+ width: 800px;
16
+ margin: 30px auto;
17
+ padding: 0;
18
+ }
19
+
20
+
21
+ #dt_example #footer {
22
+ margin: 50px auto 0 auto;
23
+ padding: 0;
24
+ }
25
+
26
+ #dt_example #demo {
27
+ margin: 30px auto 0 auto;
28
+ }
29
+
30
+ #dt_example .demo_jui {
31
+ margin: 30px auto 0 auto;
32
+ }
33
+
34
+ #dt_example .big {
35
+ font-size: 1.3em;
36
+ font-weight: bold;
37
+ line-height: 1.6em;
38
+ color: #4E6CA3;
39
+ }
40
+
41
+ #dt_example .spacer {
42
+ height: 20px;
43
+ clear: both;
44
+ }
45
+
46
+ #dt_example .clear {
47
+ clear: both;
48
+ }
49
+
50
+ #dt_example pre {
51
+ padding: 15px;
52
+ background-color: #F5F5F5;
53
+ border: 1px solid #CCCCCC;
54
+ }
55
+
56
+ #dt_example h1 {
57
+ margin-top: 2em;
58
+ font-size: 1.3em;
59
+ font-weight: normal;
60
+ line-height: 1.6em;
61
+ color: #4E6CA3;
62
+ border-bottom: 1px solid #B0BED9;
63
+ clear: both;
64
+ }
65
+
66
+ #dt_example h2 {
67
+ font-size: 1.2em;
68
+ font-weight: normal;
69
+ line-height: 1.6em;
70
+ color: #4E6CA3;
71
+ clear: both;
72
+ }
73
+
74
+ #dt_example a {
75
+ color: #0063DC;
76
+ text-decoration: none;
77
+ }
78
+
79
+ #dt_example a:hover {
80
+ text-decoration: underline;
81
+ }
82
+
83
+ #dt_example ul {
84
+ color: #4E6CA3;
85
+ }
86
+
87
+ .css_right {
88
+ float: right;
89
+ }
90
+
91
+ .css_left {
92
+ float: left;
93
+ }
94
+
95
+ .demo_links {
96
+ float: left;
97
+ width: 50%;
98
+ margin-bottom: 1em;
99
+ }
100
+
101
+ #demo_info {
102
+ padding: 5px;
103
+ border: 1px solid #B0BED9;
104
+ height: 100px;
105
+ width: 100%;
106
+ overflow: auto;
107
+ }
@@ -32,9 +32,7 @@
32
32
 
33
33
  .dataTables_wrapper {
34
34
  position: relative;
35
- min-height: 302px;
36
35
  clear: both;
37
- _height: 302px;
38
36
  zoom: 1; /* Feeling sorry for IE */
39
37
  }
40
38
 
@@ -71,34 +69,60 @@
71
69
  }
72
70
 
73
71
  .dataTables_paginate {
74
- width: 44px;
75
- * width: 50px;
76
72
  float: right;
77
73
  text-align: right;
78
74
  }
79
75
 
80
76
  /* Pagination nested */
81
- .paginate_disabled_previous, .paginate_enabled_previous, .paginate_disabled_next, .paginate_enabled_next {
77
+ .paginate_disabled_previous, .paginate_enabled_previous,
78
+ .paginate_disabled_next, .paginate_enabled_next {
82
79
  height: 19px;
83
- width: 19px;
84
- margin-left: 3px;
85
80
  float: left;
81
+ cursor: pointer;
82
+ *cursor: hand;
83
+ color: #111 !important;
84
+ }
85
+ .paginate_disabled_previous:hover, .paginate_enabled_previous:hover,
86
+ .paginate_disabled_next:hover, .paginate_enabled_next:hover {
87
+ text-decoration: none !important;
88
+ }
89
+ .paginate_disabled_previous:active, .paginate_enabled_previous:active,
90
+ .paginate_disabled_next:active, .paginate_enabled_next:active {
91
+ outline: none;
92
+ }
93
+
94
+ .paginate_disabled_previous,
95
+ .paginate_disabled_next {
96
+ color: #666 !important;
97
+ }
98
+ .paginate_disabled_previous, .paginate_enabled_previous {
99
+ padding-left: 23px;
100
+ }
101
+ .paginate_disabled_next, .paginate_enabled_next {
102
+ padding-right: 23px;
103
+ margin-left: 10px;
86
104
  }
87
105
 
88
106
  .paginate_disabled_previous {
89
- background-image: url('back_disabled.jpg');
107
+ background: url('../images/back_disabled.png') no-repeat top left;
90
108
  }
91
109
 
92
110
  .paginate_enabled_previous {
93
- background-image: url('back_enabled.jpg');
111
+ background: url('../images/back_enabled.png') no-repeat top left;
112
+ }
113
+ .paginate_enabled_previous:hover {
114
+ background: url('../images/back_enabled_hover.png') no-repeat top left;
94
115
  }
95
116
 
96
117
  .paginate_disabled_next {
97
- background-image: url('forward_disabled.jpg');
118
+ background: url('../images/forward_disabled.png') no-repeat top right;
98
119
  }
99
120
 
100
121
  .paginate_enabled_next {
101
- background-image: url('forward_enabled.jpg');
122
+ background: url('../images/forward_enabled.png') no-repeat top right;
123
+ }
124
+ .paginate_enabled_next:hover {
125
+ background: url('../images/forward_enabled_hover.png') no-repeat top right;
102
126
  }
103
127
 
104
128
 
@@ -158,25 +182,28 @@ table.display td.center {
158
182
  */
159
183
 
160
184
  .sorting_asc {
161
- background: url('sort_asc.png') no-repeat center right;
185
+ background: url('../images/sort_asc.png') no-repeat center right;
162
186
  }
163
187
 
164
188
  .sorting_desc {
165
- background: url('sort_desc.png') no-repeat center right;
189
+ background: url('../images/sort_desc.png') no-repeat center right;
166
190
  }
167
191
 
168
192
  .sorting {
169
- background: url('sort_both.png') no-repeat center right;
193
+ background: url('../images/sort_both.png') no-repeat center right;
170
194
  }
171
195
 
172
196
  .sorting_asc_disabled {
173
- background: url('sort_asc_disabled.png') no-repeat center right;
197
+ background: url('../images/sort_asc_disabled.png') no-repeat center right;
174
198
  }
175
199
 
176
200
  .sorting_desc_disabled {
177
- background: url('sort_desc_disabled.png') no-repeat center right;
201
+ background: url('../images/sort_desc_disabled.png') no-repeat center right;
202
+ }
203
+
204
+ th:active {
205
+ outline: none;
178
206
  }
179
-
180
207
 
181
208
 
182
209
 
@@ -290,8 +317,16 @@ td.details {
290
317
  line-height: 22px;
291
318
  }
292
319
 
293
- .paging_full_numbers span.paginate_button,
294
- .paging_full_numbers span.paginate_active {
320
+ .paging_full_numbers a:active {
321
+ outline: none
322
+ }
323
+
324
+ .paging_full_numbers a:hover {
325
+ text-decoration: none;
326
+ }
327
+
328
+ .paging_full_numbers a.paginate_button,
329
+ .paging_full_numbers a.paginate_active {
295
330
  border: 1px solid #aaa;
296
331
  -webkit-border-radius: 5px;
297
332
  -moz-border-radius: 5px;
@@ -299,17 +334,19 @@ td.details {
299
334
  margin: 0 3px;
300
335
  cursor: pointer;
301
336
  *cursor: hand;
337
+ color: #333 !important;
302
338
  }
303
339
 
304
- .paging_full_numbers span.paginate_button {
340
+ .paging_full_numbers a.paginate_button {
305
341
  background-color: #ddd;
306
342
  }
307
343
 
308
- .paging_full_numbers span.paginate_button:hover {
344
+ .paging_full_numbers a.paginate_button:hover {
309
345
  background-color: #ccc;
346
+ text-decoration: none !important;
310
347
  }
311
348
 
312
- .paging_full_numbers span.paginate_active {
349
+ .paging_full_numbers a.paginate_active {
313
350
  background-color: #99B3FF;
314
351
  }
315
352
 
@@ -42,6 +42,7 @@
42
42
  margin: 0;
43
43
  cursor: pointer;
44
44
  * cursor: hand;
45
+ color: #333 !important;
45
46
  }
46
47
 
47
48
  .dataTables_paginate .ui-button {
@@ -109,8 +110,6 @@ table.display thead th div.DataTables_sort_wrapper span {
109
110
 
110
111
  .dataTables_wrapper {
111
112
  position: relative;
112
- min-height: 302px;
113
- _height: 302px;
114
113
  clear: both;
115
114
  }
116
115
 
@@ -157,19 +156,19 @@ table.display thead th div.DataTables_sort_wrapper span {
157
156
  }
158
157
 
159
158
  .paginate_disabled_previous {
160
- background-image: url('back_disabled.jpg');
159
+ background-image: url('../images/back_disabled.jpg');
161
160
  }
162
161
 
163
162
  .paginate_enabled_previous {
164
- background-image: url('back_enabled.jpg');
163
+ background-image: url('../images/back_enabled.jpg');
165
164
  }
166
165
 
167
166
  .paginate_disabled_next {
168
- background-image: url('forward_disabled.jpg');
167
+ background-image: url('../images/forward_disabled.jpg');
169
168
  }
170
169
 
171
170
  .paginate_enabled_next {
172
- background-image: url('forward_enabled.jpg');
171
+ background-image: url('../images/forward_enabled.jpg');
173
172
  }
174
173
 
175
174
 
@@ -209,23 +208,23 @@ table.display td.center {
209
208
  */
210
209
 
211
210
  .sorting_asc {
212
- background: url('sort_asc.png') no-repeat center right;
211
+ background: url('../images/sort_asc.png') no-repeat center right;
213
212
  }
214
213
 
215
214
  .sorting_desc {
216
- background: url('sort_desc.png') no-repeat center right;
215
+ background: url('../images/sort_desc.png') no-repeat center right;
217
216
  }
218
217
 
219
218
  .sorting {
220
- background: url('sort_both.png') no-repeat center right;
219
+ background: url('../images/sort_both.png') no-repeat center right;
221
220
  }
222
221
 
223
222
  .sorting_asc_disabled {
224
- background: url('sort_asc_disabled.png') no-repeat center right;
223
+ background: url('../images/sort_asc_disabled.png') no-repeat center right;
225
224
  }
226
225
 
227
226
  .sorting_desc_disabled {
228
- background: url('sort_desc_disabled.png') no-repeat center right;
227
+ background: url('../images/sort_desc_disabled.png') no-repeat center right;
229
228
  }
230
229
 
231
230
 
@@ -341,8 +340,8 @@ td.details {
341
340
  width: 40%;
342
341
  }
343
342
 
344
- .paging_full_numbers span.paginate_button,
345
- .paging_full_numbers span.paginate_active {
343
+ .paging_full_numbers a.paginate_button,
344
+ .paging_full_numbers a.paginate_active {
346
345
  border: 1px solid #aaa;
347
346
  -webkit-border-radius: 5px;
348
347
  -moz-border-radius: 5px;
@@ -350,17 +349,19 @@ td.details {
350
349
  margin: 0 3px;
351
350
  cursor: pointer;
352
351
  *cursor: hand;
352
+ color: #333 !important;
353
353
  }
354
354
 
355
- .paging_full_numbers span.paginate_button {
355
+ .paging_full_numbers a.paginate_button {
356
356
  background-color: #ddd;
357
357
  }
358
358
 
359
- .paging_full_numbers span.paginate_button:hover {
359
+ .paging_full_numbers a.paginate_button:hover {
360
360
  background-color: #ccc;
361
+ text-decoration: none !important;
361
362
  }
362
363
 
363
- .paging_full_numbers span.paginate_active {
364
+ .paging_full_numbers a.paginate_active {
364
365
  background-color: #99B3FF;
365
366
  }
366
367
 
@@ -0,0 +1,219 @@
1
+
2
+ /*
3
+ * Table
4
+ */
5
+ table.dataTable {
6
+ margin: 0 auto;
7
+ clear: both;
8
+ width: 100%;
9
+ }
10
+
11
+ table.dataTable thead th {
12
+ padding: 3px 18px 3px 10px;
13
+ border-bottom: 1px solid black;
14
+ font-weight: bold;
15
+ cursor: pointer;
16
+ *cursor: hand;
17
+ }
18
+
19
+ table.dataTable tfoot th {
20
+ padding: 3px 18px 3px 10px;
21
+ border-top: 1px solid black;
22
+ font-weight: bold;
23
+ }
24
+
25
+ table.dataTable td {
26
+ padding: 3px 10px;
27
+ }
28
+
29
+ table.dataTable td.center,
30
+ table.dataTable td.dataTables_empty {
31
+ text-align: center;
32
+ }
33
+
34
+ table.dataTable tr.odd { background-color: #E2E4FF; }
35
+ table.dataTable tr.even { background-color: white; }
36
+
37
+ table.dataTable tr.odd td.sorting_1 { background-color: #D3D6FF; }
38
+ table.dataTable tr.odd td.sorting_2 { background-color: #DADCFF; }
39
+ table.dataTable tr.odd td.sorting_3 { background-color: #E0E2FF; }
40
+ table.dataTable tr.even td.sorting_1 { background-color: #EAEBFF; }
41
+ table.dataTable tr.even td.sorting_2 { background-color: #F2F3FF; }
42
+ table.dataTable tr.even td.sorting_3 { background-color: #F9F9FF; }
43
+
44
+
45
+ /*
46
+ * Table wrapper
47
+ */
48
+ .dataTables_wrapper {
49
+ position: relative;
50
+ clear: both;
51
+ *zoom: 1;
52
+ }
53
+
54
+
55
+ /*
56
+ * Page length menu
57
+ */
58
+ .dataTables_length {
59
+ float: left;
60
+ }
61
+
62
+
63
+ /*
64
+ * Filter
65
+ */
66
+ .dataTables_filter {
67
+ float: right;
68
+ text-align: right;
69
+ }
70
+
71
+
72
+ /*
73
+ * Table information
74
+ */
75
+ .dataTables_info {
76
+ clear: both;
77
+ float: left;
78
+ }
79
+
80
+
81
+ /*
82
+ * Pagination
83
+ */
84
+ .dataTables_paginate {
85
+ float: right;
86
+ text-align: right;
87
+ }
88
+
89
+ /* Two button pagination - previous / next */
90
+ .paginate_disabled_previous,
91
+ .paginate_enabled_previous,
92
+ .paginate_disabled_next,
93
+ .paginate_enabled_next {
94
+ height: 19px;
95
+ float: left;
96
+ cursor: pointer;
97
+ *cursor: hand;
98
+ color: #111 !important;
99
+ }
100
+ .paginate_disabled_previous:hover,
101
+ .paginate_enabled_previous:hover,
102
+ .paginate_disabled_next:hover,
103
+ .paginate_enabled_next:hover {
104
+ text-decoration: none !important;
105
+ }
106
+ .paginate_disabled_previous:active,
107
+ .paginate_enabled_previous:active,
108
+ .paginate_disabled_next:active,
109
+ .paginate_enabled_next:active {
110
+ outline: none;
111
+ }
112
+
113
+ .paginate_disabled_previous,
114
+ .paginate_disabled_next {
115
+ color: #666 !important;
116
+ }
117
+ .paginate_disabled_previous,
118
+ .paginate_enabled_previous {
119
+ padding-left: 23px;
120
+ }
121
+ .paginate_disabled_next,
122
+ .paginate_enabled_next {
123
+ padding-right: 23px;
124
+ margin-left: 10px;
125
+ }
126
+
127
+ .paginate_enabled_previous { background: url('../images/back_enabled.png') no-repeat top left; }
128
+ .paginate_enabled_previous:hover { background: url('../images/back_enabled_hover.png') no-repeat top left; }
129
+ .paginate_disabled_previous { background: url('../images/back_disabled.png') no-repeat top left; }
130
+
131
+ .paginate_enabled_next { background: url('../images/forward_enabled.png') no-repeat top right; }
132
+ .paginate_enabled_next:hover { background: url('../images/forward_enabled_hover.png') no-repeat top right; }
133
+ .paginate_disabled_next { background: url('../images/forward_disabled.png') no-repeat top right; }
134
+
135
+ /* Full number pagination */
136
+ .paging_full_numbers {
137
+ height: 22px;
138
+ line-height: 22px;
139
+ }
140
+ .paging_full_numbers a:active {
141
+ outline: none
142
+ }
143
+ .paging_full_numbers a:hover {
144
+ text-decoration: none;
145
+ }
146
+
147
+ .paging_full_numbers a.paginate_button,
148
+ .paging_full_numbers a.paginate_active {
149
+ border: 1px solid #aaa;
150
+ -webkit-border-radius: 5px;
151
+ -moz-border-radius: 5px;
152
+ border-radius: 5px;
153
+ padding: 2px 5px;
154
+ margin: 0 3px;
155
+ cursor: pointer;
156
+ *cursor: hand;
157
+ color: #333 !important;
158
+ }
159
+
160
+ .paging_full_numbers a.paginate_button {
161
+ background-color: #ddd;
162
+ }
163
+
164
+ .paging_full_numbers a.paginate_button:hover {
165
+ background-color: #ccc;
166
+ text-decoration: none !important;
167
+ }
168
+
169
+ .paging_full_numbers a.paginate_active {
170
+ background-color: #99B3FF;
171
+ }
172
+
173
+
174
+ /*
175
+ * Processing indicator
176
+ */
177
+ .dataTables_processing {
178
+ position: absolute;
179
+ top: 50%;
180
+ left: 50%;
181
+ width: 250px;
182
+ height: 30px;
183
+ margin-left: -125px;
184
+ margin-top: -15px;
185
+ padding: 14px 0 2px 0;
186
+ border: 1px solid #ddd;
187
+ text-align: center;
188
+ color: #999;
189
+ font-size: 14px;
190
+ background-color: white;
191
+ }
192
+
193
+
194
+ /*
195
+ * Sorting
196
+ */
197
+ .sorting { background: url('../images/sort_both.png') no-repeat center right; }
198
+ .sorting_asc { background: url('../images/sort_asc.png') no-repeat center right; }
199
+ .sorting_desc { background: url('../images/sort_desc.png') no-repeat center right; }
200
+
201
+ .sorting_asc_disabled { background: url('../images/sort_asc_disabled.png') no-repeat center right; }
202
+ .sorting_desc_disabled { background: url('../images/sort_desc_disabled.png') no-repeat center right; }
203
+
204
+ table.dataTable th:active {
205
+ outline: none;
206
+ }
207
+
208
+
209
+ /*
210
+ * Scrolling
211
+ */
212
+ .dataTables_scroll {
213
+ clear: both;
214
+ }
215
+
216
+ .dataTables_scrollBody {
217
+ *margin-top: -1px;
218
+ }
219
+