[Laszlo-checkins] r10484 - openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml

bargull@openlaszlo.org bargull at openlaszlo.org
Fri Jul 25 11:44:05 PDT 2008


Author: bargull
Date: 2008-07-25 11:44:02 -0700 (Fri, 25 Jul 2008)
New Revision: 10484

Modified:
   openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js
Log:
Change 20080725-bargull-x7A by bargull at dell--p4--2-53 on 2008-07-25 15:24:44
    in /home/Admin/src/svn/openlaszlo/trunk
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: don't override ids

New Features:

Bugs Fixed: LPP-6699

Technical Reviewer: max
QA Reviewer: (pending)
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details:
Check for existing ID before annotating div with the sprite-UID.
    

Tests:



Modified: openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js	2008-07-25 18:42:44 UTC (rev 10483)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js	2008-07-25 18:44:02 UTC (rev 10484)
@@ -126,9 +126,9 @@
     }
 
     if ($debug) {
-        // annotate divs with sprite IDs
-        this.__LZdiv.id = 'sprite_' + this.uid;
-        this.__LZclickdiv.id = 'click_' + this.__LZdiv.id;
+        // annotate divs with sprite IDs, but don't override existing IDs!
+        if (!this.__LZdiv.id) this.__LZdiv.id = 'sprite_' + this.uid;
+        if (!this.__LZclickdiv.id) this.__LZclickdiv.id = 'click_' + this.__LZdiv.id;
     }
     this.__LZdiv.owner = this;
     if (this.quirks.fix_clickable) {



More information about the Laszlo-checkins mailing list