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
This commit is contained in:
james 2009-10-29 17:05:15 +00:00
parent bd2eede7fa
commit bb7cfe3629
2 changed files with 3 additions and 2 deletions

View File

@ -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;
}

View File

@ -132,6 +132,7 @@ send_popup_header(i18n("User Editor").": {$u['name']}");
$(document).ready(function() {
$("#tabs").tabs();
window.focus();
});
</script>