aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCamil Staps2016-05-09 21:40:54 +0200
committerCamil Staps2016-05-09 21:40:54 +0200
commitab4a3f1c8596a7787d04ed46bbaae7e736d11ec1 (patch)
tree02834722d1b07d553a20dc343aafb8aa7f0efc3a
parentCopyright; report option (diff)
Fix
-rw-r--r--public/js/hebrewparsetrainer.js14
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);
}
}
});