refactoring
This commit is contained in:
@@ -327,7 +327,7 @@ function create_frames()
|
||||
gui.set_size(btn1, 80, 24)
|
||||
btn1:SetText('Search')
|
||||
btn1:SetScript('OnClick', function()
|
||||
export_query_string()
|
||||
export_filter_string()
|
||||
execute()
|
||||
end)
|
||||
|
||||
@@ -335,13 +335,13 @@ function create_frames()
|
||||
btn2:SetPoint('LEFT', btn1, 'RIGHT', 5, 0)
|
||||
gui.set_size(btn2, 80, 24)
|
||||
btn2:SetText('Export')
|
||||
btn2:SetScript('OnClick', export_query_string)
|
||||
btn2:SetScript('OnClick', export_filter_string)
|
||||
|
||||
local btn3 = gui.button(frame.filter, 16)
|
||||
btn3:SetPoint('LEFT', btn2, 'RIGHT', 5, 0)
|
||||
gui.set_size(btn3, 80, 24)
|
||||
btn3:SetText('Import')
|
||||
btn3:SetScript('OnClick', import_query_string)
|
||||
btn3:SetScript('OnClick', import_filter_string)
|
||||
end
|
||||
do
|
||||
local editbox = gui.editbox(frame.filter)
|
||||
@@ -515,7 +515,7 @@ function create_frames()
|
||||
input.change = function()
|
||||
local text = this:GetText()
|
||||
if filter_util.filters[text] and filter_util.filters[text].input_type ~= '' then
|
||||
local _, _, suggestions = filter_util.parse_query_string(text..'/')
|
||||
local _, _, suggestions = filter_util.parse_filter_string(text..'/')
|
||||
filter_parameter_input:SetNumeric(filter_util.filters[text].input_type == 'number')
|
||||
filter_parameter_input.complete = completion.complete(function() return suggestions or {} end)
|
||||
filter_parameter_input:Show()
|
||||
|
||||
Reference in New Issue
Block a user