diff options
| author | Camil Staps | 2016-05-09 21:40:54 +0200 | 
|---|---|---|
| committer | Camil Staps | 2016-05-09 21:40:54 +0200 | 
| commit | ab4a3f1c8596a7787d04ed46bbaae7e736d11ec1 (patch) | |
| tree | 02834722d1b07d553a20dc343aafb8aa7f0efc3a | |
| parent | Copyright; report option (diff) | |
Fix
| -rw-r--r-- | public/js/hebrewparsetrainer.js | 14 | 
1 files changed, 5 insertions, 9 deletions
| diff --git a/public/js/hebrewparsetrainer.js b/public/js/hebrewparsetrainer.js index ea4e571..a4fb5f7 100644 --- a/public/js/hebrewparsetrainer.js +++ b/public/js/hebrewparsetrainer.js @@ -80,19 +80,15 @@ $(document).ready(function(){  					} else {  						var done = checkInput(true);  						if ($('#trainer-input-'+input_count).parent().hasClass('has-error')) { +							var next = $('<button></button>'); +							next.addClass('btn btn-warning').attr('role', 'button'); +							next.click(reloadVerb);  							if (done) { -								var next = $('<button></button>'); -								next.addClass('btn btn-warning').attr('role', 'button');  								next.text('Next'); -								next.click(reloadVerb); -								$('#trainer-input-fancy').html(next);  							} else { -								var skip = $('<button></button>'); -								skip.addClass('btn btn-warning').attr('role', 'button'); -								skip.text('Skip'); -								skip.click(reloadVerb); -								$('#trainer-input-fancy').append(skip); +								next.text('Skip');  							} +							$('#trainer-input-fancy').html(next);  						}  					}  				}); | 
