Buttons more matching throughout the site

This commit is contained in:
Kasper Rynning-Tønnesen
2017-06-16 20:17:18 +02:00
parent 67ab79aa68
commit 4595a70239
7 changed files with 26 additions and 16 deletions

View File

@@ -244,16 +244,6 @@ 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);
};

View File

@@ -1570,6 +1570,20 @@ $(document).on( "click", ".result-object", function(e){
}
});
$(document).on('click', '#submit-contact-form', function(e) {
e.preventDefault();
$("#contact-form").submit();
});
$(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);
});
$(document).on( "click", "#add-many", function(e){
var id = $(this).attr("data-video-id");
var title = $(this).attr("data-video-title");