...
 
Commits (2)
......@@ -419,6 +419,12 @@ var ProgramContainerLayer = pmui.DragAndDropLayout.extend(/** @lends ProgramCont
var selectedButton = FunctionButton.selectedButton;
if (this._program.symbols[elementPos.x][elementPos.y].type === pm.SymbolType.Function)
{
button.select();
return;
}
if(selectedButton)
{
FunctionButton.deselect();
......@@ -443,9 +449,6 @@ var ProgramContainerLayer = pmui.DragAndDropLayout.extend(/** @lends ProgramCont
return;
}
if (this._program.symbols[elementPos.x][elementPos.y].type === pm.SymbolType.Function)
return;
if(selectedButton.type === button.type ||
(button.type === FunctionButton.Type.CondRepeater &&
selectedButton.type === FunctionButton.Type.Condition))
......