![]() | Article proposé par Redaction, paru le 25/03/2025 09:23:48 Rubrique : Résultats de concours, lu 276 fois. Pas de commentaires |
|
Nouveau commentaire : ";
if (kComment == -1) {
new Insertion.Top($('comment0'), divComment);
window.location.href = '#posCommD';
}
else {
new Insertion.After($('comm'+kComment), divComment);
window.location.href = '#posComm'+idComment;
}
$('curTexte').style.width = '' + ($('ncId').getWidth() - 15) + 'px';
}
function deleteNewComment() {
$('newComment').remove();
}
function envoyerComment() {
var msg = '';
var titre = Field.getValue($('curTitre'));
if (titre.strip() == '') msg += "Le titre est vide\n";
var texte = Field.getValue($('curTexte'));
if (texte.strip() == '') msg += "Il n'y a pas de texte\n";
if (msg != '') {
alert(msg);
return;
}
titreh = escape(titre);
texte = escape(texte);
var dataStr = $H({'sess' : 'a17a081d30346616bfc1d691973de9fb', 'type' : itemType, 'id' : curArticle, 'cid' : curComment, 'titre' : titreh, 'texte' : texte}).toQueryString();
// alert(dataStr);
$('submitButs').innerHTML = ""; divComment += "Titre : "; divComment += "Texte : "; divComment += " ";
divComment += " ![]() ";
divStr += "
-" + titre + " par " + userName;
divStr += " ";
deleteNewComment();
// new Insertion.Bottom($('comment'+curComment), divStr);
if (curKComment == -1) {
new Insertion.Top($('comment0'), divStr);
window.location.href = '#posCommD';
}
else {
new Insertion.After($('comm'+kComment), divStr);
window.location.href = '#posComm'+idComment;
}
kCom++;
}
" + texte + " Répondre |