PHRAS-3148

This commit is contained in:
Harrys Ravalomanana
2020-07-01 17:40:22 +04:00
parent 88ac03d738
commit 237f7a05a4
6 changed files with 20 additions and 20 deletions

View File

@@ -52,9 +52,9 @@
{{ 'thesaurus:: selectionner la provenance a accepter' | trans }}
{% endif %}
<br/>
<input type="button" id="cancel_button" value="{{ 'boutton::annuler' | trans }}" onclick="clkBut('cancel');" style="width:100px;">
<input type="button" id="cancel_button" class="cancel_btn" value="{{ 'boutton::annuler' | trans }}" onclick="clkBut('cancel');" >
&nbsp;&nbsp;&nbsp;
<input type="button" id="submit_button" value="{{ 'boutton::valider' | trans }}" onclick="clkBut('submit');" style="width:100px;">
<input type="button" id="submit_button" class="validate_btn" value="{{ 'boutton::valider' | trans }}" onclick="clkBut('submit');">
</form>
</div>
{% else %}
@@ -70,9 +70,9 @@
{{ prop_label }}
<br/>
<form class="thesaurus_confirm_bottom_block">
<input type="button" id="cancel_button" value="{{ 'boutton::annuler' | trans }}" onclick="clkBut('cancel');" style="width:100px;">
<input type="button" id="cancel_button" class="cancel_btn" value="{{ 'boutton::annuler' | trans }}" onclick="clkBut('cancel');" >
&nbsp;&nbsp;&nbsp;
<input type="button" id="submit_button" value="{{ 'boutton::valider' | trans }}" onclick="clkBut('submit');" style="width:100px;">
<input type="button" id="submit_button" class="validate_btn" value="{{ 'boutton::valider' | trans }}" onclick="clkBut('submit');" >
</form>
{% endif %}
</body>

View File

@@ -30,7 +30,7 @@
});
</script>
<div class="menu" id="syMenu" style="z-index:999">
<a href="javascript:void(0)" id="delete_sy">{{ 'thesaurus::menu: Mettre dans le stock' | trans }}</a>
<a href="javascript:void(0)" id="delete_sy">{{ 'thesaurus:properties:: Mettre dans le stock' | trans }}</a>
</div>
<div id="desktop" class="dialog">
<div class="menu" id="flagsMenu" style="z-index:999">
@@ -223,7 +223,7 @@
sy_list = ret.getElementsByTagName("sy_list").item(0);
//refresh_sy(sy_list);
/* refresh = ret.getElementsByTagName("refresh");
refresh = ret.getElementsByTagName("refresh");
for(i=0; i<refresh.length; i++)
{
switch(refresh.item(i).getAttribute("type"))
@@ -237,7 +237,7 @@
myGUI.select(document.getElementById("THE_{{ id }}"));
break;
}
}*/
}
var new_url = $('#url_properties').val();
$.ajax({
type: "GET",
@@ -358,9 +358,12 @@
document.getElementById("flagsMenu").runAsMenu( evt, tr );
break;
case "SYN_": // le synonyme
document.getElementById("syMenu").runAsMenu( evt, tr );
$('.delete_term').html('');
$('.delete_term', tr).append($('#syMenu').html());
if (stock == false)
{
document.getElementById("syMenu").runAsMenu(evt, tr);
$('.delete_term').html('');
$('.delete_term', tr).append($('#syMenu').html());
}
break;
}
}

View File

@@ -355,6 +355,7 @@
//Ajax function to get data
var title = '';
var stock = false;
function loadDataAjax(urls, width, height, bloc, title) {
$(bloc).dialog({
title: title,
@@ -644,6 +645,7 @@
url += "&id=" + o.id.substr(4);
url += "&typ=CT";
$('#url_properties').val(url);
stock = true;
// 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, '#DLG_PROPERTIES','{{ 'thesaurus:dialog:: properties' | trans }}');
@@ -756,6 +758,7 @@
url += "&id=" + o.id.substr(4);
url += "&typ=CT";
$('#url_properties').val(url);
stock = false;
//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,'#DLG_PROPERTIES', '{{ 'thesaurus:: Proprietes' | trans }}');
}
@@ -1084,7 +1087,7 @@
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 = loadDataAjax(url,490, 290,"#NEWSY_DLG_CONFIRM",'{% if typ == "TS" %}{{ 'thesaurus:: Nouveau terme specifique' | trans }}{% else %}{{ 'thesaurus:: Nouveau synonyme' | trans }}{% endif %}');
w = loadDataAjax(url,490, 350,"#NEWSY_DLG_CONFIRM",'{% if typ == "TS" %}{{ 'thesaurus:: Nouveau terme specifique' | trans }}{% else %}{{ 'thesaurus:: Nouveau synonyme' | trans }}{% endif %}');
}
}
],
@@ -1150,7 +1153,7 @@
url += "&piv={{ piv }}";
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 = loadDataAjax(url,700, 400, "#DLG_LINK_FIELD_1", '{{ 'thesaurus:: Lier la branche de thesaurus au champ' | trans }}');
w = loadDataAjax(url,700, 430, "#DLG_LINK_FIELD_1", '{{ 'thesaurus:: Lier la branche de thesaurus au champ' | trans }}');
break;
case "kterm_properties":
var myObj = { "win":window };
@@ -1160,6 +1163,7 @@
url += "&id=" + o.id.substr(4);
url += "&typ=TH";
$('#url_properties').val(url);
stock = false;
// 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, "#DLG_PROPERTIES", '{{ 'thesaurus:: Proprietes' | trans }}');