From 7d712fed0f7d4128896c71f60876abebb93690a1 Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Fri, 28 May 2010 08:27:12 -0400 Subject: [PATCH] Converted remaining uses of RecipeMatchesSearch(). --- Frame.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Frame.lua b/Frame.lua index dd6aee0..70f308c 100644 --- a/Frame.lua +++ b/Frame.lua @@ -3674,6 +3674,7 @@ do local orig_index = entry_index local current_entry = self.entries[orig_index] local expand_all = expand_mode == "deep" + local search_box = MainPanel.search_editbox -- Entry_index is the position in self.entries that we want to expand. Since we are expanding the current entry, the return -- value should be the index of the next button after the expansion occurs @@ -3693,7 +3694,7 @@ do local spell_id = sorted_recipes[index] local recipe_entry = private.recipe_list[spell_id] - if recipe_entry:HasState("VISIBLE") and RecipeMatchesSearch(recipe_entry) then + if recipe_entry:HasState("VISIBLE") and search_box:MatchesRecipe(recipe_entry) then local t = AcquireTable() local expand = false local type = "subheader" @@ -3733,7 +3734,7 @@ do local spell_id = sorted_recipes[index] local recipe_entry = private.recipe_list[spell_id] - if recipe_entry:HasState("VISIBLE") and RecipeMatchesSearch(recipe_entry) then + if recipe_entry:HasState("VISIBLE") and search_box:MatchesRecipe(recipe_entry) then local expand = false local type = "subheader" local t = AcquireTable() -- 1.7.9.5