From a324530c2509f8d70f9abfeb7087b4a35e3820cd Mon Sep 17 00:00:00 2001 From: Jim-Bim Date: Sun, 16 Nov 2008 04:48:37 +0000 Subject: [PATCH] AckisRecipeList: - set default search text after edit focus lost of empty text --- ARLFrame.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) 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) -- 1.7.9.5