worked out bugs in the module install and community service add

This commit is contained in:
Eric J. Bowersox
2003-06-24 00:38:19 +00:00
parent 278ad880bb
commit cb7b327da8
16 changed files with 88 additions and 25 deletions

View File

@@ -50,6 +50,7 @@ if (csd==null)
// Now add the service!
comm.addService(user,req,csd.name.namespace,csd.name.name);
vlib.forceReloadMenu(req);
// Bounce back to the services list.
dynamo.scriptOutput(new Redirect("SERVLET","comm/admin/services.js.vs"));
dynamo.scriptOutput(new Redirect("SERVLET","comm/admin/services.js.vs?cc=" + comm.getCID()));

View File

@@ -52,18 +52,19 @@ rc = null;
if (vlib.confirmed(req,"/comm/admin/svc_remove.js.vs","confirmation","confnum"))
{ // remove the service!
comm.removeService(user,req,csd.name.namespace,csd.name.name);
rc = new Redirect("SERVLET","comm/admin/services.js.vs");
vlib.forceReloadMenu(req);
rc = new Redirect("SERVLET","comm/admin/services.js.vs?cc=" + comm.getCID());
} // end if
else
{ // create the confirmation dialog
msg = "You are about to remove the service " + csd.name.namespace + "::" + csd.name.name + " from the community '"
+ comm.name + "'! This may cause any and all data associated with this service in the community (such as "
+ "database table contents) to be <b>DESTROYED AND IRREVOCABLY LOST!</b> Are you <em>really</em> sure you "
+ "want to do this?";
msg = "You are about to remove the service " + stringutils.encodeHTML(csd.name.namespace) + "::"
+ stringutils.encodeHTML(csd.name.name) + " from the community '" + stringutils.encodeHTML(comm.name)
+ "'! This may cause any and all data associated with this service in the community (such as database table "
+ "contents) to be <b>DESTROYED AND IRREVOCABLY LOST!</b> Are you <em>really</em> sure you want to do this?";
rc = new ConfirmBox(req,"/comm/admin/svc_remove.js.vs","confirmation","confnum","Service Remove Confirmation",msg,
"SERVLET","comm/admin/svc_remove.js.vs?cc=" + comm.getCID() + "&id=" + ndx,"SERVLET",
"comm/admin/services.js.vs");
"comm/admin/services.js.vs?cc=" + comm.getCID());
} // end else