PHRAS-3148

This commit is contained in:
Harrys Ravalomanana
2020-07-01 13:32:26 +04:00
parent 9e3d9f9c7d
commit fc7b477d59
3 changed files with 40 additions and 12 deletions

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: supprimer' | trans }}</a>
<a href="javascript:void(0)" id="delete_sy">{{ 'thesaurus::menu: 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,16 @@
myGUI.select(document.getElementById("THE_{{ id }}"));
break;
}
}
}*/
var new_url = $('#url_properties').val();
$.ajax({
type: "GET",
url: `${new_url}`,
success: function(data){
$('#DLG_PROPERTIES').html('');
$('#DLG_PROPERTIES').append(data);
}
});
}
break;
}
@@ -313,7 +322,7 @@
;
if(tr)
myGUI.select(tr);
switch(o.id.substr(0, 4))
/* switch(o.id.substr(0, 4))
{
case "FLG_": // le drapeau
document.getElementById("flagsMenu").runAsMenu( evt, tr );
@@ -323,7 +332,7 @@
$('.delete_term').html('');
$('.delete_term', tr).append($('#syMenu').html());
break;
}
}*/
}
break;
case "MOUSEDOWN":
@@ -342,6 +351,18 @@
syChgPos(-1);
break;
}
switch(o.id.substr(0, 4))
{
case "FLG_": // le drapeau
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());
break;
}
}
break;
case "DBLCLICK":

View File

@@ -343,7 +343,7 @@
<br/>
</form>
<input type="hidden" id="url_properties">
<div id="clipboard" style="position:absolute; top:0px; left:0px; z-index:99">&nbsp;</div>
@@ -643,9 +643,10 @@
url += "&piv={{ piv }}";
url += "&id=" + o.id.substr(4);
url += "&typ=CT";
$('#url_properties').val(url);
// 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 }}');
break;
case "kcterm_search":
$("#SEARCH_DLG").dialog("option", "buttons",
@@ -754,7 +755,7 @@
url += "&piv={{ piv }}";
url += "&id=" + o.id.substr(4);
url += "&typ=CT";
$('#url_properties').val(url);
//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 }}');
}
@@ -1158,7 +1159,7 @@
url += "&piv={{ piv }}";
url += "&id=" + o.id.substr(4);
url += "&typ=TH";
$('#url_properties').val(url);
// 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 }}');