diff options
author | jiteshjha | 2016-06-13 18:38:37 +0530 |
---|---|---|
committer | jiteshjha | 2016-06-13 18:38:37 +0530 |
commit | 6236dbd8f106b2da57dd219bcaa0aedf577da49d (patch) | |
tree | ae9ce5b97aba1cae57458ac71145b5b3e2d06f4b /index.html | |
parent | 8242c14d38c1e7f1b7f91e7e27faedcbf0a16495 (diff) | |
download | xcos-on-web-6236dbd8f106b2da57dd219bcaa0aedf577da49d.tar.gz xcos-on-web-6236dbd8f106b2da57dd219bcaa0aedf577da49d.tar.bz2 xcos-on-web-6236dbd8f106b2da57dd219bcaa0aedf577da49d.zip |
chaged id name
Diffstat (limited to 'index.html')
-rw-r--r-- | index.html | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -912,20 +912,20 @@ myform.setAttribute("id", "formProperties"); // Add set context string - var stringSetContext = document.createElement("div"); - stringSetContext.innerHTML = "You may enter here scilab instructions to define symbolic parameters used in block definitions using Scilab instructions. These instructions are evaluated once confirmed(i.e. you click on OK and every time the diagram is loaded)"; - stringSetContext.setAttribute("id", "stringSetContext"); - myform.appendChild(stringSetContext); + var descriptionSetContext = document.createElement("div"); + descriptionSetContext.innerHTML = "You may enter here scilab instructions to define symbolic parameters used in block definitions using Scilab instructions. These instructions are evaluated once confirmed(i.e. you click on OK and every time the diagram is loaded)"; + descriptionSetContext.setAttribute("id", "descriptionSetContext"); + myform.appendChild(descriptionSetContext); // Line break var linebreak = document.createElement('br'); myform.appendChild(linebreak); // input text area - var textarea = document.createElement("textarea"); - textarea.setAttribute("id", "setContextTextArea"); + var textareaSetContext = document.createElement("textarea"); + textareaSetContext.setAttribute("id", "textareaSetContext"); - myform.appendChild(textarea); + myform.appendChild(textareaSetContext); // Line break var linebreak = document.createElement('br'); @@ -944,7 +944,7 @@ // Executes when button 'btn' is clicked btn.onclick = function() { - console.log('Input: '+document.getElementById('setContextTextArea').value); + console.log('Input: '+document.getElementById('textareaSetContext').value); }; myform.appendChild(btn); |