diff options
| author | Murtaza Sultani <sultani@data-quest.de> | 2026-02-04 16:21:55 +0100 |
|---|---|---|
| committer | Murtaza Sultani <sultani@data-quest.de> | 2026-03-19 17:36:05 +0100 |
| commit | 8a6405d684e07de3f8740b11b4fba2d8b1e83a30 (patch) | |
| tree | 27b65d52b46d0e6ef88dd830901d83c63b7ba3b7 | |
| parent | a80af7aaf713fd255434c930e485355a9ae50ac0 (diff) | |
Remove console log
| -rw-r--r-- | app/views/lti/1p1/index/launch.php | 35 | ||||
| -rw-r--r-- | resources/vue/apps/lti/resources/Index.vue | 3 | ||||
| -rw-r--r-- | resources/vue/apps/responsive/ResponsiveNavigation.vue | 1 |
3 files changed, 28 insertions, 11 deletions
diff --git a/app/views/lti/1p1/index/launch.php b/app/views/lti/1p1/index/launch.php index 6b10bcd..e605b6c 100644 --- a/app/views/lti/1p1/index/launch.php +++ b/app/views/lti/1p1/index/launch.php @@ -7,13 +7,28 @@ */ ?> - -<form name="ltiLaunchForm" method="post" action="<?= htmlReady($launchUrl) ?>"> - <? foreach ($launchData as $key => $value): ?> - <input type="hidden" name="<?= htmlReady($key) ?>" value="<?= htmlReady($value, false) ?>" /> - <? endforeach ?> - <input type="hidden" name="oauth_signature" value="<?= $signature ?>" /> - <noscript> - <button><?= _('Anwendung starten') ?></button> - </noscript> -</form> +<!DOCTYPE html> +<html> + <head> + <meta charset="UTF-8" /> + <title data-original="<?= htmlReady(PageLayout::getTitle()) ?>"> + <?= htmlReady(PageLayout::getTitle() . ' - ' . Config::get()->UNI_NAME_CLEAN) ?> + </title> + <script type="text/javascript"> + document.addEventListener("DOMContentLoaded", function () { + document.ltiLaunchForm.submit(); + }); + </script> + </head> + <body> + <form name="ltiLaunchForm" method="post" action="<?= htmlReady($launchUrl) ?>"> + <? foreach ($launchData as $key => $value): ?> + <input type="hidden" name="<?= htmlReady($key) ?>" value="<?= htmlReady($value, false) ?>" /> + <? endforeach ?> + <input type="hidden" name="oauth_signature" value="<?= $signature ?>" /> + <noscript> + <button><?= _('Anwendung starten') ?></button> + </noscript> + </form> + </body> +</html> diff --git a/resources/vue/apps/lti/resources/Index.vue b/resources/vue/apps/lti/resources/Index.vue index 9ce282f..aec85b3 100644 --- a/resources/vue/apps/lti/resources/Index.vue +++ b/resources/vue/apps/lti/resources/Index.vue @@ -112,6 +112,9 @@ const fetchResources = async (_, offset = 0) => { onMounted(async () => { await fetchResources(); + + // Only for local development should be removed before merge + STUDIP.Cookie.set('responsive-navigation-hash', null) }); </script> diff --git a/resources/vue/apps/responsive/ResponsiveNavigation.vue b/resources/vue/apps/responsive/ResponsiveNavigation.vue index ead0924..11039b1 100644 --- a/resources/vue/apps/responsive/ResponsiveNavigation.vue +++ b/resources/vue/apps/responsive/ResponsiveNavigation.vue @@ -487,7 +487,6 @@ export default { // Navigation object was sent, store in cache cache.set('navigation', navigation.navigation); - console.log('set cache: ', navigation.navigation) STUDIP.Cookie.set('responsive-navigation-hash', navigation.hash); return navigation.navigation; |
