Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

Commit

Permalink
Fix TwinPanelController move buttons
Browse files Browse the repository at this point in the history
Previous implementation seemed to rely on the side effect that moving DOM
nodes also impacted the selected nodes.

Fixed the bug and some wacky code.
  • Loading branch information
nabcos authored and cstamas committed Nov 21, 2012
1 parent 175a0ae commit 0cfbe13
Showing 1 changed file with 2 additions and 9 deletions.
Expand Up @@ -131,14 +131,8 @@ Ext.extend(Nexus.ext.TwinPanelController, Ext.Panel, {
} }
if (moveAll) if (moveAll)
{ {
for (i = 0; i < fromRoot.childNodes.length; i=i+1) while (fromRoot.firstChild) {
{ toRoot.appendChild(fromRoot.firstChild);
node = fromRoot.childNodes[i];
if (checkIfDragAllowed(node))
{
toRoot.appendChild(node);
i = i-1;
}
} }
} }
else else
Expand All @@ -152,7 +146,6 @@ Ext.extend(Nexus.ext.TwinPanelController, Ext.Panel, {
if (checkIfDragAllowed(node)) if (checkIfDragAllowed(node))
{ {
toRoot.appendChild(node); toRoot.appendChild(node);
i = i-1;
} }
} }
} }
Expand Down

0 comments on commit 0cfbe13

Please sign in to comment.