summaryrefslogtreecommitdiff
path: root/views/script/gui.js
diff options
context:
space:
mode:
Diffstat (limited to 'views/script/gui.js')
-rw-r--r--views/script/gui.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/views/script/gui.js b/views/script/gui.js
index 2493245..27e1087 100644
--- a/views/script/gui.js
+++ b/views/script/gui.js
@@ -130,6 +130,7 @@ returnchip:function(){
openProperties:function(){
document.forms['webtronics_properties_form'].reset();
var c=netlistcreator.readwtx(this.circuit.selected[0],"name");
+ var type=netlistcreator.readwtx(this.circuit.selected[0],"type");
$("webtronics_risedelay").style.display='none';
$("webtronics_falldelay").style.display='none';
$("webtronics_inputload").style.display='none';
@@ -533,7 +534,7 @@ openProperties:function(){
if(c=="diode")$("directive").style.display='block'
var id=netlistcreator.readwtx(this.circuit.selected[0],"id");
-
+ if(type=="x")$("directive").style.display='block';
if(id!=""){$('webtronics_part_id').value=id;}