From: cap2501 Date: Wed, 30 Aug 2006 21:39:09 +0000 (+0000) Subject: Updated front-end display to accurately represent how moodle is handling things on... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=62cb40326050fff9e4daa149b80851637732d03d;p=moodle.git Updated front-end display to accurately represent how moodle is handling things on the backend. --- diff --git a/lib/ajax/section-resource_classes.js b/lib/ajax/section-resource_classes.js index eced6c3342..a56048230b 100755 --- a/lib/ajax/section-resource_classes.js +++ b/lib/ajax/section-resource_classes.js @@ -73,30 +73,9 @@ section_class.prototype.init_buttons = function(){ YAHOO.util.Event.addListener(viewbutton,'click',this.toggle_hide,this,true); commandContainer.appendChild(viewbutton); this.viewButton = viewbutton; - - - var deletebutton = main.mk_button('div','/pix/t/delete.gif'); - YAHOO.util.Event.addListener(deletebutton,'click',this.delete_button,this,true); - commandContainer.appendChild(deletebutton); - - + } -section_class.prototype.delete_button = function(){ - this.content_td.childNodes[0].data = ''; - - if(this.hidden) - this.toggle_hide(); - - if(this.highlighted) - this.toggle_highlight(); - - if(this.debug)YAHOO.log('Deleting '+this.getEl().id); - - main.connect('delete','class=section&id='+this.id); - for(var i=0;i