src/cm/media/js/client/c_icomment.js
changeset 410 55ce34b8d146
parent 389 eecda8559c1d
child 504 b2e0186daa5b
equal deleted inserted replaced
409:2b3dda02fa78 410:55ce34b8d146
   337     // PERMALINK
   337     // PERMALINK
   338     if (sv_prefix=="") {
   338     if (sv_prefix=="") {
   339       boundingBoxNode.query(".c-permalink").set("href",sv_site_url + comment.permalink) ;
   339       boundingBoxNode.query(".c-permalink").set("href",sv_site_url + comment.permalink) ;
   340     }
   340     }
   341     else {
   341     else {
   342       boundingBoxNode.query(".c-permalink").set("href", top.location.href + '?comment_id_key=' + comment.id_key) ;
   342       comment_id_delta_prefix = sv_delta != '' ? Array(parseInt(sv_delta)+1).join(',') : '';
       
   343       boundingBoxNode.query(".c-permalink").set("href", top.location.protocol + '//' + top.location.hostname + top.location.pathname + '?comment_id_key=' + comment_id_delta_prefix + comment.id_key) ;
   343     }
   344     }
   344 
   345 
   345     // MODERATION
   346     // MODERATION
   346     this.changeModeration(comment) ;
   347     this.changeModeration(comment) ;
   347 /* useless : use implemendted permanentlink instead
   348 /* useless : use implemendted permanentlink instead