Browse Source

! And some JS we don't need any more.

Signed-off-by: Peter Spicer <[email protected]>
Peter Spicer 11 years ago
parent
commit
8131978868
1 changed files with 0 additions and 28 deletions
  1. 0 28
      Themes/default/scripts/admin.js

+ 0 - 28
Themes/default/scripts/admin.js

@@ -443,34 +443,6 @@ function toggleDuration(toChange)
 	}
 }
 
-function toggleBreakdown(id_group, forcedisplayType)
-{
-	displayType = document.getElementById("group_hr_div_" + id_group).style.display == "none" ? "" : "none";
-	if (typeof(forcedisplayType) != "undefined")
-		displayType = forcedisplayType;
-
-	// swap the image
-	document.getElementById("group_toggle_img_" + id_group).src = smf_images_url + "/" + (displayType == "none" ? "selected" : "selected_open") + ".png";
-
-	// show or hide the elements
-	var aContainer = new Array();
-	for (i = 0; i < groupPermissions[id_group].length; i++)
-	{
-		var oContainerTemp = document.getElementById("perm_div_" + id_group + "_" + groupPermissions[id_group][i]);
-		if (typeof(oContainerTemp) == 'object' && oContainerTemp != null)
-			aContainer[i] = oContainerTemp;
-	}
-	if (displayType == "none")
-		$(aContainer).fadeOut();
-	else
-		$(aContainer).show();
-
-	// remove or add the separators
-	document.getElementById("group_hr_div_" + id_group).style.display = displayType
-
-	return false;
-}
-
 function calculateNewValues()
 {
 	var total = 0;