FEATURE #2341 @4h: add basics for template

This commit is contained in:
Michal Kváček
2017-02-23 18:22:33 +01:00
parent 5132278ee1
commit 507e186713
30 changed files with 23157 additions and 0 deletions
@@ -0,0 +1,21 @@
$(document).foundation()
$ ('#formSend').click (function () {
$ (this).value = 'Odesílám...';
var form = $(this).closest('form');
$.ajax ({
url: form.attr('action'),
method: 'post',
data: form.serialize ()
}).done (function (resp) {
if (resp.status == 'success') {
alert ('Zpráva úspěšně odeslána. Odpovíme co nejdříve!');
window.top.location.reload ();
} else {
alert (resp.message);
}
$ (this).value = "ODESLAT";
});
});