FLUID-904: Uploader inside a table element - removing a file from the list causes the uploader to disappear.

Metadata

Source
FLUID-904
Type
Bug
Priority
Blocker
Status
Closed
Resolution
Fixed
Assignee
Anastasia Cheetham
Reporter
Michelle D'Souza
Created
2008-07-15T16:14:04.000-0400
Updated
2011-02-22T16:27:48.322-0500
Versions
  1. 0.4beta1
Fixed Versions
  1. 0.4
Component
  1. Uploader

Description

If the Uploader happens to be inside a table, clicking on the 'Remove' button causes the entire Uploader to disappear.

dev-iteration39

Comments

  • Anastasia Cheetham commented 2008-07-16T15:24:23.000-0400

    What is happening is this:

    The Uploader searches for the table row that the Remove button is inside of, to know what to remove from the list
    $(this).parents('tr') // here, 'this' is the remove button

    However, it is finding all ancestor table rows - including the row that the Uploader is inside of, and removing all of them.

  • Anastasia Cheetham commented 2008-07-16T15:26:48.000-0400

    The solution to this problem is to search NOT for a 'tr' element, but rather for the thing that is identified as the row we want to remove, i.e. to use some other form of specific naming of the thing, and not it's DOM element type.

    In this case, I'm implementing a fix that looks for the parent with the correct ID.

  • Michelle D'Souza commented 2011-02-22T16:27:48.321-0500

    Closing issues that were resolved for 1.0 and earlier releases.