refactoring
This commit is contained in:
@@ -33,17 +33,16 @@ private.FILTER = 3
|
||||
function LOAD()
|
||||
aux_search_tab_frame.create()
|
||||
subtab = SAVED
|
||||
current_search.placeholder = true
|
||||
end
|
||||
|
||||
function OPEN()
|
||||
frame:Show()
|
||||
update_search_listings()
|
||||
aux_search_tab_saved.update_search_listings()
|
||||
end
|
||||
|
||||
function CLOSE()
|
||||
close_settings()
|
||||
current_search.table:SetSelectedRecord()
|
||||
aux_search_tab_results.close_settings()
|
||||
aux_search_tab_results.current_search.table:SetSelectedRecord()
|
||||
frame:Hide()
|
||||
end
|
||||
|
||||
@@ -57,6 +56,10 @@ function USE_ITEM(item_info)
|
||||
execute(nil, false)
|
||||
end
|
||||
|
||||
function public.execute(resume, real_time)
|
||||
aux_search_tab_results.execute(resume, real_time)
|
||||
end
|
||||
|
||||
function private.subtab.set(tab)
|
||||
search_results_button:UnlockHighlight()
|
||||
saved_searches_button:UnlockHighlight()
|
||||
@@ -92,7 +95,7 @@ function public.add_filter(filter_string)
|
||||
search_box:SetText(old_filter_string .. filter_string)
|
||||
end
|
||||
|
||||
function private.blizzard_page_index(str)
|
||||
function public.blizzard_page_index(str)
|
||||
if tonumber(str) then
|
||||
return max(0, tonumber(str) - 1)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user