X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fmkws-widget-main.js;h=92716027b0639467e1209637f95bb1b3504e3fd4;hb=1db9063acc50726bd54f3530084b31c44a8402f0;hp=650ed91c8f51c6a3fda7ca49c5049f6310cdf688;hpb=1c08c02c5646499abb70f025e374ceb4517df311;p=mkws-moved-to-github.git
diff --git a/src/mkws-widget-main.js b/src/mkws-widget-main.js
index 650ed91..9271602 100644
--- a/src/mkws-widget-main.js
+++ b/src/mkws-widget-main.js
@@ -4,11 +4,12 @@
mkws.registerWidgetType('Targets', function() {
+ if (!this.config.show_switch) return;
var that = this;
var M = mkws.M;
- $(this.node).html('No information available yet.');
- $(this.node).css("display", "none");
+ this.node.html('No information available yet.');
+ this.node.css("display", "none");
this.team.queue("targets").subscribe(function(data) {
var table ='