From 3877320c1cd7e68e0fa5255a3441bf5f27cfbd68 Mon Sep 17 00:00:00 2001 From: bradymiller Date: Thu, 27 Dec 2007 05:23:33 +0000 Subject: [PATCH] bug fixes and internationalization --- interface/usergroup/adminacl.php | 61 ++++++++++++++++++---------------------- library/ajax/adminacl_ajax.php | 46 +++++++++++++++++------------- 2 files changed, 54 insertions(+), 53 deletions(-) diff --git a/interface/usergroup/adminacl.php b/interface/usergroup/adminacl.php index 2432573dd..c58cc99b8 100644 --- a/interface/usergroup/adminacl.php +++ b/interface/usergroup/adminacl.php @@ -16,12 +16,12 @@ include_once("$srcdir/acl.inc"); //ensure user has proper access if (!acl_check('admin', 'acl')) { - echo("(ACL Administration Not Authorized)"); + echo "(" . xl('ACL Administration Not Authorized') . ")"; exit; } //ensure phpgacl is installed if (!isset($phpgacl_location)) { - echo("PHP-gacl needs to be installed"); + echo "(" . xl('PHP-gacl is not installed') . ")"; exit; } ?> @@ -92,14 +92,12 @@ if (!isset($phpgacl_location)) { return_value: return_value, description: description }, - success: function(xml){ - + success: function(xml){ //if successful, then show new group if ($(xml).find("success").text() == "SUCCESS") { $("#button_acl_add_cancel").click(); acl_show(); - } - + } //Remove Loading indicator and old errors, then display new errors $("#div_acl_add_form span.loading").hide(); $("#acl_error").empty(); @@ -164,13 +162,11 @@ if (!isset($phpgacl_location)) { return_value: return_value }, success: function(xml){ - //if successful, then show new group if ($(xml).find("success").text() == "SUCCESS") { $("#button_acl_remove_cancel").click(); acl_show(); } - //Remove Loading indicator and old errors, then display new errors $("#div_acl_remove_form span.loading").hide(); $("#acl_error").empty(); @@ -217,14 +213,13 @@ if (!isset($phpgacl_location)) { $("#membership").empty(); $(xml).find("user").each(function(){ username = $(this).find("username").text(); - $("#membership").append("
"); + $("#membership").append("
"); if ($(this).find("alert").text() == "no membership") { $("#link_" + username + " span.alert").show(); } }); - //Show the username list + //Show the username list and remove loading indicator $("#membership").show("slow"); - //Remove loading indicator $("#membership_edit span.loading:first").hide(); }, beforeSend: function(){ @@ -269,7 +264,7 @@ if (!isset($phpgacl_location)) { titleDash = title.replace(" ","-"); return_value = $(this).find("return").text(); note = $(this).find("note").text(); - $("#acl").append("
"); + $("#acl").append("
"); }); //Show the acl list and add link. Remove loading indicator. $("#acl").show("slow"); @@ -516,54 +511,54 @@ if (!isset($phpgacl_location)) {

- User Memberships - + +
- Groups and Access Controls - - - + + + +