diff options
author | Abhishek Patel | 2016-07-13 16:28:14 +0530 |
---|---|---|
committer | Abhishek Patel | 2016-07-13 16:28:14 +0530 |
commit | b92d211d162f938dc6da2b2fd03434d0b7a42b5a (patch) | |
tree | 1b5d96ea6a983154f154fdc0bc70fd2a6be80f95 /views/script | |
parent | 971189242751f5992712a056a06e85f8bbecfa92 (diff) | |
download | eSimWebApp-b92d211d162f938dc6da2b2fd03434d0b7a42b5a.tar.gz eSimWebApp-b92d211d162f938dc6da2b2fd03434d0b7a42b5a.tar.bz2 eSimWebApp-b92d211d162f938dc6da2b2fd03434d0b7a42b5a.zip |
errors removed
Diffstat (limited to 'views/script')
-rw-r--r-- | views/script/gui.js | 6 | ||||
-rw-r--r-- | views/script/netlist.js | 3 |
2 files changed, 3 insertions, 6 deletions
diff --git a/views/script/gui.js b/views/script/gui.js index 5fc62b1..e501955 100644 --- a/views/script/gui.js +++ b/views/script/gui.js @@ -725,11 +725,11 @@ jQuery(".digital").hide(); $("webtronics_falldelay").style.display='block';
$("webtronics_inputload").style.display='block';
var risedelay = netlistcreator.readwtx(this.circuit.selected[0],"risedelay");
- if(risedelay!=""){$(webtronics_part_risedelay).value=risedelay;}
+ if(risedelay!=""){$(webtronics_risedelay_value).value=risedelay;}
var falldelay = netlistcreator.readwtx(this.circuit.selected[0],"falldelay");
- if(falldelay!=""){$(webtronics_part_falldelay).value=falldelay;}
+ if(falldelay!=""){$(webtronics_falldelay_value).value=falldelay;}
var inputload = netlistcreator.readwtx(this.circuit.selected[0],"inputload");
- if(inputload!=""){$(webtronics_part_inputload).value=inputload;}
+ if(inputload!=""){$(webtronics_inputload_value).value=inputload;}
}
}
diff --git a/views/script/netlist.js b/views/script/netlist.js index c7435a7..fcc259a 100644 --- a/views/script/netlist.js +++ b/views/script/netlist.js @@ -945,9 +945,6 @@ else if(sections.netlist[i].name=="pwl"){ else if(sections.netlist[i].name=="exponential"){ command+=" "+"EXP ("+sections.netlist[i].eval1+" "+sections.netlist[i].eval2+" "+sections.netlist[i].eval3+" "+sections.netlist[i].eval4+" "+sections.netlist[i].eval5+" "+sections.netlist[i].eval6+")"; } -else if(sections.netlist[i].name=="and"){ - command+=" "+sections.netlist[i].risedelay+" "+sections.netlist[i].falldelay+" "+sections.netlist[i].inputload; -} else if(sections.netlist[i].name=="gains"){ var inoff=sections.netlist[i].inoffset;var gn=sections.netlist[i].gain;var outoff=sections.netlist[i].outoffset; command+=" ref_"+pid+"\n"+".model ref_"+pid+" gain(in_offset="+inoff+" gain="+gn+" out_offset="+outoff+")\n"; |