Uploaded image for project: 'Fluid Infusion'
  1. Fluid Infusion
  2. FLUID-32 Implement a "shifting" algorithm for re-ordering elements.
  3. FLUID-856

Nested Reorderers: Moving an 'outer' orderable causes 'inner' Reorderer to be created a second time.

    XMLWordPrintable

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.1, 0.3, 0.4beta1, 0.4, 0.5beta1
    • 0.5
    • Reorderer
    • None

    Description

      In a case of nested Reorderers (for example, the uPortal sample page with the Lightbox in one of the portlets):

      If an orderable item of the outer Reorderer, one containing a Reorderer (e.g. the Lightbox portlet), is moved, the inner Reorderer (the Lightbox) is re-instantiated. Specifically, the script inside the HTML of the portlet is re-executed.

      Oddly, this only happens the first time you move it, and never again.

      I've created a simple test file to make it easier to see:
      http://build.fluidproject.org/fluid/tests/fluid-tests/manual/nested-reorderers/nested.html
      In this HTML file, the script tags have console logs. Open the console to see when the scripts are executed.

      If you move either of the list items that have inner lists, you'll see that the script is executed again (but only the first time you move it).

      This problem does not happen if all of the reorderers are instantiated in a single script block at the end of the file.

      Attachments

        Issue Links

          Activity

            People

              jobara Justin Obara
              anastasia Anastasia Cheetham
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: