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:
@@ -11,12 +11,12 @@
|
||||
switch(button)
|
||||
{
|
||||
case "submit":
|
||||
document.forms[0].target = (format == 'tofiles' ? "_self" : "EXPORT2");
|
||||
document.forms[0].submit();
|
||||
$('.export-topics-form').submit();
|
||||
$('.close-dialog').trigger('click');
|
||||
break;
|
||||
case "cancel":
|
||||
self.returnValue = null;
|
||||
self.close();
|
||||
$('.close-dialog').trigger('click');
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -45,21 +45,25 @@
|
||||
}
|
||||
function chgFormat()
|
||||
{
|
||||
var i, f;
|
||||
for(i=0; i<document.forms[0].ofm.length; i++)
|
||||
var i;
|
||||
for(i=0; i<$('.ofm').length; i++)
|
||||
{
|
||||
f = document.forms[0].ofm[i].value;
|
||||
if(document.forms[0].ofm[i].checked)
|
||||
{
|
||||
format = f;
|
||||
if($(".ofm_1")[0].checked) {
|
||||
format = $(".ofm_1").val();
|
||||
}
|
||||
if($(".ofm_2")[0].checked) {
|
||||
format = $(".ofm_2").val();
|
||||
}
|
||||
}
|
||||
}
|
||||
$( document ).ready(function() {
|
||||
loaded();
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body onload="loaded();" class="dialog">
|
||||
<body class="dialog">
|
||||
<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="piv" value="{{ piv }}" >
|
||||
<input type="hidden" name="id" value="{{ id }}" >
|
||||
@@ -71,11 +75,11 @@
|
||||
<div class="x3Dbox">
|
||||
<span class="title">{{ 'thesaurus:: exporter' | trans }}</span>
|
||||
<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 }}
|
||||
</div>
|
||||
<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 %}
|
||||
</div>
|
||||
</div>
|
||||
@@ -85,7 +89,7 @@
|
||||
<div class="x3Dbox">
|
||||
<span class="title">{{ 'phraseanet:: tri' | trans }}</span>
|
||||
<div style="white-space:nowrap">
|
||||
<input type='checkbox' name='srt' checked onclick="chgFormat();">
|
||||
<input type='checkbox' name='srt' checked >
|
||||
{{ 'phraseanet:: tri par date' | trans }}
|
||||
</div>
|
||||
</div>
|
||||
@@ -95,15 +99,15 @@
|
||||
<div class="x3Dbox">
|
||||
<span class="title">{{ 'thesaurus:: recherche' | trans }}</span>
|
||||
<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 }}
|
||||
</div>
|
||||
<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 }}
|
||||
</div>
|
||||
<div style="white-space:nowrap">
|
||||
<input type='checkbox' name='sand' onclick="chgFormat();">
|
||||
<input type='checkbox' name='sand' >
|
||||
{{ 'thesaurus:: question complete (avec operateurs)' | trans }}
|
||||
</div>
|
||||
</div>
|
||||
@@ -113,23 +117,23 @@
|
||||
<div class="x3Dbox">
|
||||
<span class="title">{{ 'thesaurus:: presentation' | trans }}</span>
|
||||
<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 }}
|
||||
</div>
|
||||
<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 }}
|
||||
</div>
|
||||
<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 }}
|
||||
</div>
|
||||
<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 }}
|
||||
</div>
|
||||
<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 }}
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user