From bb7cfe36290dcee1cc329483a0ad7b396b109feb Mon Sep 17 00:00:00 2001 From: james Date: Thu, 29 Oct 2009 17:05:15 +0000 Subject: [PATCH] Second arg for popup windows cant have spaces, its an internal window name, IE errors out when it sees a space Also, focus the popup window once its loaded, incase they have it open still in behind --- admin/committees.php | 4 ++-- admin/user_editor_window.php | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/admin/committees.php b/admin/committees.php index c11156b..7c1113e 100644 --- a/admin/committees.php +++ b/admin/committees.php @@ -48,14 +48,14 @@ if($_POST['users_uid']) function openeditor(id) { - window.open("user_editor_window.php?id="+id,"User Editor","location=no,menubar=no,directories=no,toolbar=no,width=770,height=500,scrollbars=yes"); + window.open("user_editor_window.php?id="+id,"UserEditor","location=no,menubar=no,directories=no,toolbar=no,width=770,height=500,scrollbars=yes"); return false; } function neweditor() { var username = document.forms.addmember.add_member.value; - window.open("user_editor_window.php?type=committee&username="+username,"User Editor","location=no,menubar=no,directories=no,toolbar=no,width=770,height=500,scrollbars=yes"); + window.open("user_editor_window.php?type=committee&username="+username,"UserEditor","location=no,menubar=no,directories=no,toolbar=no,width=770,height=500,scrollbars=yes"); document.forms.addmember.add_member.value = ""; return false; } diff --git a/admin/user_editor_window.php b/admin/user_editor_window.php index aca2bd8..94f0790 100644 --- a/admin/user_editor_window.php +++ b/admin/user_editor_window.php @@ -132,6 +132,7 @@ send_popup_header(i18n("User Editor").": {$u['name']}"); $(document).ready(function() { $("#tabs").tabs(); + window.focus(); });