diff options
| author | Camil Staps | 2017-09-20 17:20:29 +0200 | 
|---|---|---|
| committer | Camil Staps | 2017-09-20 17:20:29 +0200 | 
| commit | ed07a449a8fe98525c64c31d9604addc22a20c3a (patch) | |
| tree | f29099faaebe53efe6733043049e94213e27aaeb | |
| parent | Include root in answers (diff) | |
| parent | Checkboxes instead of select for roots (diff) | |
Merge branch 'master' of github.com:HebrewTools/ParseTrainer
| -rw-r--r-- | public/js/hebrewparsetrainer.js | 2 | ||||
| -rw-r--r-- | resources/views/trainer.blade.php | 6 | 
2 files changed, 4 insertions, 4 deletions
| diff --git a/public/js/hebrewparsetrainer.js b/public/js/hebrewparsetrainer.js index 5bd8d04..db51117 100644 --- a/public/js/hebrewparsetrainer.js +++ b/public/js/hebrewparsetrainer.js @@ -152,7 +152,7 @@ $(document).ready(function(){  		var stems = $('input[name="stem"]:checked').map(function(){return this.value;});  		var tenses = $('input[name="tense"]:checked').map(function(){return this.value;}); -		var roots = $('select[name="root"]').val(); +		var roots = $('input[name="root"]:checked').map(function(){return this.value;});  		$.ajax('verb/random/', {  			method: 'POST', diff --git a/resources/views/trainer.blade.php b/resources/views/trainer.blade.php index 82cfe02..59e457a 100644 --- a/resources/views/trainer.blade.php +++ b/resources/views/trainer.blade.php @@ -30,13 +30,13 @@ use HebrewParseTrainer\Tense;  	<div class="form-group">  		<h3>Roots</h3> -		<select name="root" class="reload-verb form-control hebrew ltr" multiple="multiple">  		@foreach (Root::orderBy('root_kind_id')->get() as $root)  			@if ($root->verbs()->where('active', 1)->count() > 0) -					<option value="{{{ $root->root }}}" selected="selected">{{{ $root->root }}} ({{{ $root->kind->name }}})</option> +				<div class="checkbox"> +					<label><input class="reload-verb" type="checkbox" name="root" value="{{{ $root->root }}}" checked="checked"/> <span class="hebrew">{{{ $root->root }}}</span> ({{{ $root->kind->name }}})</label> +				</div>  			@endif  		@endforeach -		</select>  	</div>  	<div class="form-group"> | 
