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 849a4d4..2b4a5f1 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)