Sha256: e1cece83a0fad0f8ef2a4a8ba5362707e750534cc6de0193fd0c65c065a6c562
Contents?: true
Size: 1.59 KB
Versions: 3
Compression:
Stored size: 1.59 KB
Contents
function populateServerSideErrorsInDetailsBox(instanceName, errorMessages) { // Removing the old server validation errors if any $("#div_"+ instanceName +"_server_validation_errors").remove(); // Creating a div to hold multiple error messages. errorMessageHolder = "<div id='div_"+ instanceName +"_server_validation_errors' style=\"margin-bottom:5px;\"></div>" $("#div_"+ instanceName +"_details").prepend(errorMessageHolder); jQuery.each(errorMessages, function(i, message) { errorHtml = "<div class=\"alert alert-danger\" data-alert=\"alert\" style=\"margin-bottom:5px;\">"+ message +"</div>" $("#div_"+ instanceName +"_server_validation_errors").prepend(errorHtml); }); } function populateServerSideErrorsInOverlay(instanceName, errorMessages) { // Removing the old server validation errors if any $("#div_"+ instanceName +"_server_validation_errors").remove(); $("#div_"+ instanceName +"_js_validation_error").remove(); // Creating a div to hold multiple error messages. errorMessageHolder = "<div id='div_"+ instanceName +"_server_validation_errors' style=\"margin-bottom:5px;\"></div>" $("#div_modal_generic div.modal-body-main").prepend(errorMessageHolder); jQuery.each(errorMessages, function(i, message) { errorHtml = "<div class=\"alert alert-danger\" data-alert=\"alert\" style=\"margin-bottom:5px;\">"+ message +"</div>" $("#div_"+ instanceName +"_server_validation_errors").prepend(errorHtml); }); } function populateServerSideErrors(instanceName, errorMessages) { populateServerSideErrorsInOverlay(instanceName, errorMessages); }
Version data entries
3 entries across 3 versions & 1 rubygems