Changeset 2566:9bf417837888 for admin/js/_comments.js
- Timestamp:
- 11/17/13 20:25:53 (12 years ago)
- Branch:
- 2.6
- Children:
- 2567:6c11245cbf04, 2568:61c67a7d17fa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/js/_comments.js
r2531 r2566 1 1 dotclear.viewCommentContent = function(line,action) { 2 2 var action = action || 'toggle'; 3 var commentId = $(line).attr('id').substr(1); 3 var commentId = $(line).attr('id').substr(1); 4 4 var tr = document.getElementById('ce'+commentId); 5 5 … … 11 11 td.className = 'expand'; 12 12 tr.appendChild(td); 13 13 14 14 // Get comment content 15 15 $.get('services.php',{f:'getCommentById',id: commentId},function(data) { 16 16 var rsp = $(data).children('rsp')[0]; 17 17 18 18 if (rsp.attributes[0].value == 'ok') { 19 19 var comment = $(rsp).find('comment_display_content').text(); 20 20 21 21 if (comment) { 22 22 $(td).append(comment); … … 25 25 var comment_ip = $(rsp).find('comment_ip').text(); 26 26 var comment_spam_disp = $(rsp).find('comment_spam_disp').text(); 27 27 28 28 $(td).append('<p><strong>' + dotclear.msg.website + 29 29 '</strong> ' + comment_site + '<br />' + … … 37 37 } 38 38 }); 39 39 40 40 $(line).toggleClass('expand'); 41 41 line.parentNode.insertBefore(tr,line.nextSibling);
Note: See TracChangeset
for help on using the changeset viewer.