You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.9 KiB
HTML
56 lines
1.9 KiB
HTML
<script>
|
|
jQuery(function() {
|
|
jQuery(document).on('click','.dupliquer a', function(e) {
|
|
var lien = jQuery(this).attr('href'),
|
|
lien_arbo = jQuery(this).data('lien_ss_articles'),
|
|
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>'+message+'</p>')
|
|
.dialog({
|
|
resizable: false,
|
|
modal: true,
|
|
buttons: {
|
|
[(#OBJET|=={rubrique}|oui)
|
|
"<:duplicator:bouton_confirmer_rub:>": function() {
|
|
window.location.href = lien;
|
|
jQuery(this).dialog( "close" );
|
|
},
|
|
"<:duplicator:bouton_confirmer_arbo:>": function() {
|
|
window.location.href = lien_arbo;
|
|
jQuery(this).dialog( "close" );
|
|
},
|
|
"<:bouton_annuler:>": function() {
|
|
jQuery(this).dialog( "close" );
|
|
}
|
|
]
|
|
[(#OBJET|=={article}|oui)
|
|
"<:duplicator:bouton_confirmer:>": function() {
|
|
window.location.href = lien;
|
|
jQuery(this).dialog( "close" );
|
|
},
|
|
"<:bouton_annuler:>": function() {
|
|
jQuery(this).dialog( "close" );
|
|
}
|
|
]
|
|
}
|
|
});
|
|
e.preventDefault();
|
|
});
|
|
});
|
|
</script>
|
|
|
|
[(#OBJET|=={rubrique}|oui)
|
|
<span class="icone s24 horizontale dupliquer">
|
|
<a
|
|
href="[(#URL_ACTION_AUTEUR{duplicator,#OBJET:#ID_OBJET})]"
|
|
data-lien_ss_articles="[(#URL_ACTION_AUTEUR{duplicator,#OBJET:#ID_OBJET:false})]"
|
|
data-descaction="<:duplicator:message_avertissement_rubrique|attribut_html:>">[(#CHEMIN_IMAGE{duplicator-24.png}|balise_img)]<b><:duplicator:action_dupliquer_rubrique:></b>
|
|
</a>
|
|
</span>
|
|
]
|
|
|
|
[(#OBJET|=={article}|oui)
|
|
<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> |