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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt (-7 lines)
Lines 333-345 Link Here
333
        dt_overwrite_html_sorting_localeCompare();
333
        dt_overwrite_html_sorting_localeCompare();
334
        var columns_filter = {};
334
        var columns_filter = {};
335
335
336
        function _escape_str(s){
337
            return s != null ? s.escapeHtml() : "";
338
        }
339
        function _escape_price(p){
340
            return p != null ? p.escapeHtml().format_price() : "";
341
        }
342
343
        $(document).ready(function(){
336
        $(document).ready(function(){
344
337
345
            if ( $("#receivedt").length ) {
338
            if ( $("#receivedt").length ) {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt (-11 / +2 lines)
Lines 414-428 Link Here
414
               "manager"
414
               "manager"
415
            ],
415
            ],
416
            "order": [[ 0, "asc" ]],
416
            "order": [[ 0, "asc" ]],
417
            "columnDefs": [ {
418
                "targets": [0,1,2],
419
                "render": function (data, type, row, meta) {
420
                    if ( type == 'display' ) {
421
                        return data.escapeHtml();
422
                    }
423
                    return data;
424
                }
425
            } ],
426
            "columns": [
417
            "columns": [
427
                {
418
                {
428
                    "data": "timestamp",
419
                    "data": "timestamp",
Lines 444-450 Link Here
444
                        else {
435
                        else {
445
                            fullname = row.manager.firstname + " " + row.manager.surname;
436
                            fullname = row.manager.firstname + " " + row.manager.surname;
446
                        }
437
                        }
447
                        return fullname;
438
                        return _escape_str(fullname);
448
                    }
439
                    }
449
                },
440
                },
450
                {
441
                {
Lines 453-459 Link Here
453
                    "orderable": true,
444
                    "orderable": true,
454
                    "render": function(data, type, row, meta) {
445
                    "render": function(data, type, row, meta) {
455
                        var amt = row.amount * -1;
446
                        var amt = row.amount * -1;
456
                        return (amt).format_price();
447
                        return _escape_price(amt);
457
                    }
448
                    }
458
                },
449
                },
459
                {
450
                {
(-)a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js (-1 / +6 lines)
Lines 26-31 String.prototype.escapeHtml = function() { Link Here
26
        return HtmlCharsToEscape[c] || c;
26
        return HtmlCharsToEscape[c] || c;
27
    });
27
    });
28
};
28
};
29
function _escape_str(s){
30
    return s != null ? s.escapeHtml() : "";
31
}
29
32
30
/*
33
/*
31
 * Void method for numbers, for consistency
34
 * Void method for numbers, for consistency
Lines 33-38 String.prototype.escapeHtml = function() { Link Here
33
Number.prototype.escapeHtml = function() {
36
Number.prototype.escapeHtml = function() {
34
    return this;
37
    return this;
35
};
38
};
39
function _escape_price(p){
40
    return p != null ? p.escapeHtml().format_price() : "";
41
}
36
42
37
// http://stackoverflow.com/questions/14859281/select-tab-by-name-in-jquery-ui-1-10-0/16550804#16550804
43
// http://stackoverflow.com/questions/14859281/select-tab-by-name-in-jquery-ui-1-10-0/16550804#16550804
38
$.fn.tabIndex = function () {
44
$.fn.tabIndex = function () {
39
- 

Return to bug 26273