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