From: Jo-Philipp Wich Date: Tue, 20 Nov 2018 10:43:20 +0000 (+0100) Subject: luci-base: fix apply/rollback strings X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=50ee130cd8fb04e1b8dd8f87545795d33063cd15;p=project%2Fluci.git luci-base: fix apply/rollback strings Commit 94d8c9a7a accidentally overwrite the rewording of strings made in an earlier commit. Fixes: 94d8c9a7a ("luci-base: simplify apply widget code") Signed-off-by: Jo-Philipp Wich --- diff --git a/modules/luci-base/luasrc/view/cbi/apply_widget.htm b/modules/luci-base/luasrc/view/cbi/apply_widget.htm index 05511c9ab0..0f9667390e 100644 --- a/modules/luci-base/luasrc/view/cbi/apply_widget.htm +++ b/modules/luci-base/luasrc/view/cbi/apply_widget.htm @@ -41,11 +41,11 @@ if (r.status === 204) { uci_status_message('warning', '

<%:Configuration has been rolled back!%>

' + - '

<%:The device could not be reached within %d seconds after applying the pending changes, which caused the configuration to be rolled back for safety reasons. If you believe that the configuration changes are correct nonetheless, perform an unchecked configuration apply. Alternatively, you can dismiss this warning and edit changes before attempting to apply again, or revert all pending changes to keep the currently working configuration state.%>

'.format(uci_apply_rollback) + + '

<%:The device could not be reached within %d seconds after applying the pending changes, which caused the configuration to be rolled back for safety reasons. If you believe that the configuration changes are correct nonetheless, proceed by applying anyway. Alternatively, you can dismiss this warning and edit changes before attempting to apply again, or revert all pending changes to keep the currently working configuration state.%>

'.format(uci_apply_rollback) + '
' + ' ' + ' ' + - '' + + '' + '
'); return; @@ -106,7 +106,7 @@ var now = Date.now(); uci_status_message('notice spinning', - '

<%:Waiting for configuration to get applied… %ds%>

'.format(Math.max(Math.floor((deadline - Date.now()) / 1000), 0))); + '

<%:Waiting for configuration to be applied… %ds%>

'.format(Math.max(Math.floor((deadline - Date.now()) / 1000), 0))); if (now >= deadline) return;