aboutsummaryrefslogtreecommitdiff
path: root/public/js
diff options
context:
space:
mode:
authorCamil Staps2017-09-20 17:12:43 +0200
committerCamil Staps2017-09-20 17:12:43 +0200
commite661ce344127ca8acd1300746c5132098578fab7 (patch)
treea0d55336f6d23d24ac08400c9846e30ca529b2af /public/js
parentHide top users on some pages (diff)
Use POST for long queries; change request to TEXT type for the same reason
Diffstat (limited to 'public/js')
-rw-r--r--public/js/hebrewparsetrainer.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/public/js/hebrewparsetrainer.js b/public/js/hebrewparsetrainer.js
index e5666be..775285d 100644
--- a/public/js/hebrewparsetrainer.js
+++ b/public/js/hebrewparsetrainer.js
@@ -155,7 +155,9 @@ $(document).ready(function(){
var roots = $('select[name="root"]').val();
$.ajax('verb/random/', {
+ method: 'POST',
data: {
+ _token: $('#csrf').val(),
stem: $.makeArray(stems).join(),
tense: $.makeArray(tenses).join(),
root: $.makeArray(roots).join()