Fix missing default when using the menu to filter.

Don't add `;op:yes` since that's the default already.
This commit is contained in:
Nicolas Stepien 2013-04-10 01:50:05 +02:00
parent a472dae321
commit 8116b48d08

View File

@ -1083,16 +1083,13 @@ Filter =
else
"\\#{c}"
re =
if type in ['uniqueID', 'MD5']
"/#{re}/"
else
"/^#{re}$/"
unless Filter.menu.post.isReply
re += ';op:yes'
re = if type in ['uniqueID', 'MD5']
"/#{re}/"
else
"/^#{re}$/"
# Add a new line before the regexp unless the text is empty.
$.get type, '', (item) ->
$.get type, Conf[type], (item) ->
save = item[type]
save =
if save