Commit ce7b8a79b5cd4c47fbf282e61a65dab2eb8896d0
Merge branch 'edge' of git@github.com:ktgit/knowledgetree into edge
Showing
2 changed files
with
6 additions
and
4 deletions
setup/wizard/resources/wizard.js
| ... | ... | @@ -61,12 +61,13 @@ wizard.prototype.toggleElement = function(el) { |
| 61 | 61 | w.hideErrors(); // If theres no errors, hide the ones displaying |
| 62 | 62 | var el = document.getElementsByClassName("step"+p); |
| 63 | 63 | el[0].style.display = 'none'; |
| 64 | + var j = 0; | |
| 64 | 65 | if(d == "n") { |
| 65 | - var j = p+1; | |
| 66 | + j = p+1; | |
| 66 | 67 | } else if(d == "p") { |
| 67 | - var j = p-1; | |
| 68 | + j = p-1; | |
| 68 | 69 | } |
| 69 | - var el = document.getElementsByClassName("step"+j); | |
| 70 | + el = document.getElementsByClassName("step"+j); | |
| 70 | 71 | el[0].style.display = 'block'; |
| 71 | 72 | |
| 72 | 73 | return true; |
| ... | ... | @@ -148,4 +149,5 @@ wizard.prototype.onSubmitValidate = function() { |
| 148 | 149 | return false; |
| 149 | 150 | } |
| 150 | 151 | } |
| 152 | + return true; | |
| 151 | 153 | } |
| 152 | 154 | \ No newline at end of file | ... | ... |