You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by jw...@apache.org on 2005/03/10 10:41:57 UTC

svn commit: r156920 - lenya/trunk/src/webapp/lenya/content/admin/groups/group-admin.js

Author: jwkaltz
Date: Thu Mar 10 01:41:56 2005
New Revision: 156920

URL: http://svn.apache.org/viewcvs?view=rev&rev=156920
Log:
removed unused function

Modified:
    lenya/trunk/src/webapp/lenya/content/admin/groups/group-admin.js

Modified: lenya/trunk/src/webapp/lenya/content/admin/groups/group-admin.js
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/lenya/content/admin/groups/group-admin.js?view=diff&r1=156919&r2=156920
==============================================================================
--- lenya/trunk/src/webapp/lenya/content/admin/groups/group-admin.js (original)
+++ lenya/trunk/src/webapp/lenya/content/admin/groups/group-admin.js Thu Mar 10 01:41:56 2005
@@ -15,55 +15,6 @@
 */
 
 //
-// Modify a group.
-//
-function groupChangeProfile() {
-
-	resolve();
-	try {
-	
-	    var redirectUri = getRequestUri();
-        var groupId = getAccreditableId();
-        
-	    var groupManager = getAccreditableManager().getGroupManager();
-	    var group = groupManager.getGroup(groupId);
-		var name = group.getName();
-		var description = group.getDescription();
-		
-		// at the moment the loop is executed only once (no form validation)
-		
-	    while (true) {
-		    cocoon.sendPageAndWait("groups/profile.xml", {
-		    	"group-id" : groupId,
-		    	"name" : name,
-		    	"description" : description,
-		    	"page-title" : "Edit Group"
-		    });
-		    
-		    if (cocoon.request.get("cancel")) {
-		    	break;
-		    }
-		    
-		    if (cocoon.request.get("submit")) {
-			    name = cocoon.request.get("name");
-		       	group.setName(name);
-		       	description = cocoon.request.get("description");
-		       	group.setDescription(description);
-		   		group.save();
-		    	break;
-		    }
-	
-	    }
-	    
-	   	cocoon.redirectTo(redirectUri);
-   	}
-   	finally {
-	   	release();
-   	}
-}
-
-
-//
 // Change the members of a group.
 //
 function groupChangeMembers() {



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org