Update email.

This commit is contained in:
Hoang Huu
2019-09-20 17:36:01 +07:00
parent 7fe9e71ec0
commit 76dcd7ae25
6 changed files with 329 additions and 330 deletions

View File

@@ -120,6 +120,7 @@ window.opalestate_messages = function() {
function make_ajax ( data, _this ) {
$( '.opalestate-message-notify', _this ).remove();
var action = $( _this ).data('action')? $( _this ).data('action') : 'send_email_contact';
console.log(action)
toggle_submit_button( _this );
$.ajax({
type : 'POST',
@@ -135,7 +136,10 @@ window.opalestate_messages = function() {
}
toggle_submit_button( _this );
}
}
},
error: function( response ) {
console.log(response)
}
});
}
@@ -260,4 +264,4 @@ window.opalestate_messages = function() {
window.wp = window.wp || {};
window.wp.opalestate_messages = opalestate_messages();
}( jQuery, window ));
}( jQuery, window ));