Skip to content

Commit

Permalink
Fix #17892 - Closing index edit modal and reopening causes it to fire…
Browse files Browse the repository at this point in the history
… twice

Signed-off-by: William Desportes <williamdes@wdes.fr>
  • Loading branch information
williamdes committed Nov 14, 2022
1 parent f89cb70 commit 1f2af42
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions js/src/functions.js
Expand Up @@ -3434,10 +3434,8 @@ Functions.indexDialogModal = function (routeUrl, url, title, callbackSuccess, ca
'<span class="visually-hidden">' + Messages.strLoading + '</span></div>';
});

/**
* @var button_options Object that stores the options
* passed to jQueryUI dialog
*/
// Remove previous click listeners from other modal openings (issue: #17892)
$('#indexDialogModalGoButton').off('click');
$('#indexDialogModalGoButton').on('click', function () {
/**
* @var the_form object referring to the export form
Expand Down

0 comments on commit 1f2af42

Please sign in to comment.