Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-74049

Provision of a Javascript event that is fired before navigating away from a macro

    XMLWordPrintable

Details

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      It is common practice to register for the beforeunload event in order to perform some processing prior to the window being discarded. The most common example involves saving user entered information. Unfortunately, however, the event is not fired within a macro when the user navigates away using the Confluence UI. This is likely due to Confluence's single page architecture. 

      It is suggested that a new Javascript API method be provided: AP.confluence.onMacroClosingEvent()

      If registered, Confluence would call this method prior to closing the macro. To prevent apps from inadvertently causing usability issues, a timeout can be implemented to ensure unresponsive apps do not block the user's navigation.

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            dmorrow@atlassian.com Dugald Morrow
            Votes:
            4 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: