diff -r 7aa03ab5bbcd -r 63dae3d25255 integration/js/annotation-article.js --- a/integration/js/annotation-article.js Mon Jul 08 12:53:32 2013 +0200 +++ b/integration/js/annotation-article.js Mon Jul 22 12:02:47 2013 +0200 @@ -127,7 +127,7 @@ + '<% } else { %>

<%- annotation.comment || "(sans commentaire)" %>

<% } %>' + '

Mots-clés :

' + '' - + '<% if (editable) { %>
Supprimer
<% } %>' + + '<% if (editable) { %>

checked <% } %>/>Annotation publique

Supprimer
<% } %>' + '' ); @@ -218,11 +218,17 @@ $(".annotation-frames").append(frame); $(".annotation-list").append(li); - frame.find(".annotation-textarea").on("keyup change", function() { + frame.find(".annotation-textarea").on("keyup paste input change", function() { annotation.comment = $(this).val(); li.find(".annotation-comment").text(annotation.comment || "(Sans commentaire)"); }); + frame.find(".annotation-public").change(function() { + annotation.isPublic = $(this).is(":checked"); + }); + + frame.find("") + var ontagchange = function(evt, ui) { annotation.tags = $(this).tagit("assignedTags"); li.find(".annotation-tags").text((annotation.tags || []).join(", ") || "(aucun mot-clé)");