Ticket Information - ID: #304
ID: | Category: | Severity | Reproducibility | Date Submitted | Updated By: |
---|---|---|---|---|---|
0000304 | Bug Reporting | normal | always | 11/25/09 02:20AM | lozertuser |
|
|
Summary: | Remove Favorites returns to page=1 |
Description: | When removing a favorite from a page other than 1, it returns to page 1. (javascript bug) Possible Solutions: AJAX jQuery removal of <span class="thumb">? or make it not visible. |
Additional Info: | jQuery::: $(".thumb > a:last").click(function() { var pid = $(".thumb > a:first").attr('id'); $.get({ url: "index.php", data: { page : 'favorites', s : 'delete', id : pid } }); $(this).parent().hide(); return false; }); Remove the "onclick" jscript from the "remove" button, and use the script above in a conjunction with jQuery. www.jQuery.com Alternative adjust the php, to return to that page by including the &pid=<pageid> in the onClick document.page="" This alternative will require more maintenance when the favorite page is updated. (IE, adding favorite folders, searchable favorites, etc.) |