I want to share the following in case somebody need to customize this file. Following your sample I found I can display custom messages based on the module the function is called from.
In this case I’m presenting a message box when inline edit occurs on the Opportunities module:
function validateFormAndSave(field,id,module,type){
$("#inlineEditSaveButton").on('click', function () {
var valid_form = check_form("EditView");
if(valid_form){
// HERE MY CODE to identify the module I want to show the message
if (module == "Opportunities"){
handleSave(field, id, module, type)
clickListenerActive = false;
$('[field="'+field+'"]').addClass('fix-inlineEdit-textarea');
// HERE we user the ALERT BOX to present the message on the Opportunities module only
alert("Hello! I am an alert box!!");
}else{
handleSave(field, id, module, type)
clickListenerActive = false;
$('[field="'+field+'"]').addClass('fix-inlineEdit-textarea');
};
}else{
$('[field="'+field+'"]').removeClass('fix-inlineEdit-textarea');
return false
};
});
// also want to save on enter/return being pressed
$(document).keypress(function(e) {
if (e.which == 13 && !e.shiftKey) {
e.preventDefault();
$("#inlineEditSaveButton").click();
}
});
}
Thanks,