mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Opening tab from zoff now for fixing the mailservice
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
2
static/dist/main.min.js
vendored
2
static/dist/main.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -170,7 +170,9 @@ var Helper = {
|
|||||||
|
|
||||||
send_mail: function(from, message){
|
send_mail: function(from, message){
|
||||||
|
|
||||||
|
|
||||||
if(from != "" && message != ""){
|
if(from != "" && message != ""){
|
||||||
|
/*
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
data: {from: from, message: message},
|
data: {from: from, message: message},
|
||||||
@@ -184,7 +186,14 @@ var Helper = {
|
|||||||
$("#contact-container").html("Something went wrong, sorry about that. You could instead try with your own mail-client: <a title='Open in client' href='mailto:contact@zoff.no?Subject=Contact%20Zoff'>contact@zoff.no</a>")
|
$("#contact-container").html("Something went wrong, sorry about that. You could instead try with your own mail-client: <a title='Open in client' href='mailto:contact@zoff.no?Subject=Contact%20Zoff'>contact@zoff.no</a>")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});*/
|
||||||
|
var from = $("#contact-form-from").val();
|
||||||
|
var message = $("#contact-form-message").val();
|
||||||
|
$("#contact-container").empty();
|
||||||
|
window.open("mailto:contact@zoff.no?Subject=Contact%20Zoff&Body=" + message + "'", "_blank");
|
||||||
|
$("#contact-container").html("Something went wrong, sorry about that. You could instead try with your own mail-client: <a title='Open in client' href='mailto:contact@zoff.no?Subject=Contact%20Zoff&Body=" + message + "'>contact@zoff.no</a>");
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user