|
@@ -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;
|