Skip to content

Commit

Permalink
MDL-25331, fixed comment javascript
Browse files Browse the repository at this point in the history
  • Loading branch information
Dongsheng Cai committed Nov 22, 2010
1 parent 536a56e commit 7cb854f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions comment/comment.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,9 @@ bodyContent: '<div class="comment-delete-confirm"><a href="#" id="confirmdelete-
}
container.set('innerHTML', result.html);
var img = Y.one('#comment-img-'+scope.client_id);
img.set('src', M.util.image_url('t/expanded', 'core'));
if (img) {
img.set('src', M.util.image_url('t/expanded', 'core'));
}
args.scope.register_pagination();
args.scope.register_delete_buttons();
}
Expand Down Expand Up @@ -329,7 +331,7 @@ bodyContent: '<div class="comment-delete-confirm"><a href="#" id="confirmdelete-
Y.all('#comment-pagination-'+this.client_id+' a').each(
function(node, id) {
node.on('click', function(e, node) {
e.preventDefault();
e.preventDefault();
var id = node.get('id');
var re = new RegExp("comment-page-"+this.client_id+"-(\\d+)", "i");
var result = id.match(re);
Expand Down

0 comments on commit 7cb854f

Please sign in to comment.