OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Fix onboarding video modal: (#9511)
Henriette Dargea0d7d213a9e9
diff --git a/frontend/src/app/shared/components/modal/modal-wrapper-augment.service.ts b/frontend/src/app/shared/components/modal/modal-wrapper-augment.service.tsindex 56b61ce3f8f..59c606df215 100644--- a/frontend/src/app/shared/components/modal/modal-wrapper-augment.service.ts+++ b/frontend/src/app/shared/components/modal/modal-wrapper-augment.service.ts@@ -48,7 +48,7 @@ export class OpModalWrapperAugmentService {* Create initial listeners for Rails-rendered modals*/public setupListener() {- const matches = this.documentElement.querySelectorAll('section[data-augmented-model-wrapper]');+ const matches = this.documentElement.querySelectorAll('[data-augmented-model-wrapper]');for (let i = 0; i < matches.length; ++i) {this.wrapElement(jQuery(matches[i]) as JQuery);}@@ -85,7 +85,7 @@ export class OpModalWrapperAugmentService {let modalBody = wrappedElement.html();if (iframeUrl) {- modalBody = this.appendIframe(modalBody, iframeUrl);+ modalBody = this.appendIframe(wrappedElement, iframeUrl);}this.opModalService.show(@@ -98,13 +98,12 @@ export class OpModalWrapperAugmentService {);}- private appendIframe(body:string, url:string) {- const subdom = jQuery(body);+ private appendIframe(body:JQuery<HTMLElement>, url:string) {const iframe = jQuery('<iframe frameborder="0" height="400" allowfullscreen>></iframe>');iframe.attr('src', url);- subdom.find(iframeSelector).append(iframe);+ body.find(iframeSelector).append(iframe);- return subdom.html();+ return body.html();}}