1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-09 16:26:59 +02:00

Fix jQuery 3.x issue where modal dialog buttons weren't displaying when launched from asmSelect edit links

This commit is contained in:
Ryan Cramer
2023-05-05 08:50:13 -04:00
parent 3b2c456c1a
commit daeb6d4087
2 changed files with 8 additions and 2 deletions

View File

@@ -938,6 +938,11 @@
var $iframe = pwModalWindow(href, {}, 'medium');
$iframe.on('load', function() {
// slight delay is necessary in jQuery 3.x, otherwise visible buttons found to be not visible
setTimeout(function() { iframeLoaded(); }, 100);
});
var iframeLoaded = function() {
var $icontents = $iframe.contents();
var buttons = [];
@@ -989,7 +994,8 @@
$button.hide();
});
$iframe.setButtons(buttons);
});
};
return false;
}

File diff suppressed because one or more lines are too long