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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cities.tt (-1 / +1 lines)
Lines 186-192 Link Here
186
                    "targets": [0,1,2,3,4],
186
                    "targets": [0,1,2,3,4],
187
                    "render": function (data, type, row, meta) {
187
                    "render": function (data, type, row, meta) {
188
                        if ( type == 'display' ) {
188
                        if ( type == 'display' ) {
189
                            return $('<div />').text(data).html();
189
                            return data.escapeHtml();
190
                        }
190
                        }
191
                        return data;
191
                        return data;
192
                    }
192
                    }
(-)a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js (-1 / +7 lines)
Lines 26-31 String.prototype.escapeHtml = function() { Link Here
26
    });
26
    });
27
};
27
};
28
28
29
/*
30
 * Void method for numbers, for consistency
31
 */
32
Number.prototype.escapeHtml = function() {
33
    return this;
34
};
35
29
// http://stackoverflow.com/questions/14859281/select-tab-by-name-in-jquery-ui-1-10-0/16550804#16550804
36
// http://stackoverflow.com/questions/14859281/select-tab-by-name-in-jquery-ui-1-10-0/16550804#16550804
30
$.fn.tabIndex = function () {
37
$.fn.tabIndex = function () {
31
    return $(this).parent().children('div').index(this);
38
    return $(this).parent().children('div').index(this);
32
- 

Return to bug 25279