forked from science-ation/science-ation
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:
parent
bd2eede7fa
commit
bb7cfe3629
@ -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;
|
||||
}
|
||||
|
@ -132,6 +132,7 @@ send_popup_header(i18n("User Editor").": {$u['name']}");
|
||||
|
||||
$(document).ready(function() {
|
||||
$("#tabs").tabs();
|
||||
window.focus();
|
||||
});
|
||||
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user