luci-base: form.js: remove stray `<br>` elements from section placeholder
authorJo-Philipp Wich <jo@mein.io>
Mon, 16 May 2022 14:03:14 +0000 (16:03 +0200)
committerJo-Philipp Wich <jo@mein.io>
Mon, 16 May 2022 14:03:14 +0000 (16:03 +0200)
Theme CSS styles shoudl take care of introducing padding as needed.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/form.js

index a09c805938c679c4d8256ef5873704a3e0db93e3..58f5a07fd6d41d225dc4446dd88f8a4b6832c7c0 100644 (file)
@@ -2273,10 +2273,7 @@ var CBITypedSection = CBIAbstractSection.extend(/** @lends LuCI.form.TypedSectio
 
        /** @private */
        renderSectionPlaceholder: function() {
-               return E([
-                       E('em', _('This section contains no values yet')),
-                       E('br'), E('br')
-               ]);
+               return E('em', _('This section contains no values yet'));
        },
 
        /** @private */