Quantcast

Adjusted handling of item/recipe linking from the skill list.

pschifferer [02-20-09 - 03:19]
Adjusted handling of item/recipe linking from the skill list.
Filename
CauldronMain.xml
diff --git a/CauldronMain.xml b/CauldronMain.xml
index bfa0cbc..7aec0a2 100644
--- a/CauldronMain.xml
+++ b/CauldronMain.xml
@@ -107,7 +107,7 @@
 						-- self.hasItem = 1;
 					</OnLoad>
 					<OnClick>
-						HandleModifiedItemClick(self.itemLink);
+						HandleModifiedItemClick(GetTradeSkillItemLink(self.skillIndex));
 						Cauldron:SkillItem_OnClick(self, button, down);
 					</OnClick>
 					<OnEnter>
@@ -138,7 +138,7 @@
 				</Anchors>
 				<Scripts>
 					<OnLoad>
-						getglobal(self:GetName()):SetText("");
+						self:SetText("");
 					</OnLoad>
 					<OnClick>
 						Cauldron:CollapseItemButton_OnClick(self);
@@ -266,9 +266,6 @@
 			</Frame>
     	</Frames>
     	<Scripts>
-    		<OnClick>
-				HandleModifiedItemClick(GetTradeSkillRecipeLink(self.skillIndex));
-    		</OnClick>
     		<OnEnter>
     			Cauldron:SkillItem_OnEnter(self);
     		</OnEnter>
@@ -277,6 +274,7 @@
     		</OnLeave>
     		<OnClick>
                 PlaySound("igMainMenuOptionCheckBoxOn");
+				HandleModifiedItemClick(GetTradeSkillRecipeLink(self.skillIndex));
     			Cauldron:SkillItem_OnClick(self, button, down);
     		</OnClick>
     	</Scripts>