mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-06 21:21:15 -07:00
Fix confirm modal click handler triggering multiple times
This commit is contained in:
parent
876741b40b
commit
e9762cdef6
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ function showMsg(msg, loader, timeout, ms, error) {
|
|||
function confirmAjaxCall(url, msg, data, loader_msg, callback) {
|
||||
$("#confirm-message").html(msg);
|
||||
$('#confirm-modal').modal();
|
||||
$('#confirm-modal').one('click', '#confirm-button', function () {
|
||||
$('#confirm-modal').off('click', '#confirm-button').one('click', '#confirm-button', function () {
|
||||
if (loader_msg) {
|
||||
showMsg(loader_msg, true, false);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue