Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-39993

Don't enforce the presence of dashboard dom elements on dashboard.,

    XMLWordPrintable

Details

    Description

      In Confluence 5.9.1-Beta4 and Confluence 5.9.1-Beta11 an error is thrown if the following new dashboard elements aren’t present in the DOM when loading the dashboard:

      #sidebar-discover
      #sidebar-my-work
      #sidebar-my-spaces
      .content-body
      

      Using the RefinedWiki add-on RefinedTheme for Confluence (Marketplace link) provides you with a fully customizable dashboard, allowing you to add any macro or custom content. As such these elements aren’t necessarily present, causing an error. The error in turn causes following scripts not to load in certain browsers like firefox and IE, and the user ends up with a blank page.

      The fix would be to not throw errors if the elements aren’t found. As far as I could tell from the batch this is done in a function _ensureElement in the following resource:

      /* module-key = 'com.atlassian.confluence.plugins.confluence-dashboard:confluence-dashboard-resources', location = 'js/confluence-dashboard.js' */
      

      Best regards,
      Dennis Andersen
      RefinedWiki

      Attachments

        Issue Links

          Activity

            People

              nbhawnani Niraj Bhawnani
              361c988070e3 Dennis Andersen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: