|
|
|
|
@ -343,25 +343,18 @@ if (EXPO.common){ |
|
|
|
|
timer = setTimeout(function () { |
|
|
|
|
$.post($form.data('validate-url'), $form.serializeArray(), function (data) { |
|
|
|
|
if (data.success){ |
|
|
|
|
$form.find('button').prop('disabled', false); |
|
|
|
|
$(".error", $form).remove(); |
|
|
|
|
$(".required.err", $form).removeClass("required err"); |
|
|
|
|
|
|
|
|
|
$(".pwf-line .msg-help",$form).each(function () { |
|
|
|
|
var $this = $(this), |
|
|
|
|
defaultT = $this.attr("data-default"); |
|
|
|
|
|
|
|
|
|
if($.trim(defaultT) != '') { |
|
|
|
|
$this.html('').text(defaultT); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
//$resend.attr('data-email',mailVal);
|
|
|
|
|
// $.fancybox.close(true);
|
|
|
|
|
// $.fancybox('#pw-reg-complete');
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
else{ |
|
|
|
|
$form.find('button').prop('disabled', true); |
|
|
|
|
} else { |
|
|
|
|
// delete previous error messages
|
|
|
|
|
$(".error", $form).remove(); |
|
|
|
|
$(".required.err", $form).removeClass("required err"); |
|
|
|
|
@ -378,11 +371,14 @@ if (EXPO.common){ |
|
|
|
|
var $input = $("#id_" + index, $form), |
|
|
|
|
$error = $("<div/>").attr("class", "error").append(value), |
|
|
|
|
$msg = $input.closest(".pwf-line").find(".msg-help"); |
|
|
|
|
|
|
|
|
|
if ($.trim($input.val()).length > 0){ |
|
|
|
|
$input.parent().addClass('required err'); |
|
|
|
|
$input.parents('.pwf-line').addClass('has_error'); |
|
|
|
|
$msg.attr("data-default", $msg.text()); |
|
|
|
|
$msg.text('').prepend($error); |
|
|
|
|
$msg.show(); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
@ -439,7 +435,8 @@ if (EXPO.common){ |
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
/** |
|
|
|
|
* very simple (probably in much need of improvement) Jquery plugin I've thrown together that will get you the value of an inline style property |
|
|
|
|
* very simple (probably in much need of improvement) Jquery plugin I've thrown together |
|
|
|
|
* that will get you the value of an inline style property |
|
|
|
|
*/ |
|
|
|
|
(function ($) { |
|
|
|
|
$.fn.inlineStyle = function (prop) { |
|
|
|
|
|