Commit 34719ea4 by Angel MAS

swal submit

parent 9461ae98
var start;
var finish;
jQuery(document).ready(function($) {
start = new Date();
});
jQuery("#landing_form").submit(function($){
finish= new Date();
jQuery(function ($) {
start = new Date();
$('form').submit(function(){
finish= new Date();
var tiempo = (+finish - +start) / 1000;
jQuery("#landing_form").append('<input type="hidden" name="session_time" value="'+tiempo+'" />');
});
\ No newline at end of file
$('input[type=submit]', this).attr('disabled', 'disabled');
swal({
text: "Espera por favor, estamos validando tus datos de registro...",
icon: "http://www.hullvanhire.co.uk/public/themes/vanhire/images/loading.gif",
button: false,
closeOnEsc: false,
closeOnClickOutside: false,
closeOnConfirm: false,
closeOnCancel: false
});
$('body').keypress(function(event){
if (event.keyCode == 10 || event.keyCode == 13)
swal({
text: "Espera por favor, estamos validando tus datos de registro...",
icon: "http://www.hullvanhire.co.uk/public/themes/vanhire/images/loading.gif",
button: false,
closeOnEsc: false,
closeOnClickOutside: false,
closeOnConfirm: false,
closeOnCancel: false
});
});
});
});
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment