瀏覽代碼

I think this code is useless...

Signed-off-by: emanuele <[email protected]>
emanuele 12 年之前
父節點
當前提交
9f67f42278
共有 1 個文件被更改,包括 0 次插入16 次删除
  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 + ']');
 		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" : "";
 		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)
 InTopicModeration.prototype.handleSubmit = function (sSubmitType)