net/wol: single quotes in translation

This commit is contained in:
Franco Fichtner
2019-03-12 07:10:06 +01:00
parent 56119ddd59
commit 32e14d7ba2
@@ -3,7 +3,7 @@
function show_wake_result(data) {
BootstrapDialog.show({
type: data.status == 'OK' ? BootstrapDialog.TYPE_SUCCESS : BootstrapDialog.TYPE_DANGER,
title: "{{ lang._("Result") }}",
title: "{{ lang._('Result') }}",
message: (data.status == 'OK' ?
'{{ lang._('Magic packet was sent successfully.') }}' :
'{{ lang._('The packet was not sent due to an error. Please consult the logs.') }}<br />' +
@@ -25,7 +25,7 @@ $( document ).ready(function() {
$.post('/api/wol/wol/wakeall', {}, function(data) {
BootstrapDialog.show({
type: BootstrapDialog.TYPE_INFO,
title: "{{ lang._("Result") }}",
title: "{{ lang._('Result') }}",
message: '<ul>' + (data['results'].map(function(element) {
return `<li>${element.mac}: ${element.status}</li>`
}).join('')) + '</ul>',