⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Insert log when cancel



Luiz_Techboard_BR
  • profile picture
  • Member

Posted 21 January 2021 - 12:52 PM

Hi,

 

 

We use GC v.3.11 and facing the following problem:  need to create a call via ajax to my controller so that when user clicks on the 'cancel-button' (Flexigrid theme) an insert of the Log of this action will be made.
I tried to do this in flexigrid-add.js, but the click event of the button is not 
triggered

 

.


Luiz_Techboard_BR
  • profile picture
  • Member

Posted 21 January 2021 - 14:13 PM

I did it, can close the topic:

 

need to put the ajax inside 

 

            $('#cancel-button').click(function(){
                if( confirm( message_alert_add_form ) )
                {

 

flexigrid-add.js