Jump to content


Insert log when cancel

Flexigrid Cancel Event

  • Please log in to reply
1 reply to this topic

#1 Luiz_Techboard_BR

Luiz_Techboard_BR

    Newbie

  • Members
  • Pip
  • 4 posts

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

 

.



#2 Luiz_Techboard_BR

Luiz_Techboard_BR

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 21 January 2021 - 02: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






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users