mirror of
https://github.com/KevinMidboe/zoff.git
synced 2026-02-12 04:19:32 +00:00
fixed mailthingy, so it works on both channel and frontpage
This commit is contained in:
@@ -172,6 +172,12 @@ var Helper = {
|
||||
|
||||
|
||||
if(from != "" && message != ""){
|
||||
|
||||
$("#submit-contact-form").addClass("hide");
|
||||
$("#send-loader").removeClass("hide");
|
||||
$("#contact-form-from").attr("disabled", "true");
|
||||
$("#contact-form-message").attr("disabled", "true");
|
||||
|
||||
/*
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
@@ -199,6 +205,16 @@ var Helper = {
|
||||
|
||||
}
|
||||
|
||||
$(document).on('submit', '#contact-form', function(e){
|
||||
e.preventDefault();
|
||||
|
||||
var message = $("#contact-form-message").val();
|
||||
var from = $("#contact-form-from").val();
|
||||
|
||||
Helper.send_mail(from, message);
|
||||
});
|
||||
|
||||
|
||||
Element.prototype.remove = function() {
|
||||
this.parentElement.removeChild(this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user