[Cartoweb-dev] [Bug 1681] New: layerReorder.js duplicates div

bugzilla-daemon at bugzilla.maptools.org bugzilla-daemon at bugzilla.maptools.org
Wed Mar 14 09:59:59 EST 2007


http://bugzilla.maptools.org/show_bug.cgi?id=1681

           Summary: layerReorder.js duplicates div
           Product: CartoWeb
           Version: unspecified
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Plugins
        AssignedTo: cartoweb-dev at lists.maptools.org
        ReportedBy: ml.dje at geocontent.de


If an element in the layerReorder list is moved, the div element with id
layerReorderContainer is duplicated. Solution:

In layerReorder.js (124):

container.innerHTML = '<div id="layerReorderContainer">' + str + '</div>';

should be changed to

container.innerHTML = str;

since container is already a reference to <div id="layerReorderContainer">.
Therefore, the current code adds another div with the same id inside it.



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


Please do NOT reply to this email, use the link above instead to 
login to bugzilla and submit your comment. Any email reply to this
address will be lost.


More information about the Cartoweb-dev mailing list