Details

    • Type: Bug Fix
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.0-m4
    • Fix Version/s: 2.2.0-rc1
    • Component/s: Development
    • Security Level: Public (Public: Anyone can view)
    • Labels:
      None
    • Rice Module:
      KRAD
    • KAI Review Status:
      Not Required
    • KTI Review Status:
      Not Required

      Description

      JavaScript function _initAndOpenLightbox in krad.ulility.js still contains some code that is supposed to solve the CSS issues with lightboxes. Since the lightbox is based on the portal it temporarily removes the portal's CSS and replaces it with the app's lightbox CSS. Of course this cause the underlying page of the lightbox to be displayed incorrectly but the lightbox itself would be correct. For it to work, logic needs to be added if it's in a cross domain situation or not . For the first case parent.jQuery.fancybox(..) and for the second case top.jQuery.fancybox(...) need to be used to make it work. Also, the application context (kr-dev) needs to be gotten dynamically just like it is done in iframePortletContainer.tag for finding the location of resize_itermediate.html.

      However it was decided to remove this hack since it doesn't work well. Instead it is simplified down to

      // Open the light box
      jQuery.fancybox(options);
      setupLightboxForm();
      

      With this the lightbox won't cover the whole portal but just the context area. But the needed CSS and JavaScript files for the lightbox are available.

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              cniesen Claus Niesen
              Reporter:
              cniesen Claus Niesen
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: