From 4fea7aeaf6dc6f3687662882782658ed4b31e7e3 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Wed, 4 May 2011 17:50:28 +0200 Subject: Make filterByRegexp more tolerant to different configurations. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * filterByRegexp shouldn’t crash when list is undefined * also be more tolerant for nonexistent some RH-specific functions Fixes #91. --- data/lib/otherButtons.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'data/lib/otherButtons.js') diff --git a/data/lib/otherButtons.js b/data/lib/otherButtons.js index 0e7b408..a766668 100644 --- a/data/lib/otherButtons.js +++ b/data/lib/otherButtons.js @@ -60,10 +60,10 @@ function markBugTriaged() { // /fedora-meeting.2009-11-24-15.11.log.html // http://meetbot.fedoraproject.org/fedora-meeting/2009-11-24\ // /fedora-meeting.2009-11-24-15.11.log.html - if (!hasXorgBugsCategory()) { + if (hasXorgBugsCategory && !hasXorgBugsCategory()) { alert("This won't do! First set the category!"); } - else if (!isEnterprise() && (getSeverity() == 'unspecified')) { + else if (isEnterprise && !isEnterprise() && (getSeverity() == 'unspecified')) { alert("This won't do! Specify some severity!"); } else { -- cgit