luci-mod-system: remove bogus btn class in flash.js
authorDirk Brenken <[email protected]>
Wed, 14 Apr 2021 12:12:06 +0000 (14:12 +0200)
committerJo-Philipp Wich <[email protected]>
Sat, 12 Jun 2021 18:01:58 +0000 (20:01 +0200)
* fixes #4970

Signed-off-by: Dirk Brenken <[email protected]>
[omit translation sync]
Signed-off-by: Jo-Philipp Wich <[email protected]>
(backported from commit 8c6a29a45cba64724bd726e52719eabbfa8528a6)

modules/luci-mod-system/htdocs/luci-static/resources/view/system/flash.js

index 6ab18a3d3219aadb3280f6fc7626f45dbfc1929e..1207fc63b5708ff59b2ca4bc4733a44ea2633da4 100644 (file)
@@ -251,11 +251,9 @@ return view.extend({
 
 
                                if ((!is_valid || is_too_big) && is_forceable)
-                                       body.push(E('p', {}, E('label', { 'class': 'btn alert-message danger' }, [
-                                               force, ' ', _('Force upgrade'),
-                                               E('br'), E('br'),
-                                               _('Select \'Force upgrade\' to flash the image even if the image format check fails. Use only if you are sure that the firmware is correct and meant for your device!')
-                                       ])));
+                                       body.push(E('p', { 'class': 'alert-message danger' }, [
+                                               force, ' ', _('Force upgrade: Select \'Force upgrade\' to flash the image even if the image format check fails. Use only if you are sure that the firmware is correct and meant for your device!')
+                                       ]));
 
                                var cntbtn = E('button', {
                                        'class': 'btn cbi-button-action important',