Makes the contextual popup say "ban community" if the hover is on a
community.
Patch by foxfirefey.
diffs (18 lines):
diff -r fc00b08746ce -r 25e3ab947afe htdocs/js/contextualhover.js
--- a/htdocs/js/contextualhover.js Sun Jul 26 03:19:41 2009 +0000
+++ b/htdocs/js/contextualhover.js Sun Jul 26 00:32:30 2009 -0500
@@ -502,8 +502,13 @@ ContextualPopup.renderPopup = function (
var setBanLink = document.createElement("a");
setBanLink.href = window.Site.siteroot +
'/manage/banusers.bml';
- setBanLink.innerHTML = 'Ban user';
+ if (data.is_comm) {
+ setBanLink.innerHTML = 'Ban community';
+ } else {
+ setBanLink.innerHTML = 'Ban user';
+ }
+
setBan.appendChild(setBanLink);
DOM.addClassName(setBan, "SetBan");
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog