}
-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
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);
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();