bugfix to display of community hide mode

This commit is contained in:
Eric J. Bowersox
2004-07-22 09:06:16 +00:00
parent 1c245749f7
commit 1351306780
12 changed files with 704 additions and 146 deletions

View File

@@ -8,9 +8,9 @@
//
// The Original Code is the Venice Web Communities System.
//
// The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
// The Initial Developer of the Original Code is Eric J. Bowersox <erbo@ricochet.com>,
// for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
// Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
// Copyright (C) 2001-2004 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
//
// Contributor(s):
@@ -76,12 +76,10 @@ if (op=="create")
} // end if
my_hidemode = parseInt(dlg.getValue("hidemode"),10); // get the hide mode
// Create the new community context.
new_comm = rinput.user.createCommunity(dlg.getValue("name"),my_alias,dlg.getValue("language"),
dlg.getValue("synopsis"),dlg.getValue("rules"),my_joinkey,
my_hidemode);
dlg.getValue("hidemode"));
// Get the new community's contact record and fill in the pieces of info we know.
ci = new_comm.getContactInfo();

View File

@@ -8,9 +8,9 @@
//
// The Original Code is the Venice Web Communities System.
//
// The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
// The Initial Developer of the Original Code is Eric J. Bowersox <erbo@ricochet.com>,
// for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
// Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
// Copyright (C) 2001-2004 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
//
// Contributor(s):
@@ -102,6 +102,7 @@ if ("GET"==rinput.verb)
if (comm.membersOnly)
dlg.setValue("membersonly",1);
logger.debug("Community's hidemode is " + comm.hideMode);
dlg.setValue("hidemode",comm.hideMode);
dlg.setValue("read_lvl",comm.readLevel);
dlg.setValue("write_lvl",comm.writeLevel);
@@ -193,7 +194,7 @@ if (op=="update")
comm.joinKey = null;
comm.membersOnly = dlg.getValue("membersonly").booleanValue();
comm.setHideMode(parseInt(dlg.getValue("hidemode"),10));
comm.setHideMode(dlg.getValue("hidemode"));
comm.setSecurityLevels(parseInt(dlg.getValue("read_lvl"),10),parseInt(dlg.getValue("write_lvl"),10),
parseInt(dlg.getValue("create_lvl"),10),parseInt(dlg.getValue("delete_lvl"),10),
parseInt(dlg.getValue("join_lvl"),10));