[Koha-bugs] [Bug 11211] Move calculation code out of C4::Calendar

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Nov 26 15:58:15 CET 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11211

--- Comment #44 from Magnus Enger <magnus at enger.priv.no> ---
Comment on attachment 33898
  --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=33898
Bug 11211 - Move calculation code out of C4::Calendar

Review of attachment 33898:
 --> (http://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=11211&attachment=33898)
-----------------------------------------------------------------

::: koha-tmpl/intranet-tmpl/prog/en/modules/tools/calendar.tt
@@ +183,5 @@
> +        $("#branch").change(function(){
> +            changeBranch();
> +        });
> +        $("#weekly-events,#single-events").dataTable($.extend(true, {}, dataTablesDefaults, {
> +            "sDom": 't',

Looks like my problem with incorrect sorting of dates (comment 27 and
attachment 33415, a.k.a. problem number 1 in comment 32) can be solved by
adding this here:

"aoColumns": [
    { "sType": "title-string" },null,null,null
],

This would be very similar to what is done below on line 190 for
$("#yearly-events"). Perhaps these could be combined into something like this? 

$("#weekly-events,#single-events,#yearly-events").dataTable($.extend(true, {},
dataTablesDefaults, {
    "sDom": 't',
    "aoColumns": [
        { "sType": "title-string" },null,null,null
    ],
    "bPaginate": false
}));

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list