closing modal window automatically?

Please report bugs and any annoyances here. Kindly include all possible details: steps to reproduce, expected result, actual result, screenshots, ... etc.
Post Reply
User avatar
onoehring
AppGini Super Hero
AppGini Super Hero
Posts: 1156
Joined: 2019-05-21 22:42
Location: Germany
Contact:

closing modal window automatically?

Post by onoehring » 2022-11-22 16:13

Hi,

when I open a modal window (subrecord) using the "eye" symbol next to a dropdown, I am wondering if there is a chance to have a modal window close automatically after it's record has been saved.
It seems, that when adding a new record in the details tabs using modal windows, the modal window is closed automatically.
Also, when deleting a record the modal window closes.

Suggestion
If there is currently no way to accomplish this, I want to suggest, to have a checkbox in AG (next to my red circle) which can be checked to automatically close a (modal) window / return to the previous "parent record" if the details are opened in the same window.
modal_window.png
modal_window.png (121.23 KiB) Viewed 637 times
Olaf

User avatar
D Oliveira
AppGini Super Hero
AppGini Super Hero
Posts: 347
Joined: 2018-03-04 09:30
Location: David

Re: closing modal window automatically?

Post by D Oliveira » 2022-11-23 00:37

you can use the .click() js method on the element that closes the modal an run this on the parent js in case you wanna trigger any action after modal has been closed:

Code: Select all

$j(function() {
    $j(window).on('child-modal-closed', function(e, data) {
        // do something
        $j('form').submit(); // reload the current DV
    });
});

Post Reply