mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
PHRAS-3148
This commit is contained in:
@@ -351,7 +351,8 @@ H3, H4 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#delete_sy {
|
#delete_sy {
|
||||||
background: $blue-tsr;
|
background: orange;
|
||||||
|
border: 1px solid darken(orange,20%);
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
padding: 1px 10px;
|
padding: 1px 10px;
|
||||||
@@ -404,7 +405,7 @@ H3, H4 {
|
|||||||
|
|
||||||
.populate_btn {
|
.populate_btn {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
background: $blue-tsr;
|
background: #884c92;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
right: 50px;
|
right: 50px;
|
||||||
top: 50px;
|
top: 50px;
|
||||||
@@ -416,7 +417,7 @@ H3, H4 {
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background: darken($blue-tsr, 20%);
|
background: darken(#884c92, 20%);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -429,4 +430,9 @@ H3, H4 {
|
|||||||
border-bottom-right-radius: 0;
|
border-bottom-right-radius: 0;
|
||||||
border-bottom-left-radius: 0;
|
border-bottom-left-radius: 0;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#flagsMenu p {
|
||||||
|
color: #fff;
|
||||||
|
padding: 0 10px;
|
||||||
}
|
}
|
@@ -30,7 +30,7 @@
|
|||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<div class="menu" id="syMenu" style="z-index:999">
|
<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>
|
||||||
<div id="desktop" class="dialog">
|
<div id="desktop" class="dialog">
|
||||||
<div class="menu" id="flagsMenu" style="z-index:999">
|
<div class="menu" id="flagsMenu" style="z-index:999">
|
||||||
@@ -223,7 +223,7 @@
|
|||||||
sy_list = ret.getElementsByTagName("sy_list").item(0);
|
sy_list = ret.getElementsByTagName("sy_list").item(0);
|
||||||
//refresh_sy(sy_list);
|
//refresh_sy(sy_list);
|
||||||
|
|
||||||
refresh = ret.getElementsByTagName("refresh");
|
/* refresh = ret.getElementsByTagName("refresh");
|
||||||
for(i=0; i<refresh.length; i++)
|
for(i=0; i<refresh.length; i++)
|
||||||
{
|
{
|
||||||
switch(refresh.item(i).getAttribute("type"))
|
switch(refresh.item(i).getAttribute("type"))
|
||||||
@@ -237,7 +237,16 @@
|
|||||||
myGUI.select(document.getElementById("THE_{{ id }}"));
|
myGUI.select(document.getElementById("THE_{{ id }}"));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
|
var new_url = $('#url_properties').val();
|
||||||
|
$.ajax({
|
||||||
|
type: "GET",
|
||||||
|
url: `${new_url}`,
|
||||||
|
success: function(data){
|
||||||
|
$('#DLG_PROPERTIES').html('');
|
||||||
|
$('#DLG_PROPERTIES').append(data);
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -313,7 +322,7 @@
|
|||||||
;
|
;
|
||||||
if(tr)
|
if(tr)
|
||||||
myGUI.select(tr);
|
myGUI.select(tr);
|
||||||
switch(o.id.substr(0, 4))
|
/* switch(o.id.substr(0, 4))
|
||||||
{
|
{
|
||||||
case "FLG_": // le drapeau
|
case "FLG_": // le drapeau
|
||||||
document.getElementById("flagsMenu").runAsMenu( evt, tr );
|
document.getElementById("flagsMenu").runAsMenu( evt, tr );
|
||||||
@@ -323,7 +332,7 @@
|
|||||||
$('.delete_term').html('');
|
$('.delete_term').html('');
|
||||||
$('.delete_term', tr).append($('#syMenu').html());
|
$('.delete_term', tr).append($('#syMenu').html());
|
||||||
break;
|
break;
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "MOUSEDOWN":
|
case "MOUSEDOWN":
|
||||||
@@ -342,6 +351,18 @@
|
|||||||
syChgPos(-1);
|
syChgPos(-1);
|
||||||
break;
|
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;
|
break;
|
||||||
case "DBLCLICK":
|
case "DBLCLICK":
|
||||||
|
@@ -343,7 +343,7 @@
|
|||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
<input type="hidden" id="url_properties">
|
||||||
<div id="clipboard" style="position:absolute; top:0px; left:0px; z-index:99"> </div>
|
<div id="clipboard" style="position:absolute; top:0px; left:0px; z-index:99"> </div>
|
||||||
|
|
||||||
|
|
||||||
@@ -643,9 +643,10 @@
|
|||||||
url += "&piv={{ piv }}";
|
url += "&piv={{ piv }}";
|
||||||
url += "&id=" + o.id.substr(4);
|
url += "&id=" + o.id.substr(4);
|
||||||
url += "&typ=CT";
|
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 = 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 }}');
|
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",
|
||||||
@@ -754,7 +755,7 @@
|
|||||||
url += "&piv={{ piv }}";
|
url += "&piv={{ piv }}";
|
||||||
url += "&id=" + o.id.substr(4);
|
url += "&id=" + o.id.substr(4);
|
||||||
url += "&typ=CT";
|
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 = 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 }}');
|
w = loadDataAjax(url, 500 , 340,'#DLG_PROPERTIES', '{{ 'thesaurus:: Proprietes' | trans }}');
|
||||||
}
|
}
|
||||||
@@ -1158,7 +1159,7 @@
|
|||||||
url += "&piv={{ piv }}";
|
url += "&piv={{ piv }}";
|
||||||
url += "&id=" + o.id.substr(4);
|
url += "&id=" + o.id.substr(4);
|
||||||
url += "&typ=TH";
|
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 = 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 }}');
|
w = loadDataAjax(url,700, 400, "#DLG_PROPERTIES", '{{ 'thesaurus:: Proprietes' | trans }}');
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user