芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/.trash/cepali/blocks/community/yui/comments/comments.js
YUI.add('moodle-block_community-comments', function(Y) { var COMMENTSNAME = 'blocks_community_comments'; var COMMENTS = function() { COMMENTS.superclass.constructor.apply(this, arguments); }; Y.extend(COMMENTS, Y.Base, { event:null, panelevent: null, panels: [], //all the comment boxes initializer : function(params) { //attach a show event on the div with id = comments for (var i=0;i
') .append(Y.one('#commentoverlay-'+commentid+' .commenttitle').get('innerHTML')), bodyContent:Y.one('#commentoverlay-'+commentid).get('innerHTML'), visible: false, //by default it is not displayed modal: false, zIndex:100, closeButtonTitle: this.get('closeButtonTitle') }); this.panels[commentid].get('contentBox').one('.commenttitle').remove(); this.panels[commentid].render(); this.panels[commentid].hide(); Y.one('#comments-'+commentid).on('click', this.show, this, commentid); } }, show : function (e, commentid) { // Hide all panels. for (var i=0;i