Lines 32-38
$(document).ready(function() {
Link Here
|
32 |
url: "/api/v1/tickets/" + ticket_id + "/updates", |
32 |
url: "/api/v1/tickets/" + ticket_id + "/updates", |
33 |
method: "GET", |
33 |
method: "GET", |
34 |
headers: { |
34 |
headers: { |
35 |
"x-koha-embed": "user" |
35 |
"x-koha-embed": [ "user", "+strings" ] |
36 |
}, |
36 |
}, |
37 |
}).success(function(data) { |
37 |
}).success(function(data) { |
38 |
let updates_display = $('#concern-updates'); |
38 |
let updates_display = $('#concern-updates'); |
Lines 50-59
$(document).ready(function() {
Link Here
|
50 |
updates += '<span class="clearfix">' + $patron_to_html(item.user, { |
50 |
updates += '<span class="clearfix">' + $patron_to_html(item.user, { |
51 |
display_cardnumber: false, |
51 |
display_cardnumber: false, |
52 |
url: true |
52 |
url: true |
53 |
}) + ' (' + $datetime(item.date) + ')</span>'; |
53 |
}) + ' (' + $datetime(item.date) + ')'; |
54 |
if ( item.status ) { |
54 |
if ( item.status ) { |
55 |
updates += '<span class="pull-right">' + item.status + '</span>' |
55 |
updates += '<span class="wrapfix pull-right">'; |
|
|
56 |
updates += item._strings.status ? escape_str(item._strings.status.str) : ""; |
57 |
updates += '</span>' |
56 |
} |
58 |
} |
|
|
59 |
updates += '</span>'; |
57 |
updates += '</div>'; |
60 |
updates += '</div>'; |
58 |
}); |
61 |
}); |
59 |
updates_display.html(updates); |
62 |
updates_display.html(updates); |
60 |
- |
|
|