[Koha-bugs] [Bug 2971] New: Shopping cart popup's dropshadow leaks memory

bugzilla-daemon at pippin.metavore.com bugzilla-daemon at pippin.metavore.com
Thu Feb 19 19:15:19 CET 2009


http://bugs.koha.org/cgi-bin/bugzilla/show_bug.cgi?id=2971

           Summary: Shopping cart popup's dropshadow leaks memory
           Product: Koha
           Version: HEAD
          Platform: PC
               URL: koha-tmpl/opac-tmpl/prog/en/js/basket.js
        OS/Version: Linux - Debian
            Status: NEW
          Severity: minor
          Priority: P3
         Component: OPAC
        AssignedTo: sedwards at alloycomputing.com
        ReportedBy: sedwards at alloycomputing.com
         QAContact: koha-bugs at lists.koha.org


The javascript file basket.js contains several functions for displaying popup
notifications for the user's shopping cart button.  A jquery plug-in function,
'dropShadow' is used to create a shadow for the popup.  When the popup is no
longer needed, the shadow is removed with the 'hide' function.  Every time the
user hovers over the cart or otherwise causes the popup to display, this
results in the creation of a new dropShadow object.  The resulting DOM keeps
growing.

The correct way to dispose of the shadow is to call 'removeShadow'.




------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.



More information about the Koha-bugs mailing list