mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
fixed mailthingy, so it works on both channel and frontpage
This commit is contained in:
2
static/dist/embed.min.js
vendored
2
static/dist/embed.min.js
vendored
File diff suppressed because one or more lines are too long
2
static/dist/frontpage.min.js
vendored
2
static/dist/frontpage.min.js
vendored
File diff suppressed because one or more lines are too long
4
static/dist/main.min.js
vendored
4
static/dist/main.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -172,6 +172,12 @@ var Helper = {
|
|||||||
|
|
||||||
|
|
||||||
if(from != "" && message != ""){
|
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({
|
$.ajax({
|
||||||
type: "POST",
|
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() {
|
Element.prototype.remove = function() {
|
||||||
this.parentElement.removeChild(this);
|
this.parentElement.removeChild(this);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -350,21 +350,6 @@ function initfp(){
|
|||||||
|
|
||||||
window.initfp = initfp;
|
window.initfp = initfp;
|
||||||
|
|
||||||
|
|
||||||
$(document).on('submit', '#contact-form', function(e){
|
|
||||||
e.preventDefault();
|
|
||||||
|
|
||||||
var message = $("#contact-form-message").val();
|
|
||||||
var from = $("#contact-form-from").val();
|
|
||||||
|
|
||||||
$("#submit-contact-form").addClass("hide");
|
|
||||||
$("#send-loader").removeClass("hide");
|
|
||||||
$("#contact-form-from").attr("disabled", "true");
|
|
||||||
$("#contact-form-message").attr("disabled", "true");
|
|
||||||
|
|
||||||
Helper.send_mail(from, message);
|
|
||||||
});
|
|
||||||
|
|
||||||
$(document).on('click', '#cookieok', function() {
|
$(document).on('click', '#cookieok', function() {
|
||||||
$(this).fadeOut(function(){
|
$(this).fadeOut(function(){
|
||||||
$(this).remove();
|
$(this).remove();
|
||||||
|
|||||||
Reference in New Issue
Block a user