Rev 23026 | Rev 23076 | Go to most recent revision | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed
$().ready(function() {$("form#update-retailer-details-form input").each(function(){$(this).attr('autocomplete', 'off');});});$().ready(function() {$('#update-retailer-details-form').validate({submitHandler: function (form, event) {event.preventDefault();if(validateRetailerDetails()){alert("Please fix errors");return false;}var json = retailerDetailsJson();console.log("retailerJson = " + json);if(confirm("Are you sure you want to update Retailer Details!") == true){var response = doPutAjaxRequestWithJson("retailerDetails",json);$('#retailer-details-container').html(response);return false; // required to block normal submit since you used ajax}}});});