Permalink
Browse files

removed code for the old way of updating the block weight.

  • Loading branch information...
1 parent 9e28e05 commit 39d764f93219808278b2738a9e1459b79e601800 cap2501 committed Oct 8, 2006
Showing with 2 additions and 9 deletions.
  1. +2 −9 lib/ajax/block_classes.js
View
@@ -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();

0 comments on commit 39d764f

Please sign in to comment.