1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-09 00:06:55 +02:00
This commit is contained in:
Ryan Cramer
2024-10-04 15:19:48 -04:00
parent 4f7161fd49
commit 1c0aa2d248
2 changed files with 2 additions and 1 deletions

View File

@@ -214,6 +214,7 @@ function pwModalWindow(href, options, size) {
} else {
url = href + (href.indexOf('?') > -1 ? '&' : '?') + 'modal=1';
}
if(url.indexOf('%3F')) url = url.replace('%3F', '?');
$iframe = jQuery('<iframe class="pw-modal-window" frameborder="0" src="' + url + '"></iframe>');
$iframe.attr('id', 'pw-modal-window-' + (pwModalWindows.length+1));
pwModalWindows[pwModalWindows.length] = $iframe;

File diff suppressed because one or more lines are too long