Commit 79d621c71f3c6623656fa0b80914d449c6385e8e
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 | 232 | } |
233 | 233 | }); |
234 | 234 | this.targets[target_slug].active = true; |
235 | + if( this.targets[target_slug].config.type == 'input'){ | |
236 | + return this; | |
237 | + } | |
235 | 238 | if ((ref$ = this.orbits) != null) { |
236 | 239 | ref$.enableTarget(target_slug); |
237 | 240 | } |
... | ... | @@ -246,6 +249,9 @@ |
246 | 249 | } |
247 | 250 | }); |
248 | 251 | this.targets[target_slug].active = false; |
252 | + if( this.targets[target_slug].config.type == 'input'){ | |
253 | + return this; | |
254 | + } | |
249 | 255 | if ((ref$ = this.orbits) != null) { |
250 | 256 | ref$.disableTarget(target_slug); |
251 | 257 | } | ... | ... |