]> git.mjollnir.org Git - moodle.git/commitdiff
removed code for the old way of updating the block weight.
authorcap2501 <cap2501>
Sun, 8 Oct 2006 20:26:25 +0000 (20:26 +0000)
committercap2501 <cap2501>
Sun, 8 Oct 2006 20:26:25 +0000 (20:26 +0000)
lib/ajax/block_classes.js

index a8072d0a4261322687c5725b0daa810af06884f6..02aec382cdba17a7fa02aed07e6de70eb58b9b69 100644 (file)
@@ -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();