From b141a5c71ecc79661d8a0ab1f962d034ac6a6c78 Mon Sep 17 00:00:00 2001 From: opi Date: Tue, 17 Jun 2014 11:16:10 +0200 Subject: [PATCH] [fix] Firewall: translate protocol/connection in warning prompt. --- js/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/app.js b/js/app.js index a96d8f76..ce20220b 100644 --- a/js/app.js +++ b/js/app.js @@ -1204,7 +1204,7 @@ app = Sammy('#main', function (sam) { // #/firewall/port/{{@key}}/tcp/ipv4/close sam.get('#/firewall/port/:port/:protocol/:connection/:action', function (c) { - if (confirm(y18n.t('confirm_firewall', [ y18n.t(c.params['action']), c.params['port'], c.params['protocol'], c.params['connection'] ]))) { + if (confirm(y18n.t('confirm_firewall', [ y18n.t(c.params['action']), c.params['port'], y18n.t(c.params['protocol']), y18n.t(c.params['connection']) ]))) { c.togglePort( c.params['port'], c.params['protocol'], @@ -1219,7 +1219,7 @@ app = Sammy('#main', function (sam) { }); sam.post('#/firewall/port', function (c) { - if (confirm(y18n.t('confirm_firewall', [ y18n.t(c.params['action']), c.params['port'], c.params['protocol'], c.params['connection'] ]))) { + if (confirm(y18n.t('confirm_firewall', [ y18n.t(c.params['action']), c.params['port'], y18n.t(c.params['protocol']), y18n.t(c.params['connection']) ]))) { c.togglePort( c.params['port'], c.params['protocol'],