reverted the change to wait for full information when scanning. rather be missing some names than waiting twice as long
This commit is contained in:
@@ -91,9 +91,9 @@
|
|||||||
</Layer>
|
</Layer>
|
||||||
</Layers>
|
</Layers>
|
||||||
<Scripts>
|
<Scripts>
|
||||||
<OnShow>
|
<OnLoad>
|
||||||
this.completor = Aux.completion.completor(this)
|
this.completor = Aux.completion.completor(this)
|
||||||
</OnShow>
|
</OnLoad>
|
||||||
<OnTextChanged>
|
<OnTextChanged>
|
||||||
this.completor.suggest()
|
this.completor.suggest()
|
||||||
</OnTextChanged>
|
</OnTextChanged>
|
||||||
|
|||||||
+2
-2
@@ -2,7 +2,7 @@ Aux.completion = {}
|
|||||||
|
|
||||||
local NUM_MATCHES = 5
|
local NUM_MATCHES = 5
|
||||||
|
|
||||||
local fuzzy, make_suggestions
|
local fuzzy, generate_suggestions
|
||||||
|
|
||||||
local item_names = {}
|
local item_names = {}
|
||||||
|
|
||||||
@@ -76,7 +76,7 @@ function Aux.completion.completor(edit_box)
|
|||||||
value = suggestion,
|
value = suggestion,
|
||||||
notCheckable = true,
|
notCheckable = true,
|
||||||
func = function()
|
func = function()
|
||||||
self:set_quietly(edit_box, this.value)
|
self.set_quietly(this.value)
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -413,7 +413,7 @@ function Aux_ContainerFrameItemButton_OnClick(button)
|
|||||||
and (PanelTemplates_GetSelectedTab(AuctionFrame) == 1 or PanelTemplates_GetSelectedTab(AuctionFrame) == Aux.tabs.buy.index)
|
and (PanelTemplates_GetSelectedTab(AuctionFrame) == 1 or PanelTemplates_GetSelectedTab(AuctionFrame) == Aux.tabs.buy.index)
|
||||||
then
|
then
|
||||||
if PanelTemplates_GetSelectedTab(AuctionFrame) == Aux.tabs.buy.index then
|
if PanelTemplates_GetSelectedTab(AuctionFrame) == Aux.tabs.buy.index then
|
||||||
Aux.completion.set_quietly(AuxBuyNameInputBox, container_item.name)
|
AuxBuyNameInputBox.completor.set_quietly(container_item.name)
|
||||||
end
|
end
|
||||||
return
|
return
|
||||||
elseif AUX_SELL_SHORTCUT and IsAltKeyDown()then
|
elseif AUX_SELL_SHORTCUT and IsAltKeyDown()then
|
||||||
@@ -426,7 +426,7 @@ function Aux_ContainerFrameItemButton_OnClick(button)
|
|||||||
if PanelTemplates_GetSelectedTab(AuctionFrame) ~= Aux.tabs.buy.index then
|
if PanelTemplates_GetSelectedTab(AuctionFrame) ~= Aux.tabs.buy.index then
|
||||||
AuctionFrameTab_OnClick(Aux.tabs.buy.index)
|
AuctionFrameTab_OnClick(Aux.tabs.buy.index)
|
||||||
end
|
end
|
||||||
Aux.completion.set_quietly(AuxBuyNameInputBox, container_item.name)
|
AuxBuyNameInputBox.completor.set_quietly(container_item.name)
|
||||||
Aux.buy.SearchButton_onclick()
|
Aux.buy.SearchButton_onclick()
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -131,12 +131,12 @@ function submit_query(k)
|
|||||||
state.job.on_submit_query()
|
state.job.on_submit_query()
|
||||||
end
|
end
|
||||||
wait_for_results(function()
|
wait_for_results(function()
|
||||||
wait_for_complete_results(function()
|
--wait_for_complete_results(function()
|
||||||
if state.job.on_page_loaded then
|
if state.job.on_page_loaded then
|
||||||
state.job.on_page_loaded(state.page)
|
state.job.on_page_loaded(state.page)
|
||||||
end
|
end
|
||||||
k()
|
k()
|
||||||
end)end)
|
end)--end)
|
||||||
QueryAuctionItems(
|
QueryAuctionItems(
|
||||||
state.job.query.name,
|
state.job.query.name,
|
||||||
state.job.query.min_level,
|
state.job.query.min_level,
|
||||||
|
|||||||
Reference in New Issue
Block a user