Quantcast

AckisRecipeList:

Jim-Bim [11-16-08 - 04:48]
AckisRecipeList:
- set default search text after edit focus lost of empty text
Filename
ARLFrame.lua
diff --git a/ARLFrame.lua b/ARLFrame.lua
index 5aa8dee..2441e43 100644
--- a/ARLFrame.lua
+++ b/ARLFrame.lua
@@ -3280,6 +3280,17 @@ function addon:CreateFrame(

 				end
 			)
+			ARL_SearchText:SetScript("OnEditFocusLost",
+				function(this)
+
+					if (this:GetText() == "") then
+
+						this:SetText(L["SEARCH_BOX_DESC"])
+
+					end
+
+				end
+			)
 			ARL_SearchText:EnableMouse(true)
 			ARL_SearchText:SetAutoFocus(false)
 			ARL_SearchText:SetFontObject(ChatFontNormal)