Browse Source

Though it may not be useless, but it should belong to themes.js, if needed, I think

Signed-off-by: emanuele <[email protected]>
emanuele 12 years ago
parent
commit
30e9b851f4
2 changed files with 4 additions and 3 deletions
  1. 1 3
      Themes/default/scripts/theme.js
  2. 3 0
      Themes/default/scripts/topic.js

+ 1 - 3
Themes/default/scripts/theme.js

@@ -60,8 +60,6 @@ addLoadEvent(smc_toggleImageDimensions);
 
 function smf_addButton(stripId, image, options)
 {
-	$('#' + stripId + ' ul li').last().removeClass("last");
-
 	$('#' + stripId + ' ul').append(
 		'<li' + ('sId' in options ? ' id="' + options.sId + '"' : '') + '>' +
 			'<a href="' + options.sUrl + '"' + ('sCustom' in options ? options.sCustom : '') + '>' +
@@ -69,4 +67,4 @@ function smf_addButton(stripId, image, options)
 			'</a>' +
 		'</li>'
 	);
-}
+}

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

@@ -651,6 +651,9 @@ 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" : "";
 	}
+
+	if(typeof smf_fixButtonClass == 'function')
+		smf_fixButtonClass(this.opt.sButtonStrip);
 }
 
 InTopicModeration.prototype.handleSubmit = function (sSubmitType)