remove submit type from buttons

This commit is contained in:
BuckarooBanzay 2020-09-20 13:12:31 +02:00
parent 2d1ca4869e
commit 8bc56dc739
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ const Compose = {
})
]),
m("div", {class:"row"}, [
m("button[type=submit]", {
m("button", {
class:"btn btn-sm btn-block btn-primary",
onclick: sendMail,
disabled: !state.compose.body || !state.compose.subject || !state.compose.recipient,

View File

@ -15,7 +15,7 @@ var LoginButton = function(){
};
var LogoutButton = function(){
return m("button[type=submit]", {
return m("button", {
class:"btn btn-sm btn-block btn-secondary",
onclick: logout
}, "Logout");