Browse Source

I think this code is useless...

Signed-off-by: emanuele <[email protected]>
emanuele 12 years ago
parent
commit
9f67f42278
1 changed files with 0 additions and 16 deletions
  1. 0 16
      Themes/default/scripts/topic.js

+ 0 - 16
Themes/default/scripts/topic.js

@@ -651,22 +651,6 @@ InTopicModeration.prototype.handleClick = function(oCheckbox)
 		setInnerHTML(document.getElementById(this.opt.sSelf + '_split_button_text'), this.opt.sSplitButtonLabel + ' [' + this.iNumSelected + ']');
 		document.getElementById(this.opt.sSelf + '_split_button').style.display = this.iNumSelected < 1 ? "none" : "";
 	}
-
-	// Try to restore the correct position.
-	var aItems = document.getElementById(this.opt.sButtonStrip).getElementsByTagName('span');
-	if (aItems.length > 3)
-	{
-		if (this.iNumSelected < 1)
-		{
-			aItems[aItems.length - 3].className = aItems[aItems.length - 3].className.replace(/\s*position_holder/, 'last');
-			aItems[aItems.length - 2].className = aItems[aItems.length - 2].className.replace(/\s*position_holder/, 'last');
-		}
-		else
-		{
-			aItems[aItems.length - 2].className = aItems[aItems.length - 2].className.replace(/\s*last/, 'position_holder');
-			aItems[aItems.length - 3].className = aItems[aItems.length - 3].className.replace(/\s*last/, 'position_holder');
-		}
-	}
 }
 
 InTopicModeration.prototype.handleSubmit = function (sSubmitType)