luci2: support placeholder attribute for L.cbi.DummyValue widgets
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 13 Apr 2014 20:50:00 +0000 (22:50 +0200)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 13 Apr 2014 20:50:00 +0000 (22:50 +0200)
luci2/htdocs/luci2/luci2.js

index 849a4d4d08f3036f8e9747a74c9774e259310895..2b4a5f18b45d6f89a4055ede3b1eaa8e895e82a7 100644 (file)
@@ -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)