|
Lines 383-388
Link Here
|
| 383 |
[% MACRO jsinclude BLOCK %] |
383 |
[% MACRO jsinclude BLOCK %] |
| 384 |
[% INCLUDE 'calendar.inc' %] |
384 |
[% INCLUDE 'calendar.inc' %] |
| 385 |
[% INCLUDE 'datatables.inc' %] |
385 |
[% INCLUDE 'datatables.inc' %] |
|
|
386 |
<script> |
| 387 |
// FIXME This does not work, we need to pass table settings, not the columns |
| 388 |
columns_settings = [% FILTER collapse %] |
| 389 |
[ |
| 390 |
{ |
| 391 |
"is_hidden": 0, |
| 392 |
"columnname": "[% mainloo.line | html %]_[% mainloo.column | html %]", |
| 393 |
"cannot_be_toggled": 1, |
| 394 |
"cannot_be_modified": 1 |
| 395 |
}, |
| 396 |
[% FOREACH loopco IN mainloo.loopcol %] |
| 397 |
{ |
| 398 |
"is_hidden": 0, |
| 399 |
"columnname": "[% loopco.coltitle | html %]", |
| 400 |
"cannot_be_toggled": 0, |
| 401 |
"cannot_be_modified": 0 |
| 402 |
}, |
| 403 |
[% END %] |
| 404 |
{ |
| 405 |
"is_hidden": 0, |
| 406 |
"columnname": "total", |
| 407 |
"cannot_be_toggled": 0, |
| 408 |
"cannot_be_modified": 0 |
| 409 |
}, |
| 410 |
]; |
| 411 |
[% END %] |
| 412 |
</script> |
| 413 |
|
| 386 |
<script> |
414 |
<script> |
| 387 |
function changeRemovedDateTrStatus() { |
415 |
function changeRemovedDateTrStatus() { |
| 388 |
var Cellvalue = $("input[name='Cellvalue']:checked").val(); |
416 |
var Cellvalue = $("input[name='Cellvalue']:checked").val(); |
|
Lines 406-437
Link Here
|
| 406 |
}); |
434 |
}); |
| 407 |
changeRemovedDateTrStatus(); |
435 |
changeRemovedDateTrStatus(); |
| 408 |
|
436 |
|
| 409 |
// FIXME This does not work, we need to pass table settings, not the columns |
|
|
| 410 |
columns_settings = [% FILTER collapse %] |
| 411 |
[ |
| 412 |
{ |
| 413 |
"is_hidden": 0, |
| 414 |
"columnname": "[% mainloo.line | html %]_[% mainloo.column | html %]", |
| 415 |
"cannot_be_toggled": 1, |
| 416 |
"cannot_be_modified": 1 |
| 417 |
}, |
| 418 |
[% FOREACH loopco IN mainloo.loopcol %] |
| 419 |
{ |
| 420 |
"is_hidden": 0, |
| 421 |
"columnname": "[% loopco.coltitle | html %]", |
| 422 |
"cannot_be_toggled": 0, |
| 423 |
"cannot_be_modified": 0 |
| 424 |
}, |
| 425 |
[% END %] |
| 426 |
{ |
| 427 |
"is_hidden": 0, |
| 428 |
"columnname": "total", |
| 429 |
"cannot_be_toggled": 0, |
| 430 |
"cannot_be_modified": 0 |
| 431 |
}, |
| 432 |
]; |
| 433 |
[% END %] |
| 434 |
|
| 435 |
var catalogue_stats = $("#catalogue_stats").kohaTable( |
437 |
var catalogue_stats = $("#catalogue_stats").kohaTable( |
| 436 |
{ |
438 |
{ |
| 437 |
autoWidth: false, |
439 |
autoWidth: false, |
| 438 |
- |
|
|