Skip to content

Commit

Permalink
"MDL-19118, fixed a javascript error"
Browse files Browse the repository at this point in the history
  • Loading branch information
Dongsheng Cai committed May 4, 2010
1 parent b6accf6 commit e131871
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions comment/comment.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,14 @@ M.core_comment = {
Y.one('#comment-link-'+this.client_id).setStyle('display', 'none');
}
// load comments
Y.one('#comment-link-'+this.client_id).on('click', function(e) {
e.preventDefault();
this.view(0);
return false;
}, this);
var handle = Y.one('#comment-link-'+this.client_id);
if (handle) {
handle.on('click', function(e) {
e.preventDefault();
this.view(0);
return false;
}, this);
}
CommentHelper.confirmoverlay = new Y.Overlay({
bodyContent: '<div class="comment-delete-confirm"><a href="#" id="confirmdelete-'+this.client_id+'">'+M.str.moodle.yes+'</a> <a href="#" id="canceldelete-'+this.client_id+'">'+M.str.moodle.no+'</a></div>',
visible: false
Expand Down

0 comments on commit e131871

Please sign in to comment.