/**
* Front.js
*
* @author    Empty
* @copyright 2007-2016 PrestaShop SA
* @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*/

$(function(){
    $("#customer-information form").submit(function() {
        setTimeout(function(){
            $("#customer-information #first_name").val("");
            $("#customer-information #last_name").val("");
            $("#customer-information #email").val("");
            $("#customer-information #phone").val("");
            $('#customer-information #html_comment').val("");
        },5000);
        /*if (getQueryVar("error-pdf") == 1) {
            alert("Il manque une information obligatoire à votre devis!");
        }*/
    });
    /*function getQueryVar(variable) {
        var query = window.location.search.substring(1);
        var vars = query.split("&");
        for (var i=0;i<vars.length;i++) {
            var pair = vars[i].split("=");
            if(pair[0] == variable){return pair[1];}
        }
        return(false);
    }*/
});