View | Details | Raw Unified | Return to bug 24533
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js (-2 / +23 lines)
Lines 245-260 function LoadIssuesTable() { Link Here
245
                        return title;
245
                        return title;
246
                    },
246
                    },
247
                    type: "anti-the",
247
                    type: "anti-the",
248
                    orderData: [1, 3],
248
                },
249
                },
249
                {
250
                {
250
                    data: function (oObj) {
251
                    data: function (oObj) {
251
                        return oObj.recordtype_description.escapeHtml();
252
                        return oObj.recordtype_description.escapeHtml();
252
                    },
253
                    },
254
                    orderData: [1, 4],
253
                },
255
                },
254
                {
256
                {
255
                    data: function (oObj) {
257
                    data: function (oObj) {
256
                        return oObj.itemtype_description.escapeHtml();
258
                        return oObj.itemtype_description.escapeHtml();
257
                    },
259
                    },
260
                    orderData: [1, 5],
258
                },
261
                },
259
                {
262
                {
260
                    data: function (oObj) {
263
                    data: function (oObj) {
Lines 262-272 function LoadIssuesTable() { Link Here
262
                            ? oObj.collection.escapeHtml()
265
                            ? oObj.collection.escapeHtml()
263
                            : "";
266
                            : "";
264
                    },
267
                    },
268
                    orderData: [1, 6],
265
                },
269
                },
266
                {
270
                {
267
                    data: function (oObj) {
271
                    data: function (oObj) {
268
                        return oObj.location ? oObj.location.escapeHtml() : "";
272
                        return oObj.location ? oObj.location.escapeHtml() : "";
269
                    },
273
                    },
274
                    orderData: [1, 7],
270
                },
275
                },
271
                {
276
                {
272
                    data: function (oObj) {
277
                    data: function (oObj) {
Lines 274-286 function LoadIssuesTable() { Link Here
274
                            ? oObj.homebranch.escapeHtml()
279
                            ? oObj.homebranch.escapeHtml()
275
                            : "";
280
                            : "";
276
                    },
281
                    },
282
                    orderData: [1, 8],
277
                },
283
                },
278
                {
284
                {
279
                    data: "issuedate",
285
                    data: "issuedate",
280
                    visible: false,
286
                    visible: false,
281
                },
287
                },
282
                {
288
                {
283
                    orderData: 10, // Sort on hidden unformatted issuedate column
289
                    orderData: [1, 10], // Sort on hidden unformatted issuedate column
284
                    data: function (oObj) {
290
                    data: function (oObj) {
285
                        return $datetime(oObj.issuedate, {
291
                        return $datetime(oObj.issuedate, {
286
                            no_tz_adjust: true,
292
                            no_tz_adjust: true,
Lines 293-298 function LoadIssuesTable() { Link Here
293
                            ? oObj.branchname.escapeHtml()
299
                            ? oObj.branchname.escapeHtml()
294
                            : "";
300
                            : "";
295
                    },
301
                    },
302
                    orderData: [1, 11],
296
                },
303
                },
297
                {
304
                {
298
                    data: function (oObj) {
305
                    data: function (oObj) {
Lines 300-305 function LoadIssuesTable() { Link Here
300
                            ? oObj.itemcallnumber.escapeHtml()
307
                            ? oObj.itemcallnumber.escapeHtml()
301
                            : "";
308
                            : "";
302
                    },
309
                    },
310
                    orderData: [1, 12],
303
                },
311
                },
304
                {
312
                {
305
                    data: function (oObj) {
313
                    data: function (oObj) {
Lines 307-312 function LoadIssuesTable() { Link Here
307
                            ? oObj.copynumber.escapeHtml()
315
                            ? oObj.copynumber.escapeHtml()
308
                            : "";
316
                            : "";
309
                    },
317
                    },
318
                    orderData: [1, 13],
310
                },
319
                },
311
                {
320
                {
312
                    data: function (oObj) {
321
                    data: function (oObj) {
Lines 317-322 function LoadIssuesTable() { Link Here
317
                            "<span>"
326
                            "<span>"
318
                        );
327
                        );
319
                    },
328
                    },
329
                    orderData: [1, 14],
320
                    className: "nowrap",
330
                    className: "nowrap",
321
                },
331
                },
322
                {
332
                {
Lines 328-333 function LoadIssuesTable() { Link Here
328
                            "<span>"
338
                            "<span>"
329
                        );
339
                        );
330
                    },
340
                    },
341
                    orderData: [1, 15],
331
                    className: "nowrap",
342
                    className: "nowrap",
332
                },
343
                },
333
                {
344
                {
Lines 339-344 function LoadIssuesTable() { Link Here
339
                            "<span>"
350
                            "<span>"
340
                        );
351
                        );
341
                    },
352
                    },
353
                    orderData: [1, 16],
342
                    className: "nowrap",
354
                    className: "nowrap",
343
                },
355
                },
344
                {
356
                {
Lines 702-707 function LoadIssuesTable() { Link Here
702
            collision: "none",
714
            collision: "none",
703
        });
715
        });
704
    }
716
    }
717
718
    // Disable rowGroup when sorting on due date
719
    $("#issues-table").on("order.dt", function () {
720
        var order = issuesTable.api().order();
721
        if (order[0][0] === 3) {
722
            issuesTable.api().rowGroup().disable();
723
        } else {
724
            issuesTable.api().rowGroup().enable();
725
        }
726
    });
705
}
727
}
706
728
707
var loadIssuesTableDelayTimeoutId;
729
var loadIssuesTableDelayTimeoutId;
708
- 

Return to bug 24533