small filter fix

This commit is contained in:
Manuel Simon Hirsig
2016-08-10 07:39:20 +02:00
parent 1bb727da08
commit 4ee99e43e8
+7 -8
View File
@@ -546,12 +546,8 @@ function private.prettified_query_string(components)
end end
end end
if blizzard_filters.name and not blizzard_filters.exact then if blizzard_filters.name and not blizzard_filters.exact and blizzard_filters.name ~= '' then
if m.unquote(blizzard_filters.name) == '' then prettified.prepend(aux.gui.inline_color.label.enabled..m.unquote(blizzard_filters.name)..FONT_COLOR_CODE_CLOSE)
prettified.prepend(aux.auction_listing.colors.RED..'No Filter'..FONT_COLOR_CODE_CLOSE)
else
prettified.prepend(aux.gui.inline_color.label.enabled..m.unquote(blizzard_filters.name)..FONT_COLOR_CODE_CLOSE)
end
end end
for _, component in components.post do for _, component in components.post do
@@ -569,8 +565,11 @@ function private.prettified_query_string(components)
end end
end end
end end
if prettified.get() == '' then
return prettified.get() return aux.auction_listing.colors.RED..'No Filter'..FONT_COLOR_CODE_CLOSE
else
return prettified.get()
end
end end
function public.quote(name) function public.quote(name)