|
|
|
@ -1,19 +1,19 @@
|
|
|
|
|
[(#OBJET|=={article}|?{#SET{message,<:duplicator:message_avertissement_article:>},#SET{message,<:duplicator:message_avertissement_rubrique:>}})] |
|
|
|
|
<script> |
|
|
|
|
jQuery(function() { |
|
|
|
|
jQuery(document).on('click','.dupliquer a', function(e) { |
|
|
|
|
lien = jQuery(this).attr('href'); |
|
|
|
|
var lien = jQuery(this).attr('href'), |
|
|
|
|
message = jQuery(this).attr('data-descaction'); |
|
|
|
|
jQuery('<div></div>') |
|
|
|
|
.html('<p><span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 20px 0;"></span>#GET{message}</p>') |
|
|
|
|
.html('<p><span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 20px 0;"></span>'+message+'</p>') |
|
|
|
|
.dialog({ |
|
|
|
|
resizable: false, |
|
|
|
|
modal: true, |
|
|
|
|
buttons: { |
|
|
|
|
"Confirmer": function() { |
|
|
|
|
"<:duplicator:bouton_confirmer:>": function() { |
|
|
|
|
window.location.href = lien; |
|
|
|
|
jQuery(this).dialog( "close" ); |
|
|
|
|
}, |
|
|
|
|
"Annuler": function() { |
|
|
|
|
"<:bouton_annuler:>": function() { |
|
|
|
|
jQuery(this).dialog( "close" ); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -22,10 +22,16 @@
|
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
</script> |
|
|
|
|
<span class="icone s24 horizontale dupliquer"> |
|
|
|
|
|
|
|
|
|
[(#OBJET|=={rubrique}|oui) |
|
|
|
|
<a href="[(#URL_ACTION_AUTEUR{duplicator,#OBJET:#ID_OBJET,#URL_ECRIRE{rubrique,id_rubrique=#ID_OBJET}})]"><img src="#CHEMIN{theme/img/duplicator.png}" width='24' height='24' /><b><:duplicator:action_dupliquer_rubrique:></b></a> |
|
|
|
|
<span class="icone s24 horizontale dupliquer"> |
|
|
|
|
<a href="[(#URL_ACTION_AUTEUR{duplicator,#OBJET:#ID_OBJET})]" data-descaction="<:duplicator:message_avertissement_rubrique|attribut_html:>">[(#CHEMIN_IMAGE{duplicator-24.png}|balise_img)]<b><:duplicator:action_dupliquer_rubrique:></b></a> |
|
|
|
|
</span> |
|
|
|
|
<span class="icone s24 horizontale dupliquer"> |
|
|
|
|
<a href="[(#URL_ACTION_AUTEUR{duplicator,#OBJET:#ID_OBJET:false})]" data-descaction="<:duplicator:message_avertissement_rubrique_arbo|attribut_html:>">[(#CHEMIN_IMAGE{duplicator-24.png}|balise_img)]<b><:duplicator:action_dupliquer_rubrique_arbo:></b></a> |
|
|
|
|
</span> |
|
|
|
|
][(#OBJET|=={article}|oui) |
|
|
|
|
<a href="[(#URL_ACTION_AUTEUR{duplicator,#OBJET:#ID_OBJET,#URL_ECRIRE{article,id_article=#ID_OBJET}})]"><img src="#CHEMIN{theme/img/duplicator.png}" width='24' height='24' /><b><:duplicator:action_dupliquer_article:></b></a> |
|
|
|
|
] |
|
|
|
|
<span class="icone s24 horizontale dupliquer"> |
|
|
|
|
<a href="[(#URL_ACTION_AUTEUR{duplicator,#OBJET:#ID_OBJET})]" data-descaction="<:duplicator:message_avertissement_article|attribut_html:>">[(#CHEMIN_IMAGE{duplicator-24.png}|balise_img)]<b><:duplicator:action_dupliquer_article:></b></a> |
|
|
|
|
</span>] |
|
|
|
|
</span> |