MDL-19118, fixed css selector, comments api
authorDongsheng Cai <unoter@gmail.com>
Thu, 8 Apr 2010 05:40:11 +0000 (05:40 +0000)
committerDongsheng Cai <unoter@gmail.com>
Thu, 8 Apr 2010 05:40:11 +0000 (05:40 +0000)
comment/comment.js

index 11f16d8..01e0f10 100644 (file)
@@ -253,7 +253,7 @@ bodyContent: '<a href="#" id="confirmdelete-'+this.client_id+'">'+M.str.moodle.y
             register_delete_buttons: function() {
                 var scope = this;
                 // page buttons
             register_delete_buttons: function() {
                 var scope = this;
                 // page buttons
-                Y.all('div.comment-content a').each(
+                Y.all('div.comment-delete a').each(
                     function(node, id) {
                         var theid = node.get('id');
                         var parseid = new RegExp("comment-delete-"+scope.client_id+"-(\\d+)", "i");
                     function(node, id) {
                         var theid = node.get('id');
                         var parseid = new RegExp("comment-delete-"+scope.client_id+"-(\\d+)", "i");