summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2014-04-13 22:50:00 +0200
committerJo-Philipp Wich <jow@openwrt.org>2014-04-13 22:50:00 +0200
commitba97ef2849243942831468bb4f2196fc9f925c11 (patch)
tree956287f7f59e22ab8547c62d893986a4b239f7c7
parent129faaf2b2ad3ac86ae3a9e26a6af2c7537ac673 (diff)
downloadluci2-ui-ba97ef2849243942831468bb4f2196fc9f925c11.tar.gz
luci2: support placeholder attribute for L.cbi.DummyValue widgets
-rw-r--r--luci2/htdocs/luci2/luci2.js2
1 files changed, 1 insertions, 1 deletions
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 $('<div />')
.addClass('form-control-static')
.attr('id', this.id(sid))
- .html(this.ucivalue(sid));
+ .html(this.ucivalue(sid) || this.label('placeholder'));
},
formvalue: function(sid)