equal
deleted
inserted
replaced
196 } |
196 } |
197 } |
197 } |
198 }, |
198 }, |
199 |
199 |
200 onMouseEnterHeader : function () { |
200 onMouseEnterHeader : function () { |
201 if (readyForAction() && this.isVisible() && (sv_prefix=="")) { |
201 if (readyForAction() && this.isVisible()) { |
202 this.overlay.get('contentBox').query(".c-permalink").removeClass('displaynone'); |
202 this.overlay.get('contentBox').query(".c-permalink").removeClass('displaynone'); |
203 } |
203 } |
204 }, |
204 }, |
205 |
205 |
206 onMouseLeaveHeader : function () { |
206 onMouseLeaveHeader : function () { |
207 if (readyForAction() && this.isVisible() && (sv_prefix=="")) { |
207 if (readyForAction() && this.isVisible()) { |
208 this.overlay.get('contentBox').query(".c-permalink").addClass('displaynone'); |
208 this.overlay.get('contentBox').query(".c-permalink").addClass('displaynone'); |
209 } |
209 } |
210 }, |
210 }, |
211 |
211 |
212 setWidth : function(width) { |
212 setWidth : function(width) { |
300 // TITLE |
300 // TITLE |
301 var titleInfos = interpolate(gettext('last modified on %(date)s'),{'date':comment.modified_user_str}, true) ; |
301 var titleInfos = interpolate(gettext('last modified on %(date)s'),{'date':comment.modified_user_str}, true) ; |
302 |
302 |
303 var modifDateTooltip = (comment.modified == comment.created) ? '' : '<a title="' + titleInfos + '"> * </a>' ; |
303 var modifDateTooltip = (comment.modified == comment.created) ? '' : '<a title="' + titleInfos + '"> * </a>' ; |
304 var permaTitle = gettext('Permalink to this comment') ; |
304 var permaTitle = gettext('Permalink to this comment') ; |
305 var permalink = ""; |
305 var permalink = '<a class="c-permalink displaynone c-action" target="_blank" title="'+ permaTitle +'" href="" >¶ </a>' ; |
306 if (sv_prefix=="") { |
|
307 permalink = '<a class="c-permalink displaynone c-action" target="_blank" title="'+ permaTitle +'" href="" >¶ </a>' ; |
|
308 } |
|
309 |
306 |
310 var infos = interpolate(gettext('by %(name)s, created on %(date)s'),{'name':comment.name, 'date':comment.created_user_str}, true) ; |
307 var infos = interpolate(gettext('by %(name)s, created on %(date)s'),{'name':comment.name, 'date':comment.created_user_str}, true) ; |
311 |
308 |
312 var newTitleContent = '<span class="c-header"><div class="c-header-title">' + comment.title + permalink + '</div><div class="c-infos">' + infos + '</div></span>' ; |
309 var newTitleContent = '<span class="c-header"><div class="c-header-title">' + comment.title + permalink + '</div><div class="c-infos">' + infos + '</div></span>' ; |
313 |
310 |
339 |
336 |
340 // PERMALINK |
337 // PERMALINK |
341 if (sv_prefix=="") { |
338 if (sv_prefix=="") { |
342 boundingBoxNode.query(".c-permalink").set("href",sv_site_url + comment.permalink) ; |
339 boundingBoxNode.query(".c-permalink").set("href",sv_site_url + comment.permalink) ; |
343 } |
340 } |
|
341 else { |
|
342 boundingBoxNode.query(".c-permalink").set("href", top.location.href + '?comment_id_key=' + comment.id_key) ; |
|
343 } |
344 |
344 |
345 // MODERATION |
345 // MODERATION |
346 this.changeModeration(comment) ; |
346 this.changeModeration(comment) ; |
347 /* useless : use implemendted permanentlink instead |
347 /* useless : use implemendted permanentlink instead |
348 * |
348 * |