From: cap2501 Date: Sun, 8 Oct 2006 20:26:25 +0000 (+0000) Subject: removed code for the old way of updating the block weight. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=39d764f93219808278b2738a9e1459b79e601800;p=moodle.git removed code for the old way of updating the block weight. --- diff --git a/lib/ajax/block_classes.js b/lib/ajax/block_classes.js index a8072d0a42..02aec382cd 100644 --- a/lib/ajax/block_classes.js +++ b/lib/ajax/block_classes.js @@ -245,11 +245,7 @@ block_class.prototype.delete_button = function(){ } -block_class.prototype.update_index = function(index,columnId){ - //update via AJAX the db representation of page - main.connectQueue_add('post','class=block&field=position',null,'value='+index+'&column='+columnId+'&instanceId='+this.instanceId); - if(this.debug)YAHOO.log("updating position of "+this.getEl().id+" to index "+index+" on column "+columnId); - } + block_class.prototype.updatePosition = function(index,columnId){ //update the db for the position @@ -318,12 +314,10 @@ column_class.prototype.insert_block = function(el,targetel){ nextStore = this.blocks[i]; this.blocks[i] = el; blockcount++; - } - //this.blocks[i].update_index(i,this.ident); + } } if(found<0){//insert at end - //el.update_index(this.blocks.length,this.ident); found = this.blocks.length; this.add_block(el); @@ -350,7 +344,6 @@ column_class.prototype.remove_block = function(el){ found = true; if(i < blockcount-1){ - //this.blocks[i+1].update_index(i,this.ident); this.blocks[i] = this.blocks[i+1]; }else{ this.blocks.pop();