gluon-statuspage: add info if javascript is disabled to enable it

This commit is contained in:
Brother-Lal 2016-10-24 14:21:54 +02:00
parent 30811f7f1b
commit ea49104714
2 changed files with 3 additions and 0 deletions

View File

@ -13,5 +13,6 @@
</script> </script>
</head> </head>
<body> <body>
<h1 id="jswarn">Bitte Javascript aktivieren.</h1>
</body> </body>
</html> </html>

View File

@ -5,6 +5,8 @@ require([ "bacon"
, "lib/gui" , "lib/gui"
], function(Bacon, Helper, Streams, GUI) { ], function(Bacon, Helper, Streams, GUI) {
document.getElementById("jswarn").remove();
var mgmtBus = new Bacon.Bus() var mgmtBus = new Bacon.Bus()
mgmtBus.pushEvent = function (key, a) { mgmtBus.pushEvent = function (key, a) {