From 4f88f025e7a3ef6740599fafe669c6ec8b82a38f Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Sun, 9 Jul 2017 13:05:45 +0200 Subject: [PATCH] firmware: dialog primary buttons and less trigger-happy process #1707 --- .../mvc/app/views/OPNsense/Core/firmware.volt | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/opnsense/mvc/app/views/OPNsense/Core/firmware.volt b/src/opnsense/mvc/app/views/OPNsense/Core/firmware.volt index 2bee79ff8..448efa750 100644 --- a/src/opnsense/mvc/app/views/OPNsense/Core/firmware.volt +++ b/src/opnsense/mvc/app/views/OPNsense/Core/firmware.volt @@ -216,6 +216,7 @@ POSSIBILITY OF SUCH DAMAGE. message: "{{ lang._('The firewall will be rebooted directly after this firmware update.') }}", buttons: [{ label: "{{ lang._('OK') }}", + cssClass: 'btn-primary', action: function(dialogRef){ dialogRef.close(); upgrade(); @@ -471,15 +472,15 @@ POSSIBILITY OF SUCH DAMAGE. $('#checkupdate').click(updateStatus); $('#upgrade').click(upgrade_ui); $('#audit').click(audit); - // show upgrade message if there - if ($('#message').html() != '') { + $('#upgrade_maj').click(function () { BootstrapDialog.show({ type:BootstrapDialog.TYPE_WARNING, - title: "{{ lang._('End-of-Life Notice') }}", + title: "{{ lang._('Upgrade instructions') }}", message: $('#message').html(), buttons: [{ label: "{{ lang._('Upgrade') }}", + cssClass: 'btn-primary', action: function(dialogRef){ dialogRef.close(); $.upgrade_needs_reboot = 1; @@ -494,7 +495,7 @@ POSSIBILITY OF SUCH DAMAGE. } }] }); - } + }); // populate package information packagesInfo(true); @@ -620,7 +621,13 @@ POSSIBILITY OF SUCH DAMAGE.
+ + +