Skip to content
Snippets Groups Projects
Verified Commit d331e7fd authored by Florian Azizian's avatar Florian Azizian
Browse files

FIX #8699 edit contact info in index/qualif

parent 60fdf08a
No related branches found
No related tags found
No related merge requests found
......@@ -165,10 +165,9 @@ if ($core_tools2->test_admin('update_contacts', 'apps', false) && $mode <> "view
<?php
}
?>
<script type="text/javascript"><?php
if ($_GET['created'] == "editDetail") {
?>
<script type="text/javascript">
new Ajax.Request('index.php?display=false&dir=my_contacts&page=get_last_contact_address&mode=up',
{
method:'post',
......@@ -181,7 +180,7 @@ if ($core_tools2->test_admin('update_contacts', 'apps', false) && $mode <> "view
if (response.rateColor != "") {
window.opener.$j('#contact').css('background-color', response.rateColor);
}
window.opener.$j('#contact').html(response.contactName);
window.opener.$j('#contact').val(response.contactName);
window.opener.$j('#contactid').val(response.contactId);
window.opener.$j('#addressid').val(response.addressId);
this.close();
......@@ -205,9 +204,12 @@ if ($core_tools2->test_admin('update_contacts', 'apps', false) && $mode <> "view
parent.document.getElementById('show_tab').setAttribute('module', '');
}
}
});<?php
});
</script><?php
exit;
} elseif ($_GET['created'] == "editDetailSender") {
?>
<script type="text/javascript">
new Ajax.Request('index.php?display=false&dir=my_contacts&page=get_last_contact_address&mode=up',
{
method:'post',
......@@ -220,7 +222,7 @@ if ($core_tools2->test_admin('update_contacts', 'apps', false) && $mode <> "view
if (response.rateColor != "") {
window.opener.$j('#sender_recipient').css('background-color', response.rateColor);
}
window.opener.$j('#sender_recipient').html(response.contactName);
window.opener.$j('#sender_recipient').val(response.contactName);
this.close();
//Processing Mail
} else {
......@@ -235,19 +237,22 @@ if ($core_tools2->test_admin('update_contacts', 'apps', false) && $mode <> "view
parent.document.getElementById('show_tab').setAttribute('module', '');
}
}
});<?php
});
</script><?php
exit;
} elseif ($_GET['created'] == "cancelDetail") {
?>
<script type="text/javascript">
if (window.opener) {
this.close();
} else {
parent.document.getElementById('show_tab').style.display = 'none';
parent.document.getElementById('show_tab').setAttribute('module', '');
}
<?php
} ?>
</script><?php
exit;
</script>
<?php
exit;
}
?>
<script type="text/javascript">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment