Commit 79d621c71f3c6623656fa0b80914d449c6385e8e

Authored by hitier
1 parent f6b34230
Exists in rhitier-dev

Dont draw orbit for target.type.input

Showing 1 changed file with 6 additions and 0 deletions   Show diff stats
web/static/js/main.js
@@ -232,6 +232,9 @@ @@ -232,6 +232,9 @@
232 } 232 }
233 }); 233 });
234 this.targets[target_slug].active = true; 234 this.targets[target_slug].active = true;
  235 + if( this.targets[target_slug].config.type == 'input'){
  236 + return this;
  237 + }
235 if ((ref$ = this.orbits) != null) { 238 if ((ref$ = this.orbits) != null) {
236 ref$.enableTarget(target_slug); 239 ref$.enableTarget(target_slug);
237 } 240 }
@@ -246,6 +249,9 @@ @@ -246,6 +249,9 @@
246 } 249 }
247 }); 250 });
248 this.targets[target_slug].active = false; 251 this.targets[target_slug].active = false;
  252 + if( this.targets[target_slug].config.type == 'input'){
  253 + return this;
  254 + }
249 if ((ref$ = this.orbits) != null) { 255 if ((ref$ = this.orbits) != null) {
250 ref$.disableTarget(target_slug); 256 ref$.disableTarget(target_slug);
251 } 257 }