From ba97ef2849243942831468bb4f2196fc9f925c11 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 13 Apr 2014 22:50:00 +0200 Subject: [PATCH] luci2: support placeholder attribute for L.cbi.DummyValue widgets --- luci2/htdocs/luci2/luci2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/luci2/htdocs/luci2/luci2.js b/luci2/htdocs/luci2/luci2.js index 849a4d4..2b4a5f1 100644 --- a/luci2/htdocs/luci2/luci2.js +++ b/luci2/htdocs/luci2/luci2.js @@ -5989,7 +5989,7 @@ function LuCI2() return $('
') .addClass('form-control-static') .attr('id', this.id(sid)) - .html(this.ucivalue(sid)); + .html(this.ucivalue(sid) || this.label('placeholder')); }, formvalue: function(sid) -- 2.30.2