Dealing with iframes. postMessage to parent iframe when certain things are opened/viewed.
This commit is contained in:
@@ -3,6 +3,7 @@ export let log_lvl = 1;
|
||||
// *** Import Svelte core
|
||||
import { createEventDispatcher, onDestroy, onMount } from 'svelte';
|
||||
import { fade } from 'svelte/transition';
|
||||
import { browser } from '$app/environment';
|
||||
// import Editor from '@tinymce/tinymce-svelte';
|
||||
|
||||
import type { key_val } from '$lib/ae_stores';
|
||||
@@ -25,6 +26,10 @@ let disable_submit_btn = true;
|
||||
|
||||
let event_location_select_option_li = {}; // This is a list (dict) of key value pairs
|
||||
|
||||
$: if (browser) {
|
||||
document.body.scrollIntoView();
|
||||
}
|
||||
|
||||
if ($idaa_slct.event_id) {
|
||||
// console.log(`Event ID selected: ${$idaa_slct.event_id}`);
|
||||
// console.log(`Event Object selected: ${$lq__event_obj}`)
|
||||
|
||||
@@ -17,6 +17,8 @@ if ($idaa_slct.event_id) {
|
||||
}
|
||||
|
||||
$: if (browser && $lq__event_obj?.event_id) {
|
||||
document.body.scrollIntoView();
|
||||
|
||||
const url = new URL(location);
|
||||
url.searchParams.set('event_id', $lq__event_obj?.event_id);
|
||||
history.pushState({}, '', url);
|
||||
|
||||
Reference in New Issue
Block a user