AlxGr
25 March 2021 15:28
5
Deberías probas a modificar la vista de detalles (detail view) aunque no creo que funcione.
La otra forma sería modificar un archivo del core. El archivo /include/InlineEditing/inlineEditing.js
contiene toda la funcionalidad de inline edit
Checa estos links para que te de una idea:
After hours of re-search I find 1 one to do it.
In a custom js file I’ve put some code to detect inline edit :
$('div.detail-view-row-item').dblclick(function(e)
{
if ($(this).children().hasClass('inlineEditActive'))
{
var ElementCourrant = $(this).children('div').eq(1);
var ValueElement = (ElementCourrant).children('form').find('input').attr( "value" );
$(ElementCourrant).css('white-space','inherit');
//Touche entrée -> voir inlineEditSaveButton !
$(document).keypress(functio…
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…
1 Like