forked from science-ation/science-ation
Move openeditor() to sfiab.js common file, and update references to it
This commit is contained in:
parent
ee657d49a1
commit
a484939f1b
@ -63,15 +63,6 @@ $user_what = array();
|
|||||||
?>
|
?>
|
||||||
<script language="javascript" type="text/javascript">
|
<script language="javascript" type="text/javascript">
|
||||||
|
|
||||||
function openeditor(id)
|
|
||||||
{
|
|
||||||
if(id) currentid=id;
|
|
||||||
|
|
||||||
window.open("user_editor_window.php?users_id="+currentid,"UserEditor","location=no,menubar=no,directories=no,toolbar=no,width=1000,height=640,scrollbars=yes");
|
|
||||||
return false;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
function toggleoptions()
|
function toggleoptions()
|
||||||
{
|
{
|
||||||
if(document.getElementById('options').style.display == 'none') {
|
if(document.getElementById('options').style.display == 'none') {
|
||||||
@ -100,7 +91,7 @@ function neweditor()
|
|||||||
{
|
{
|
||||||
var username = document.forms.newuser.new_email.value;
|
var username = document.forms.newuser.new_email.value;
|
||||||
var usertype = document.forms.newuser.new_type.value;
|
var usertype = document.forms.newuser.new_type.value;
|
||||||
window.open("user_editor_window.php?type="+usertype+"&username="+username,"UserEditor","location=no,menubar=no,directories=no,toolbar=no,width=770,height=500,scrollbars=yes");
|
window.open("../user_editor_window.php?type="+usertype+"&username="+username,"UserEditor","location=no,menubar=no,directories=no,toolbar=no,width=770,height=500,scrollbars=yes");
|
||||||
document.forms.newuser.new_email.value = "";
|
document.forms.newuser.new_email.value = "";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -46,16 +46,10 @@ if($_POST['accounts_id'])
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
<!--
|
<!--
|
||||||
|
|
||||||
function openeditor(id)
|
|
||||||
{
|
|
||||||
window.open("user_editor_window.php?users_id="+id,"UserEditor","location=no,menubar=no,directories=no,toolbar=no,width=770,height=500,scrollbars=yes");
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
function neweditor()
|
function neweditor()
|
||||||
{
|
{
|
||||||
var username = document.forms.addmember.add_member.value;
|
var username = document.forms.addmember.add_member.value;
|
||||||
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");
|
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 = "";
|
document.forms.addmember.add_member.value = "";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -75,7 +75,7 @@ function showMemberDetails(judgeId){
|
|||||||
function editMember(memberId){
|
function editMember(memberId){
|
||||||
if(memberId == undefined) memberId = selectedMemberId;
|
if(memberId == undefined) memberId = selectedMemberId;
|
||||||
hideMemberDetails();
|
hideMemberDetails();
|
||||||
window.open("user_editor_window.php?id="+memberId,"UserEditor","location=no,menubar=no,directories=no,toolbar=no,width=770,height=500,scrollbars=yes");
|
window.open("../user_editor_window.php?id="+memberId,"UserEditor","location=no,menubar=no,directories=no,toolbar=no,width=770,height=500,scrollbars=yes");
|
||||||
}
|
}
|
||||||
|
|
||||||
function hideMemberDetails(){
|
function hideMemberDetails(){
|
||||||
|
@ -63,15 +63,6 @@ $user_what = array();
|
|||||||
?>
|
?>
|
||||||
<script language="javascript" type="text/javascript">
|
<script language="javascript" type="text/javascript">
|
||||||
|
|
||||||
function openeditor(id)
|
|
||||||
{
|
|
||||||
if(id) currentid=id;
|
|
||||||
|
|
||||||
window.open("user_editor_window.php?users_id="+currentid,"UserEditor","location=no,menubar=no,directories=no,toolbar=no,width=1000,height=640,scrollbars=yes");
|
|
||||||
return false;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
function toggleoptions()
|
function toggleoptions()
|
||||||
{
|
{
|
||||||
if(document.getElementById('options').style.display == 'none') {
|
if(document.getElementById('options').style.display == 'none') {
|
||||||
@ -100,7 +91,7 @@ function neweditor()
|
|||||||
{
|
{
|
||||||
var username = document.forms.newuser.new_email.value;
|
var username = document.forms.newuser.new_email.value;
|
||||||
var usertype = document.forms.newuser.new_type.value;
|
var usertype = document.forms.newuser.new_type.value;
|
||||||
window.open("user_editor_window.php?type="+usertype+"&username="+username,"UserEditor","location=no,menubar=no,directories=no,toolbar=no,width=770,height=500,scrollbars=yes");
|
window.open("../user_editor_window.php?type="+usertype+"&username="+username,"UserEditor","location=no,menubar=no,directories=no,toolbar=no,width=770,height=500,scrollbars=yes");
|
||||||
document.forms.newuser.new_email.value = "";
|
document.forms.newuser.new_email.value = "";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -93,4 +93,11 @@ function opencommunicationeditor(key,id,fcid) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function openeditor(id)
|
||||||
|
{
|
||||||
|
if(id) currentid=id;
|
||||||
|
window.open("../user_editor_window.php?users_id="+id,"UserEditor","location=no,menubar=no,directories=no,toolbar=no,width=770,height=500,scrollbars=yes");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user