"Remove selected" toggle affects both expired and unexpired list

Description

If user goes to the list of expired offers in UBookBooks and selects an item in the list, the "Removed selected" link at the top toggles from simple text to an active link. If the user then toggles back to the unexpired offers, neither the active link nor the simple text is showing.

When toggling between the simple text and the active link for "Remove selected", it might help to limited it to the div that is currently showing (either the expired offers or the unexpired offers). That can be selected using this class name: activeOffersList. That is used in other places in the scripts to limit actions to the list that is currently showing. Here's an example from tbook-user.js:

var url = $('.activeOffersList .remove_form').attr('action');

The divs for both lists contain form with class="remove_form". We are able to select just the one from the div that is currently showing by using the selector in this way: '.activeOffersList .remove_form'.

Activity

Show:

Gonzalo Silverio April 8, 2009 at 7:00 AM

r59718

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Created April 7, 2009 at 7:13 PM
Updated January 9, 2013 at 3:44 PM
Resolved April 8, 2009 at 7:00 AM