mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
removed "showmodaldialog(...)" from javascript (removed from chrome)
This commit is contained in:
@@ -47,7 +47,6 @@
|
||||
</div>
|
||||
<div class="menu" id="syMenu" style="z-index:50">
|
||||
<a href="javascript:void(0)" id="delete_sy">{% trans 'thesaurus::menu: supprimer' %}</a>
|
||||
<a href="javascript:void(0)" id="replace_sy" class="disabled">{% trans 'thesaurus:: remplacer' %}</a>
|
||||
</div>
|
||||
|
||||
<div style='text-align:right'>
|
||||
@@ -193,14 +192,6 @@
|
||||
document.getElementById("delete_sy").className = "";
|
||||
}
|
||||
}
|
||||
// si on ne connait pas encore le client mais que start est ouvert, on lui demande
|
||||
// if(!opener.wClient && opener.opener.wClient)
|
||||
// opener.wClient = opener.opener.wClient;
|
||||
// si on connait le client et qu'on peut s'en servir pour chercher, on active l'option dans le menu
|
||||
// if(opener.wClient && opener.wClient.externQuery)
|
||||
// document.getElementById("searchcli_sy").className = "";
|
||||
// else
|
||||
// document.getElementById("searchcli_sy").className = "disabled";
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -250,30 +241,6 @@
|
||||
}
|
||||
}
|
||||
break;
|
||||
case "searchcli_sy": // cbParm = objet 'TR'
|
||||
url = "xmlhttp/getsy.x.php";
|
||||
url += "?bid={{ bid | url_encode }}";
|
||||
url += "&id=" + cbParm.id.substr(4);
|
||||
url += "&typ={{ typ | url_encode }}";
|
||||
ret = loadXMLDoc(url, null, true);
|
||||
t = ret.getElementsByTagName("sy").item(0).getAttribute("t");
|
||||
|
||||
if(opener.wClient && opener.wClient.externQuery)
|
||||
{
|
||||
opener.wClient.focus();
|
||||
opener.wClient.externQuery(opener.currentBaseId, t);
|
||||
}
|
||||
|
||||
break;
|
||||
case "replace_sy":
|
||||
url = "replace.php";
|
||||
url += "?bid={{ bid }}";
|
||||
url += "&piv={{ piv }}";
|
||||
url += "&pid={{ id }}"
|
||||
url += "&id=" + o.id.substr(4);
|
||||
url += "&typ={{ typ | url_encode }}";
|
||||
w = window.open(url, "REPLACE", "directories=no, height=300, width=500, location=no, menubar=no, resizable=yes, scrollbars=yes, status=no, toolbar=no");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user