Uploaded image for project: 'Fluid Infusion'
  1. Fluid Infusion
  2. FLUID-3388

onSelect event in Reorderer is fired multiple times on a single mouse click.

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.2
    • None
    • Image Reorderer, Reorderer
    • None
    • Debian Lenny 64-bit, Iceweasel 3.0.6 (should be identical to Firefox 3.0.6 on other platforms).

    Description

      When clicking with the mouse on an image in the ImageReorderer, the onSelect event is fired multiple times instead of once. Should be valid for all Reorderer types since the logic is in Reorderer.js. Does not happen when selection is made using the keyboard. The number of times the event is fired is the same as the number of images in the Reorderer. Here's a simple testing scenario that shows the bug:

      1. Find and edit infusion/src/webapp/demos/reorderer/imageReorderer/js/imageReorderer.js by adding:

      • A counter variable right after the line demo.formBasedImageReorderer = function () {
        var i = 0;
      • A listener for the onSelect event in the options, passed to the reorderImages component
        listeners:
        Unknown macro: { onSelect}

        2. Open infusion/src/webapp/demos/reorderer/imageReorderer/html/imageReorderer.html in your browser.

      Expected result: The document title should increment with 1 on each click on any of the images.
      Actual result: The document title increments with 6 on each click on any of the images (6 is the number of images in the demo).

      Attachments

        1. FLUID-3388.patch
          2 kB
          Boyan Sheytanov

        Activity

          People

            jobara Justin Obara
            boyan Boyan Sheytanov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: