Commit e70aa265 authored by Florian Azizian's avatar Florian Azizian
Browse files

FIX #6387 hide document in signaturebook if create/edit attachment

parent 0a486142
......@@ -1065,6 +1065,14 @@ function destroyModal(id_mod){
document.getElementsByTagName('body')[0].removeChild($j("#" + id_mod)[0]);
document.getElementsByTagName('body')[0].removeChild($j("#" + id_layer)[0]);
$j("input[type='button']").prop("disabled", false).css("opacity", "1");
// FIX IE 11
if($j('#leftPanelShowDocumentIframe')){
$j('#leftPanelShowDocumentIframe').show();
}
if($j('#rightPanelShowDocumentIframe')){
$j('#rightPanelShowDocumentIframe').show();
}
}
/**
......
......@@ -64,8 +64,6 @@ function saveContactToSession(size, prePath) {
setTimeout(function() {
var contactId = $("transmissionContactidAttach" + size).value;
var addressId = $("transmissionAddressidAttach" + size).value;
console.log(contactId);
console.log(addressId);
if (contactId) {
new Ajax.Request(prePath + "index.php?display=true&module=attachments&page=saveTransmissionContact",
......@@ -433,6 +431,13 @@ function loadSelectedContact() {
}
function createModalinAttachmentList(txt, id_mod, height, width, mode_frm){
// FIX IE 11
if($j('#leftPanelShowDocumentIframe')){
$j('#leftPanelShowDocumentIframe').hide();
}
if($j('#rightPanelShowDocumentIframe')){
$j('#rightPanelShowDocumentIframe').hide();
}
if(height == undefined || height=='') {
height = '100px';
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment