Update button type to prevent form submit

[MAILPOET-992]
This commit is contained in:
Pavel Dohnal
2017-07-10 13:28:06 +01:00
parent e2bb2679e4
commit c1e56e5fa1

View File

@ -98,6 +98,7 @@
<div class="mailpoet_actions"> <div class="mailpoet_actions">
<button <button
type="button"
class="mailpoet_sending_service_activate button-secondary" class="mailpoet_sending_service_activate button-secondary"
<% if(settings.mta_group == 'mailpoet' or not(mss_key_valid)) %> disabled="disabled"<% endif %> <% if(settings.mta_group == 'mailpoet' or not(mss_key_valid)) %> disabled="disabled"<% endif %>
><%= __('Activate') %></button> ><%= __('Activate') %></button>
@ -793,7 +794,6 @@
// save settings // save settings
$('.mailpoet_settings_submit > input').trigger('click'); $('.mailpoet_settings_submit > input').trigger('click');
} }
return false;
} }
function setSignupConfirmation(group) { function setSignupConfirmation(group) {