Targerts function generates its own inner HTML.
authorMike Taylor <mike@indexdata.com>
Mon, 28 Apr 2014 16:29:15 +0000 (17:29 +0100)
committerMike Taylor <mike@indexdata.com>
Mon, 28 Apr 2014 16:29:15 +0000 (17:29 +0100)
src/mkws-widgets.js

index 176e45c..570d3dd 100644 (file)
@@ -125,6 +125,12 @@ mkws.registerWidgetType('Targets', function() {
     var that = this;
     var M = mkws.M;
 
+    $(this.node).html('\
+<div class="mkwsBytarget mkwsTeam_' + this.team.name() + '">\
+No information available yet.\
+</div>');
+    $(this.node).css("display", "none");
+
     this.team.queue("targets").subscribe(function(data) {
        var table ='<table><thead><tr>' +
            '<td>' + M('Target ID') + '</td>' +