Rename openFullscreenIframe() to openModalIframe() and handle the back button properly

This commit is contained in:
Kijin Sung 2025-05-20 17:58:21 +09:00
parent e60bbb7e7c
commit 5bddaa1bd3
3 changed files with 41 additions and 21 deletions

View file

@ -211,7 +211,7 @@ function openComponent(component_name, editor_sequence, manual_url) {
if(typeof(current_mid)!="undefined" && current_mid) popup_url += "&mid="+escape(current_mid);
if (navigator.userAgent.match(/mobile/i)) {
openFullScreenIframe(popup_url, 'editorComponent');
openModalIframe(popup_url, 'editorComponent');
} else {
popopen(popup_url, 'editorComponent');
}
@ -244,7 +244,7 @@ function editorSearchComponent(evt) {
if(editorMode[editor_sequence]=='html') return;
var popup_url = request_uri+"?module=widget&act=dispWidgetGenerateCodeInPage&selected_widget="+widget+"&module_srl="+editor_sequence
if (navigator.userAgent.match(/mobile/i)) {
openFullScreenIframe(popup_url, 'GenerateCodeInPage');
openModalIframe(popup_url, 'GenerateCodeInPage');
} else {
popopen(popup_url, 'GenerateCodeInPage');
}