(function ($) {
// Init Page
var pageInfo;
Customerville.pageInit(function () {
pageInfo = $('#hiddenFields');
$.unblockUI();
$('form').submit(function (evt) {
BlockUI();
});
$('.page_contact_info form').each(function () {
// append an icon onto the date text field and when its click...
// give the text field focus (which will bring up the date calendar)
var $dateIcon = $('
', { id: "dateicon", "class": "dateicon" })
.appendTo($("#QUEST112_textfld").parent())
.on('click', function (evt) {
evt.preventDefault();
$("#QUEST112_textfld").focus();
});
$("#QUEST112_textfld").datepicker({
maxDate: "today",
showButtonPanel: true
});
});
});
function BlockUI() {
$.blockUI({
message: $('.page_loading_rect'),
css: {
width: "inherit",
left: "49%",
padding: "inherit",
border: "inherit"
},
overlayCSS: {
opacity: 0.0
}
});
}
})(jQuery);