Lines 159-164
$(document).ready(function() {
Link Here
|
159 |
"sDom": "<'row-fluid'<'span6'><'span6'>r>t<'row-fluid'>t", |
159 |
"sDom": "<'row-fluid'<'span6'><'span6'>r>t<'row-fluid'>t", |
160 |
"aoColumns": [ |
160 |
"aoColumns": [ |
161 |
{ |
161 |
{ |
|
|
162 |
"bVisible": false, |
162 |
"mDataProp": function( oObj ) { |
163 |
"mDataProp": function( oObj ) { |
163 |
if ( oObj.issued_today ) { |
164 |
if ( oObj.issued_today ) { |
164 |
return "1" + oObj.timestamp; |
165 |
return "1" + oObj.timestamp; |
Lines 168-173
$(document).ready(function() {
Link Here
|
168 |
} |
169 |
} |
169 |
}, |
170 |
}, |
170 |
{ |
171 |
{ |
|
|
172 |
"bVisible": false, |
171 |
"mDataProp": function( oObj ) { |
173 |
"mDataProp": function( oObj ) { |
172 |
if ( oObj.issued_today ) { |
174 |
if ( oObj.issued_today ) { |
173 |
return "<strong>" + TODAYS_CHECKOUTS + "</strong>"; |
175 |
return "<strong>" + TODAYS_CHECKOUTS + "</strong>"; |
Lines 177-187
$(document).ready(function() {
Link Here
|
177 |
} |
179 |
} |
178 |
}, |
180 |
}, |
179 |
{ |
181 |
{ |
|
|
182 |
"bVisible": false, |
180 |
"mDataProp": "date_due", |
183 |
"mDataProp": "date_due", |
|
|
184 |
}, |
185 |
{ |
181 |
"bVisible": false, |
186 |
"bVisible": false, |
|
|
187 |
"mDataProp": function( oObj ) { |
188 |
if ( oObj.issued_today ) { |
189 |
return "1" + oObj.sort_order; |
190 |
} else { |
191 |
return "0" + oObj.sort_order; |
192 |
} |
193 |
} |
182 |
}, |
194 |
}, |
183 |
{ |
195 |
{ |
184 |
"iDataSort": 1, // Sort on hidden unformatted date due column |
196 |
"iDataSort": 0, // Sort on hidden unformatted date due column |
185 |
"mDataProp": function( oObj ) { |
197 |
"mDataProp": function( oObj ) { |
186 |
if ( oObj.date_due_overdue ) { |
198 |
if ( oObj.date_due_overdue ) { |
187 |
return "<span class='overdue'>" + oObj.date_due_formatted + "</span>"; |
199 |
return "<span class='overdue'>" + oObj.date_due_formatted + "</span>"; |
Lines 379-385
$(document).ready(function() {
Link Here
|
379 |
}).rowGrouping( |
391 |
}).rowGrouping( |
380 |
{ |
392 |
{ |
381 |
iGroupingColumnIndex: 1, |
393 |
iGroupingColumnIndex: 1, |
382 |
iGroupingOrderByColumnIndex: 0, |
394 |
iGroupingOrderByColumnIndex: 3, |
383 |
sGroupingColumnSortDirection: "desc" |
395 |
sGroupingColumnSortDirection: "desc" |
384 |
} |
396 |
} |
385 |
); |
397 |
); |