From 26d9750031c4c45cb63feb0c0bce2f8ac7de238e Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Fri, 6 May 2011 19:46:42 +0200 Subject: Removing unimportant parts of the page as a prevention against #65 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There is now complete analysis of the issue, but I don’t know how to fix it, because we just write into various input boxes and they got focus (and subsequently Firefox makes them visible). --- data/lib/bzpage.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'data/lib/bzpage.js') diff --git a/data/lib/bzpage.js b/data/lib/bzpage.js index 296fe29..7b8a764 100644 --- a/data/lib/bzpage.js +++ b/data/lib/bzpage.js @@ -215,6 +215,7 @@ function changeAssignee (newAssignee) { } } + var saveFocus = document.activeElement; if (newAssignee) { clickMouse("bz_assignee_edit_action"); document.getElementById("assigned_to").value = newAssignee; @@ -224,6 +225,7 @@ function changeAssignee (newAssignee) { defAssigneeButton.style.display = "none"; } } + saveFocus.focus(); } /** -- cgit