JavaScript JQGRID - JQMODAL: Disable close modal when click on overlay

I am trying to disable close on click when clicking the overlay behind the edit form Modal that opens when I edit a row, but I dont know how I have to do it. I were trying something like:

editOptions: {
    url: 'foo/edit.html',
    mtype: 'PUT',

    //some other options
    closeAfterEdit: true,
    reloadAfterSubmit: true,
    onClose: function() {
        alert('Hi ^_^');
    }
}

But this only triggers if I click at 'X' button. If I click at overlay (out of modal) it closes the modal and that alert never triggers. What I want is to disable that closing function when I click out of modal or remove that overlay.

Thanks.

Answer:1

Here I write some js code in kettle Modified Java Script Value step (which use Rhino engine), to use java API. Actually, all the code works well. For example: var fileInputStream = new java.io....

Here I write some js code in kettle Modified Java Script Value step (which use Rhino engine), to use java API. Actually, all the code works well. For example: var fileInputStream = new java.io....

I just got to know about the Symbol Animation offered by Google API. Every thing is working fine in my code but I just want to know if I can pass a Image instead of a symbol in the below code. var ...

I just got to know about the Symbol Animation offered by Google API. Every thing is working fine in my code but I just want to know if I can pass a Image instead of a symbol in the below code. var ...

  1. google maps using latitude longitude

This is really puzzling me. Any idea why this would be happening? This code does work: $.ajax({ type: 'GET', dataType: 'json', url: 'http://localhost:3235/Users/...

This is really puzzling me. Any idea why this would be happening? This code does work: $.ajax({ type: 'GET', dataType: 'json', url: 'http://localhost:3235/Users/...

I have overlapping elements (images, to be precise), and I need them all to activate their respective hover effects if hovered over, even if they are not on top. I feel like this should be pretty ...

I have overlapping elements (images, to be precise), and I need them all to activate their respective hover effects if hovered over, even if they are not on top. I feel like this should be pretty ...