From ba9bd8b38bb04421dbc4fa045b02a6f320d817d6 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Wed, 11 Apr 2012 01:03:00 +0200 Subject: Attempts to make the script work on bugs.eclipse.org. --- data/rhlib/rhbzpage.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'data/rhlib/rhbzpage.js') diff --git a/data/rhlib/rhbzpage.js b/data/rhlib/rhbzpage.js index eb10238..f8c7ca7 100644 --- a/data/rhlib/rhbzpage.js +++ b/data/rhlib/rhbzpage.js @@ -489,8 +489,11 @@ function RHBZinit(things) { }, false); // Uncheck "set default assignee" when the assignee is changed by other means - document.getElementById("assigned_to").addEventListener("change", - function() { - changeAssignee(null); - }, false); -} + var assAnchor = document.getElementById("assigned_to"); + if (assAnchor) { + assAnchor.addEventListener("change", + function() { + changeAssignee(null); + }, false); + }; +}; -- cgit