minor searchbox changes

This commit is contained in:
Manuel Simon Hirsig
2016-12-20 19:49:23 +01:00
parent 8b51f4334f
commit ef347a9ee2
6 changed files with 10 additions and 12 deletions
+4 -3
View File
@@ -33,12 +33,12 @@ function CLOSE()
end
function CLICK_LINK(item_info)
set_filter(strlower(item_info.name) .. '/exact')
filter = strlower(item_info.name) .. '/exact'
execute(nil, false)
end
function USE_ITEM(item_info)
set_filter(strlower(item_info.name) .. '/exact')
filter = strlower(item_info.name) .. '/exact'
execute(nil, false)
end
@@ -64,6 +64,7 @@ function set_subtab(tab)
end
function M.set_filter(filter_string)
search_box:SetFocus()
search_box:SetText(filter_string)
end
@@ -75,7 +76,7 @@ function add_filter(filter_string)
old_filter_string = old_filter_string .. ';'
end
search_box:SetText(old_filter_string .. filter_string)
filter = old_filter_string .. filter_string
end
function blizzard_page_index(str)