diff --git a/Makefile b/Makefile index 0630871..b16f23b 100644 --- a/Makefile +++ b/Makefile @@ -23,6 +23,7 @@ jenkins_test: migrate_test @echo "==> Running tests (result in test-report.xml)" @go get -v -u github.com/jstemmer/go-junit-report @go test ./... -v -cpu 2 -race | /go/bin/go-junit-report -set-exit-code > ./test-report.xml + @go mod tidy fmt: @echo "==> Running gofmt" diff --git a/static/script.js b/static/script.js index 60b6e0a..6b51181 100644 --- a/static/script.js +++ b/static/script.js @@ -122,7 +122,9 @@ function send(url, data, callback) { M.toast({ html: res.responseJSON.error, displayLength: 1000, - completeCallback: enableForm() + completeCallback: function(){ + enableForm() + } }) } } @@ -203,7 +205,7 @@ $( document ).ready(function() { function disableForm(elem) { $(document).find('button.btn').addClass('disabled'); elem.find(".material-icons").addClass('animate'); - $("form :input").find(":input").prop("disabled", true); + $("form :input").prop("disabled", true); } function enableForm() {