mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 09:53:15 +00:00
PHRAS-3148 : Thesaurus guy : change window to modal
This commit is contained in:
@@ -13,12 +13,13 @@
|
|||||||
switch(button)
|
switch(button)
|
||||||
{
|
{
|
||||||
case "submit":
|
case "submit":
|
||||||
document.forms[0].action = "export_" + format + ".php";
|
$('.export-form').attr('action',"export_" + format + ".php");
|
||||||
document.forms[0].submit();
|
$('.export-form').submit();
|
||||||
|
$('.close-dialog').trigger('click');
|
||||||
break;
|
break;
|
||||||
case "cancel":
|
case "cancel":
|
||||||
self.returnValue = null;
|
self.returnValue = null;
|
||||||
self.close();
|
$('.close-dialog').trigger('click');
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -49,18 +50,21 @@
|
|||||||
{
|
{
|
||||||
var i, f;
|
var i, f;
|
||||||
url = "./export_"+format+".php?bid={{ bid }}&piv={{ piv }}&id={{ id }}&typ={{ typ }}&dlg=0&smp=1";
|
url = "./export_"+format+".php?bid={{ bid }}&piv={{ piv }}&id={{ id }}&typ={{ typ }}&dlg=0&smp=1";
|
||||||
url += "&osl=" + (document.forms[0].osl[0].checked ? "1" : "0");
|
url += "&osl=" + ($('.osl_1')[0].checked ? "1" : $('.osl_0')[0].checked ? "0" : "0");
|
||||||
url += "&iln=" + (document.forms[0].iln.checked ? "1" : "0");
|
url += "&iln=" + ($('.iln')[0].checked ? "1" : "0");
|
||||||
url += "&hit=" + (document.forms[0].hit.checked ? "1" : "0");
|
url += "&hit=" + ($('.hit')[0].checked ? "1" : "0");
|
||||||
url += "&ilg=" + (document.forms[0].ilg.checked ? "1" : "0");
|
url += "&ilg=" + ($('.ilg')[0].checked ? "1" : "0");
|
||||||
document.getElementById("ifrsample").src = url;
|
document.getElementById("ifrsample").src = url;
|
||||||
}
|
}
|
||||||
|
$( document ).ready(function() {
|
||||||
|
loaded();
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body onload="loaded();" class="dialog">
|
<body class="dialog">
|
||||||
<center>
|
<center>
|
||||||
<br/>
|
<br/>
|
||||||
<form onsubmit="clkBut('submit');return(false);" action="export_topics.php" target="EXPORT2">
|
<form class="export-form" action="export_topics.php" target="EXPORT2">
|
||||||
<input type="hidden" name="bid" value="{{ bid }}">
|
<input type="hidden" name="bid" value="{{ bid }}">
|
||||||
<input type="hidden" name="piv" value="{{ piv }}" >
|
<input type="hidden" name="piv" value="{{ piv }}" >
|
||||||
<input type="hidden" name="id" value="{{ id }}" >
|
<input type="hidden" name="id" value="{{ id }}" >
|
||||||
@@ -82,23 +86,23 @@
|
|||||||
</div>
|
</div>
|
||||||
<div id='subform_text' style="margin-left:10px;">
|
<div id='subform_text' style="margin-left:10px;">
|
||||||
<div style="white-space:nowrap">
|
<div style="white-space:nowrap">
|
||||||
<input type='radio' name='osl' checked value='1' onclick="chgFormat();">
|
<input type='radio' name='osl' class="osl_1" checked value='1' onclick="chgFormat();">
|
||||||
{{ 'thesaurus:: exporter avec les synonymes sur la meme ligne' | trans }}
|
{{ 'thesaurus:: exporter avec les synonymes sur la meme ligne' | trans }}
|
||||||
</div>
|
</div>
|
||||||
<div style="white-space:nowrap">
|
<div style="white-space:nowrap">
|
||||||
<input type='radio' name='osl' value='0' onclick="chgFormat();">
|
<input type='radio' name='osl' class="osl_0" value='0' onclick="chgFormat();">
|
||||||
{{ 'thesaurus:: exporter avec une ligne par synonyme' | trans }}
|
{{ 'thesaurus:: exporter avec une ligne par synonyme' | trans }}
|
||||||
</div>
|
</div>
|
||||||
<div style="white-space:nowrap">
|
<div style="white-space:nowrap">
|
||||||
<input type='checkbox' name='iln' value='1' onclick="chgFormat();">
|
<input type='checkbox' name='iln' class="iln" value='1' onclick="chgFormat();">
|
||||||
{{ 'thesaurus:: export : numeroter les lignes' | trans }}
|
{{ 'thesaurus:: export : numeroter les lignes' | trans }}
|
||||||
</div>
|
</div>
|
||||||
<div style="white-space:nowrap">
|
<div style="white-space:nowrap">
|
||||||
<input type='checkbox' name='ilg' value='1' onclick="chgFormat();">
|
<input type='checkbox' name='ilg' class="ilg" value='1' onclick="chgFormat();">
|
||||||
{{ 'thesaurus:: export : inclure la langue' | trans }}
|
{{ 'thesaurus:: export : inclure la langue' | trans }}
|
||||||
</div>
|
</div>
|
||||||
<div style="white-space:nowrap">
|
<div style="white-space:nowrap">
|
||||||
<input type='checkbox' name='hit' value='1' onclick="chgFormat();">
|
<input type='checkbox' name='hit' class="hit" value='1' onclick="chgFormat();">
|
||||||
{{ 'thesaurus:: export : inclure les hits' | trans }}
|
{{ 'thesaurus:: export : inclure les hits' | trans }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -11,12 +11,12 @@
|
|||||||
switch(button)
|
switch(button)
|
||||||
{
|
{
|
||||||
case "submit":
|
case "submit":
|
||||||
document.forms[0].target = (format == 'tofiles' ? "_self" : "EXPORT2");
|
$('.export-topics-form').submit();
|
||||||
document.forms[0].submit();
|
$('.close-dialog').trigger('click');
|
||||||
break;
|
break;
|
||||||
case "cancel":
|
case "cancel":
|
||||||
self.returnValue = null;
|
self.returnValue = null;
|
||||||
self.close();
|
$('.close-dialog').trigger('click');
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -45,21 +45,25 @@
|
|||||||
}
|
}
|
||||||
function chgFormat()
|
function chgFormat()
|
||||||
{
|
{
|
||||||
var i, f;
|
var i;
|
||||||
for(i=0; i<document.forms[0].ofm.length; i++)
|
for(i=0; i<$('.ofm').length; i++)
|
||||||
{
|
{
|
||||||
f = document.forms[0].ofm[i].value;
|
if($(".ofm_1")[0].checked) {
|
||||||
if(document.forms[0].ofm[i].checked)
|
format = $(".ofm_1").val();
|
||||||
{
|
}
|
||||||
format = f;
|
if($(".ofm_2")[0].checked) {
|
||||||
|
format = $(".ofm_2").val();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
$( document ).ready(function() {
|
||||||
|
loaded();
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body onload="loaded();" class="dialog">
|
<body class="dialog">
|
||||||
<center>
|
<center>
|
||||||
<form onsubmit="clkBut('submit');return(false);" action="export_topics.php">
|
<form action="export_topics.php" class="export-topics-form" target="EXPORT2">
|
||||||
<input type="hidden" name="bid" value="{{ bid }}" >
|
<input type="hidden" name="bid" value="{{ bid }}" >
|
||||||
<input type="hidden" name="piv" value="{{ piv }}" >
|
<input type="hidden" name="piv" value="{{ piv }}" >
|
||||||
<input type="hidden" name="id" value="{{ id }}" >
|
<input type="hidden" name="id" value="{{ id }}" >
|
||||||
@@ -71,11 +75,11 @@
|
|||||||
<div class="x3Dbox">
|
<div class="x3Dbox">
|
||||||
<span class="title">{{ 'thesaurus:: exporter' | trans }}</span>
|
<span class="title">{{ 'thesaurus:: exporter' | trans }}</span>
|
||||||
<div style="white-space:nowrap">
|
<div style="white-space:nowrap">
|
||||||
<input type='radio' name='ofm' checked value='tofiles' onclick="chgFormat();">
|
<input type='radio' name='ofm' class="ofm ofm_1" checked value='tofiles' onclick="chgFormat();">
|
||||||
{{ 'thesaurus:: exporter vers topics pour toutes les langues' | trans }}
|
{{ 'thesaurus:: exporter vers topics pour toutes les langues' | trans }}
|
||||||
</div>
|
</div>
|
||||||
<div style="white-space:nowrap">
|
<div style="white-space:nowrap">
|
||||||
<input type='radio' name='ofm' value='toscreen' onclick="chgFormat();">
|
<input type='radio' name='ofm' value='toscreen' class="ofm ofm_2" onclick="chgFormat();">
|
||||||
{% trans with {'%piv%' : piv} %}thesaurus:: exporter a l'ecran pour la langue %piv%{% endtrans %}
|
{% trans with {'%piv%' : piv} %}thesaurus:: exporter a l'ecran pour la langue %piv%{% endtrans %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -85,7 +89,7 @@
|
|||||||
<div class="x3Dbox">
|
<div class="x3Dbox">
|
||||||
<span class="title">{{ 'phraseanet:: tri' | trans }}</span>
|
<span class="title">{{ 'phraseanet:: tri' | trans }}</span>
|
||||||
<div style="white-space:nowrap">
|
<div style="white-space:nowrap">
|
||||||
<input type='checkbox' name='srt' checked onclick="chgFormat();">
|
<input type='checkbox' name='srt' checked >
|
||||||
{{ 'phraseanet:: tri par date' | trans }}
|
{{ 'phraseanet:: tri par date' | trans }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -95,15 +99,15 @@
|
|||||||
<div class="x3Dbox">
|
<div class="x3Dbox">
|
||||||
<span class="title">{{ 'thesaurus:: recherche' | trans }}</span>
|
<span class="title">{{ 'thesaurus:: recherche' | trans }}</span>
|
||||||
<div style="white-space:nowrap">
|
<div style="white-space:nowrap">
|
||||||
<input type='radio' name='sth' value="1" checked onclick="chgFormat();">
|
<input type='radio' name='sth' value="1" checked >
|
||||||
{{ 'thesaurus:: recherche thesaurus *:"query"' | trans }}
|
{{ 'thesaurus:: recherche thesaurus *:"query"' | trans }}
|
||||||
</div>
|
</div>
|
||||||
<div style="white-space:nowrap">
|
<div style="white-space:nowrap">
|
||||||
<input type='radio' name='sth' value="0" onclick="chgFormat();">
|
<input type='radio' name='sth' value="0" >
|
||||||
{{ 'thesaurus:: recherche fulltext' | trans }}
|
{{ 'thesaurus:: recherche fulltext' | trans }}
|
||||||
</div>
|
</div>
|
||||||
<div style="white-space:nowrap">
|
<div style="white-space:nowrap">
|
||||||
<input type='checkbox' name='sand' onclick="chgFormat();">
|
<input type='checkbox' name='sand' >
|
||||||
{{ 'thesaurus:: question complete (avec operateurs)' | trans }}
|
{{ 'thesaurus:: question complete (avec operateurs)' | trans }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -113,23 +117,23 @@
|
|||||||
<div class="x3Dbox">
|
<div class="x3Dbox">
|
||||||
<span class="title">{{ 'thesaurus:: presentation' | trans }}</span>
|
<span class="title">{{ 'thesaurus:: presentation' | trans }}</span>
|
||||||
<div style="white-space:nowrap">
|
<div style="white-space:nowrap">
|
||||||
<input type='radio' name='obrf' value="from_itf_closable" checked onclick="chgFormat();">
|
<input type='radio' name='obrf' value="from_itf_closable" checked >
|
||||||
{{ 'thesaurus:: presentation : branches refermables' | trans }}
|
{{ 'thesaurus:: presentation : branches refermables' | trans }}
|
||||||
</div>
|
</div>
|
||||||
<div style="white-space:nowrap">
|
<div style="white-space:nowrap">
|
||||||
<input type='radio' name='obrf' value="from_itf_static" onclick="chgFormat();">
|
<input type='radio' name='obrf' value="from_itf_static" >
|
||||||
{{ 'thesaurus:: presentation : branche ouvertes' | trans }}
|
{{ 'thesaurus:: presentation : branche ouvertes' | trans }}
|
||||||
</div>
|
</div>
|
||||||
<div style="white-space:nowrap">
|
<div style="white-space:nowrap">
|
||||||
<input type='radio' name='obrf' value="all_opened_closable" onclick="chgFormat();">
|
<input type='radio' name='obrf' value="all_opened_closable" >
|
||||||
{{ 'thesaurus:: tout deployer - refermable' | trans }}
|
{{ 'thesaurus:: tout deployer - refermable' | trans }}
|
||||||
</div>
|
</div>
|
||||||
<div style="white-space:nowrap">
|
<div style="white-space:nowrap">
|
||||||
<input type='radio' name='obrf' value="all_opened_static" onclick="chgFormat();">
|
<input type='radio' name='obrf' value="all_opened_static" >
|
||||||
{{ 'thesaurus:: tout deployer - statique' | trans }}
|
{{ 'thesaurus:: tout deployer - statique' | trans }}
|
||||||
</div>
|
</div>
|
||||||
<div style="white-space:nowrap">
|
<div style="white-space:nowrap">
|
||||||
<input type='radio' name='obrf' value="all_closed" onclick="chgFormat();">
|
<input type='radio' name='obrf' value="all_closed" >
|
||||||
{{ 'thesaurus:: tout fermer' | trans }}
|
{{ 'thesaurus:: tout fermer' | trans }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -25,24 +25,38 @@
|
|||||||
switch(button)
|
switch(button)
|
||||||
{
|
{
|
||||||
case "submit":
|
case "submit":
|
||||||
// document.forms[0].target="LINKFIELD";
|
$('.link-field-1').submit(
|
||||||
document.forms[0].submit();
|
$.ajax({
|
||||||
|
url : 'linkfield2.php',
|
||||||
|
type : 'POST',
|
||||||
|
data : $('.link-field-1').serialize(),
|
||||||
|
success : function( data ) {
|
||||||
|
$("#DLG_LINK_FIELD_1").html('');
|
||||||
|
$("#DLG_LINK_FIELD_1").append(data);
|
||||||
|
},
|
||||||
|
error : function( xhr, err ) {
|
||||||
|
alert('Error');
|
||||||
|
}
|
||||||
|
})
|
||||||
|
);
|
||||||
break;
|
break;
|
||||||
case "cancel":
|
case "cancel":
|
||||||
self.close();
|
$('.close-dialog').trigger('click');
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function loaded()
|
function loaded()
|
||||||
{
|
{
|
||||||
window.name="LINKFIELD";
|
|
||||||
ckField();
|
ckField();
|
||||||
}
|
}
|
||||||
|
$( document ).ready(function() {
|
||||||
|
loaded();
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body onload="loaded();" class="dialog">
|
<body class="dialog">
|
||||||
<center>
|
<center>
|
||||||
<form action="linkfield2.php" method="post" target="LINKFIELD">
|
<form class="link-field-1" action="linkfield2.php" method="post" target="LINKFIELD">
|
||||||
<input type="hidden" name="piv" value="{{ piv }}">
|
<input type="hidden" name="piv" value="{{ piv }}">
|
||||||
<input type="hidden" name="bid" value="{{ bid }}">
|
<input type="hidden" name="bid" value="{{ bid }}">
|
||||||
<input type="hidden" name="tid" value="{{ tid }}">
|
<input type="hidden" name="tid" value="{{ tid }}">
|
||||||
|
@@ -12,10 +12,23 @@
|
|||||||
switch(button)
|
switch(button)
|
||||||
{
|
{
|
||||||
case "submit":
|
case "submit":
|
||||||
document.forms[0].submit();
|
$('.link-field-2').submit(
|
||||||
|
$.ajax({
|
||||||
|
url : 'linkfield3.php',
|
||||||
|
type : 'POST',
|
||||||
|
data : $('.link-field-2').serialize(),
|
||||||
|
success : function( data ) {
|
||||||
|
$("#DLG_LINK_FIELD_1").html('');
|
||||||
|
$("#DLG_LINK_FIELD_1").append(data);
|
||||||
|
},
|
||||||
|
error : function( xhr, err ) {
|
||||||
|
alert('Error');
|
||||||
|
}
|
||||||
|
})
|
||||||
|
);
|
||||||
break;
|
break;
|
||||||
case "cancel":
|
case "cancel":
|
||||||
self.close();
|
$('.close-dialog').trigger('click');
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -23,11 +36,14 @@
|
|||||||
{
|
{
|
||||||
window.name="LINKFIELD";
|
window.name="LINKFIELD";
|
||||||
}
|
}
|
||||||
|
$( document ).ready(function() {
|
||||||
|
loaded();
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body onload="loaded();" class="dialog">
|
<body class="dialog">
|
||||||
<center>
|
<center>
|
||||||
<form action="linkfield3.php" method="post" target="LINKFIELD">
|
<form class="link-field-2" action="linkfield3.php" method="post" target="LINKFIELD">
|
||||||
<input type="hidden" name="piv" value="{{ piv }}">
|
<input type="hidden" name="piv" value="{{ piv }}">
|
||||||
<input type="hidden" name="bid" value="{{ bid }}">
|
<input type="hidden" name="bid" value="{{ bid }}">
|
||||||
<input type="hidden" name="tid" value="{{ tid }}">
|
<input type="hidden" name="tid" value="{{ tid }}">
|
||||||
|
@@ -42,7 +42,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
<br/>
|
<br/>
|
||||||
<input type="button" value="{{ 'boutton::fermer' | trans }}" onclick="self.close();">
|
<input type="button" value="{{ 'boutton::fermer' | trans }}" onclick="$('.close-dialog').trigger('click');">
|
||||||
</form>
|
</form>
|
||||||
</center>
|
</center>
|
||||||
</body>
|
</body>
|
||||||
|
@@ -56,7 +56,7 @@
|
|||||||
</form>
|
</form>
|
||||||
</center>
|
</center>
|
||||||
{% else %}
|
{% else %}
|
||||||
{% if nb_candidates_bad > 0 %}t
|
{% if nb_candidates_bad > 0 %}
|
||||||
{% set prop_label = 'thesaurus:: est candidat en provenance des champs mais ne peut etre accepte a cet emplacement du thesaurus' | trans %}
|
{% set prop_label = 'thesaurus:: est candidat en provenance des champs mais ne peut etre accepte a cet emplacement du thesaurus' | trans %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% set prop_label = 'thesaurus:: n\'est pas present dans les candidats' | trans %}
|
{% set prop_label = 'thesaurus:: n\'est pas present dans les candidats' | trans %}
|
||||||
@@ -112,17 +112,19 @@
|
|||||||
switch(refresh.item(i).getAttribute("type"))
|
switch(refresh.item(i).getAttribute("type"))
|
||||||
{
|
{
|
||||||
case "CT":
|
case "CT":
|
||||||
{{ opener }}.reloadCtermsBranch(refresh.item(i).getAttribute("id"));
|
reloadCtermsBranch(refresh.item(i).getAttribute("id"));
|
||||||
break;
|
break;
|
||||||
case "TH":
|
case "TH":
|
||||||
{{ opener }}.reloadThesaurusBranch(refresh.item(i).getAttribute("id"));
|
reloadThesaurusBranch(refresh.item(i).getAttribute("id"));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
self.close();
|
$("#NEWSY_DLG_CONFIRM").dialog('close');
|
||||||
|
$("#NEWSY_DLG_CONFIRM").html('');
|
||||||
break;
|
break;
|
||||||
case "cancel":
|
case "cancel":
|
||||||
self.close();
|
$("#NEWSY_DLG_CONFIRM").dialog('close');
|
||||||
|
$("#NEWSY_DLG_CONFIRM").html('');
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -168,6 +170,8 @@
|
|||||||
break;
|
break;
|
||||||
case "cancel":
|
case "cancel":
|
||||||
$("#NEWSY_DLG_CONFIRM").dialog('close');
|
$("#NEWSY_DLG_CONFIRM").dialog('close');
|
||||||
|
$("#NEWSY_DLG_CONFIRM").html('');
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -24,15 +24,15 @@
|
|||||||
font-weight:900;
|
font-weight:900;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<script type="text/javascript" src="/assets/vendors/jquery/jquery{% if not app.debug %}.min{% endif %}.js"></script>
|
|
||||||
<script type="text/javascript" src="/assets/thesaurus/js/thesaurus{% if not app.debug %}.min{% endif %}.js"></script>
|
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
function loaded()
|
function loaded()
|
||||||
{
|
{
|
||||||
window.name="PROPERTIES";
|
|
||||||
self.focus();
|
self.focus();
|
||||||
}
|
}
|
||||||
|
$( document ).ready(function() {
|
||||||
|
loaded();
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body id="desktop" onload="loaded();" class="dialog">
|
<body id="desktop" onload="loaded();" class="dialog">
|
||||||
|
@@ -84,7 +84,12 @@
|
|||||||
$("#SEARCH_DLG").dialog({
|
$("#SEARCH_DLG").dialog({
|
||||||
modal: true,
|
modal: true,
|
||||||
title: "{{ 'Chercher' | trans }}",
|
title: "{{ 'Chercher' | trans }}",
|
||||||
autoOpen:false
|
autoOpen:false,
|
||||||
|
open:function () {
|
||||||
|
$(this).closest(".ui-dialog")
|
||||||
|
.find(".ui-button:first") // the first button
|
||||||
|
.addClass("close-dialog").hide();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
$("#NEWSY_DLG").dialog({
|
$("#NEWSY_DLG").dialog({
|
||||||
modal: true,
|
modal: true,
|
||||||
@@ -302,11 +307,20 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- ------------------------- end "new term/synonym" dialog ---------------------- -->
|
<!-- ------------------------- end "new term/synonym" dialog ---------------------- -->
|
||||||
|
|
||||||
<!-- ------------------------ the "new term/synonym" dialog ----------------------- -->
|
|
||||||
<div id="NEWSY_DLG_CONFIRM">
|
<div id="NEWSY_DLG_CONFIRM">
|
||||||
<div class="inner"></div>
|
|
||||||
</div>
|
</div>
|
||||||
<!-- ------------------------- end "new term/synonym" dialog ---------------------- -->
|
<div id="DLG_EXPORT">
|
||||||
|
</div>
|
||||||
|
<div id="DLG_EXPORT_TOPICS">
|
||||||
|
</div>
|
||||||
|
<div id="DLG_PROPERTIES">
|
||||||
|
</div>
|
||||||
|
<div id="DLG_LINK_FIELD_1">
|
||||||
|
</div>
|
||||||
|
<div id="DLG_LINK_FIELD_2">
|
||||||
|
</div>
|
||||||
|
<div id="DLG_LINK_FIELD_3">
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -324,23 +338,25 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
||||||
//Ajax function to get data
|
//Ajax function to get data
|
||||||
function loadDataAjax(urls, width, height) {
|
var title = '';
|
||||||
$("#NEWSY_DLG_CONFIRM").dialog({
|
function loadDataAjax(urls, width, height, bloc, title) {
|
||||||
title: '{{ 'thesaurus:dialog:: confirm' | trans }}',
|
$(bloc).dialog({
|
||||||
|
title: title,
|
||||||
width: width,
|
width: width,
|
||||||
height: height,
|
height: height,
|
||||||
|
modal: true,
|
||||||
create:function () {
|
create:function () {
|
||||||
$(this).closest(".ui-dialog")
|
$(this).closest(".ui-dialog")
|
||||||
.find(".ui-button:first") // the first button
|
.find(".ui-button:first") // the first button
|
||||||
.addClass("close-dialog");
|
.addClass("close-dialog").hide();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: `${urls}`,
|
url: `${urls}`,
|
||||||
success: function(data){
|
success: function(data){
|
||||||
$("#NEWSY_DLG_CONFIRM .inner").html('');
|
$(bloc).html('');
|
||||||
$("#NEWSY_DLG_CONFIRM .inner").append(data);
|
$(bloc).append(data);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -613,7 +629,7 @@
|
|||||||
url += "&typ=CT";
|
url += "&typ=CT";
|
||||||
|
|
||||||
// w = window.open(url, "PROPERTIES", "directories=no, height=340, width=500, location=no, menubar=no, resizable=yes, scrollbars=no, status=no, toolbar=no");
|
// w = window.open(url, "PROPERTIES", "directories=no, height=340, width=500, location=no, menubar=no, resizable=yes, scrollbars=no, status=no, toolbar=no");
|
||||||
w = loadDataAjax(url, 500 , 340);
|
w = loadDataAjax(url, 500 , 340, '#DLG_PROPERTIES','{{ 'thesaurus:dialog:: properties' | trans }}');
|
||||||
break;
|
break;
|
||||||
case "kcterm_search":
|
case "kcterm_search":
|
||||||
$("#SEARCH_DLG").dialog("option", "buttons",
|
$("#SEARCH_DLG").dialog("option", "buttons",
|
||||||
@@ -661,7 +677,7 @@
|
|||||||
url += "&id=" + o.id.substr(4);
|
url += "&id=" + o.id.substr(4);
|
||||||
url += "&typ=CT";
|
url += "&typ=CT";
|
||||||
// w = window.open(url, "EXPORT", "directories=no, height=300, width=700, location=no, menubar=no, resizable=yes, scrollbars=yes, status=no, toolbar=no");
|
// w = window.open(url, "EXPORT", "directories=no, height=300, width=700, location=no, menubar=no, resizable=yes, scrollbars=yes, status=no, toolbar=no");
|
||||||
w = loadDataAjax(url, 700 , 340);
|
w = loadDataAjax(url, 700 , 340,'#DLG_EXPORT', '{{ 'thesaurus:dialog:: export' | trans }}');
|
||||||
break;
|
break;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -724,7 +740,7 @@
|
|||||||
url += "&typ=CT";
|
url += "&typ=CT";
|
||||||
|
|
||||||
//w = window.open(url, "PROPERTIES", "directories=no, height=340, width=500, location=no, menubar=no, resizable=yes, scrollbars=no, status=no, toolbar=no");
|
//w = window.open(url, "PROPERTIES", "directories=no, height=340, width=500, location=no, menubar=no, resizable=yes, scrollbars=no, status=no, toolbar=no");
|
||||||
w = loadDataAjax(url, 500 , 340);
|
w = loadDataAjax(url, 500 , 340,'#DLG_PROPERTIES', '{{ 'thesaurus:dialog:: properties' | trans }}');
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -1051,11 +1067,20 @@
|
|||||||
url += "&sylng=" + encodeURIComponent(lng);
|
url += "&sylng=" + encodeURIComponent(lng);
|
||||||
|
|
||||||
// w = window.open(url, "NEWTERM", "directories=no, height=290, width=490, location=no, menubar=no, resizable=yes, scrollbars=yes, status=no, toolbar=no");
|
// w = window.open(url, "NEWTERM", "directories=no, height=290, width=490, location=no, menubar=no, resizable=yes, scrollbars=yes, status=no, toolbar=no");
|
||||||
w = loadDataAjax(url,490, 290);
|
w = loadDataAjax(url,490, 290,"#NEWSY_DLG_CONFIRM",'{{ 'thesaurus:dialog:: new term / synonym' | trans }}');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$("#NEWSY_DLG").dialog({
|
||||||
|
open:function () {
|
||||||
|
$(this).closest(".ui-dialog")
|
||||||
|
.find(".ui-button:first") // the first button
|
||||||
|
.addClass("close-dialog").hide();
|
||||||
|
}
|
||||||
|
});
|
||||||
$("#NEWSY_DLG").dialog("open");
|
$("#NEWSY_DLG").dialog("open");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@@ -1108,7 +1133,7 @@
|
|||||||
url += "&piv={{ piv }}";
|
url += "&piv={{ piv }}";
|
||||||
url += "&tid=" + o.id.substr(4);
|
url += "&tid=" + o.id.substr(4);
|
||||||
// w = window.open(url, "LINK", "directories=no, height=340, width=500, location=no, menubar=no, resizable=yes, scrollbars=no, status=no, toolbar=no");
|
// w = window.open(url, "LINK", "directories=no, height=340, width=500, location=no, menubar=no, resizable=yes, scrollbars=no, status=no, toolbar=no");
|
||||||
w = loadDataAjax(url,700, 400);
|
w = loadDataAjax(url,700, 400, "#DLG_LINK_FIELD_1", '{{ 'thesaurus:dialog:: linkfields' | trans }}');
|
||||||
break;
|
break;
|
||||||
case "kterm_properties":
|
case "kterm_properties":
|
||||||
var myObj = { "win":window };
|
var myObj = { "win":window };
|
||||||
@@ -1119,7 +1144,7 @@
|
|||||||
url += "&typ=TH";
|
url += "&typ=TH";
|
||||||
|
|
||||||
// w = window.open(url, "PROPERTIES", "directories=no, height=300, width=500, location=no, menubar=no, resizable=yes, scrollbars=no, status=no, toolbar=no");
|
// w = window.open(url, "PROPERTIES", "directories=no, height=300, width=500, location=no, menubar=no, resizable=yes, scrollbars=no, status=no, toolbar=no");
|
||||||
w = loadDataAjax(url,700, 400);
|
w = loadDataAjax(url,700, 400, "#DLG_PROPERTIES", '{{ 'thesaurus:dialog:: properties' | trans }}');
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case "kterm_search":
|
case "kterm_search":
|
||||||
@@ -1158,6 +1183,13 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
$("#SEARCH_DLG").dialog({
|
||||||
|
open:function () {
|
||||||
|
$(this).closest(".ui-dialog")
|
||||||
|
.find(".ui-button:first") // the first button
|
||||||
|
.addClass("close-dialog").hide();
|
||||||
|
}
|
||||||
|
});
|
||||||
$("#SEARCH_DLG").dialog("open");
|
$("#SEARCH_DLG").dialog("open");
|
||||||
break;
|
break;
|
||||||
case "kterm_export":
|
case "kterm_export":
|
||||||
@@ -1168,7 +1200,7 @@
|
|||||||
url += "&id=" + o.id.substr(4);
|
url += "&id=" + o.id.substr(4);
|
||||||
url += "&typ=TH";
|
url += "&typ=TH";
|
||||||
//w = window.open(url, "EXPORT", "directories=no, height=300, width=700, location=no, menubar=no, resizable=yes, scrollbars=yes, status=no, toolbar=no");
|
//w = window.open(url, "EXPORT", "directories=no, height=300, width=700, location=no, menubar=no, resizable=yes, scrollbars=yes, status=no, toolbar=no");
|
||||||
w = loadDataAjax(url, 700, 400);
|
w = loadDataAjax(url, 700, 400, "#DLG_EXPORT", '{{ 'thesaurus:dialog:: export' | trans }}');
|
||||||
break;
|
break;
|
||||||
case "kterm_topics":
|
case "kterm_topics":
|
||||||
var myObj = { "win":window };
|
var myObj = { "win":window };
|
||||||
@@ -1179,7 +1211,7 @@
|
|||||||
url += "&typ=TH";
|
url += "&typ=TH";
|
||||||
url += "&obr=" + list_opened_branches(o.parentNode);
|
url += "&obr=" + list_opened_branches(o.parentNode);
|
||||||
//w = window.open(url, "EXPORT", "directories=no, height=400, width=550, location=no, menubar=no, resizable=yes, scrollbars=yes, status=no, toolbar=no");
|
//w = window.open(url, "EXPORT", "directories=no, height=400, width=550, location=no, menubar=no, resizable=yes, scrollbars=yes, status=no, toolbar=no");
|
||||||
w = loadDataAjax(url, 700, 400);
|
w = loadDataAjax(url, 700, 400, "#DLG_EXPORT_TOPICS", '{{ 'thesaurus:dialog:: export topics' | trans }}');
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@@ -1284,7 +1316,7 @@
|
|||||||
url += "&id=" + o.id.substr(4);
|
url += "&id=" + o.id.substr(4);
|
||||||
url += "&typ=TH";
|
url += "&typ=TH";
|
||||||
// w = window.open(url, "PROPERTIES", "directories=no, height=340, width=500, location=no, menubar=no, resizable=yes, scrollbars=no, status=no, toolbar=no");
|
// w = window.open(url, "PROPERTIES", "directories=no, height=340, width=500, location=no, menubar=no, resizable=yes, scrollbars=no, status=no, toolbar=no");
|
||||||
w = loadDataAjax(url, 500 , 340);
|
w = loadDataAjax(url, 500 , 340, "#NEWSY_DLG_CONFIRM", '{{ 'thesaurus:dialog:: confirm' | trans }}');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@@ -1358,7 +1390,7 @@
|
|||||||
url += "&src=" + eventObj.Src0.id.substr(4);
|
url += "&src=" + eventObj.Src0.id.substr(4);
|
||||||
url += "&tgt=" + tgt0.id.substr(4);
|
url += "&tgt=" + tgt0.id.substr(4);
|
||||||
//w = window.open(url, "ACCEPT", "directories=no, height=300, width=500, location=no, menubar=no, resizable=yes, scrollbars=no, status=no, toolbar=no");
|
//w = window.open(url, "ACCEPT", "directories=no, height=300, width=500, location=no, menubar=no, resizable=yes, scrollbars=no, status=no, toolbar=no");
|
||||||
w = loadDataAjax(url, 500 , 340);
|
w = loadDataAjax(url, 500 , 340, "#NEWSY_DLG_CONFIRM", '{{ 'thesaurus:dialog:: confirm' | trans }}');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@@ -1413,7 +1445,7 @@
|
|||||||
url += "&bid={{ bid }}";
|
url += "&bid={{ bid }}";
|
||||||
url += "&id=";
|
url += "&id=";
|
||||||
// w = window.open(url, "IMPORT", "directories=no, height=400, width=600, location=no, menubar=no, resizable=yes, scrollbars=no, status=no, toolbar=no");
|
// w = window.open(url, "IMPORT", "directories=no, height=400, width=600, location=no, menubar=no, resizable=yes, scrollbars=no, status=no, toolbar=no");
|
||||||
w = loadDataAjax(url, 600 , 400);
|
w = loadDataAjax(url, 600 , 400, "#NEWSY_DLG_CONFIRM", confirm);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user