improve makefile, time disable form
This commit is contained in:
parent
73efd7209b
commit
304d66ee78
1
Makefile
1
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"
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user