Index: trunk/extensions/Quiz/quiz.js |
— | — | @@ -116,12 +116,16 @@ |
117 | 117 | }; |
118 | 118 | } |
119 | 119 | input[j].onkeydown = function() { |
120 | | - this.form.shuffleButton.disabled = true; |
| 120 | + if( this.form.shuffleButton ) { |
| 121 | + this.form.shuffleButton.disabled = true; |
| 122 | + } |
121 | 123 | }; |
122 | 124 | } |
123 | 125 | if( input[j].className == 'check' ) { |
124 | 126 | input[j].onclick = function() { |
125 | | - this.form.shuffleButton.disabled = true; |
| 127 | + if( this.form.shuffleButton ) { |
| 128 | + this.form.shuffleButton.disabled = true; |
| 129 | + } |
126 | 130 | }; |
127 | 131 | } |
128 | 132 | // Disable the submit button if the page is in preview mode |