added one more word to the dictionary, fixed a problem with display of
SIG profiles, and corrected the "new post after posting" problem (I hope).
This commit is contained in:
parent
f19aab70fe
commit
8f31704563
|
@ -117,6 +117,7 @@ valen
|
|||
veni
|
||||
we'll
|
||||
we're
|
||||
we've
|
||||
webb
|
||||
webbme
|
||||
won't
|
||||
|
|
|
@ -112,7 +112,8 @@ public class PostMessage extends VeniceServlet
|
|||
if (isImageButtonClicked(request,"preview")) // generate a preview
|
||||
return new PostPreview(engine,sig,conf,topic,request.getParameter("pseud"),raw_postdata,
|
||||
request.getParameter("next"),getPostNumber(request,on_error),
|
||||
yes.equals(request.getParameter("attach")));
|
||||
yes.equals(request.getParameter("attach")),
|
||||
yes.equals(request.getParameter("slip")));
|
||||
|
||||
if ( isImageButtonClicked(request,"post") || isImageButtonClicked(request,"postnext")
|
||||
|| isImageButtonClicked(request,"posttopics"))
|
||||
|
@ -131,6 +132,9 @@ public class PostMessage extends VeniceServlet
|
|||
// post the darn thing!
|
||||
TopicMessageContext msg = topic.postNewMessage(0,request.getParameter("pseud"),raw_postdata);
|
||||
|
||||
if (!(yes.equals(request.getParameter("slip"))))
|
||||
topic.fixSeen(); // no slippage = make sure we mark all as read
|
||||
|
||||
if (go_topics) // jump back to the topic list, puhleaze
|
||||
throw new RedirectResult("confdisp?sig=" + sig.getSIGID() + "&conf=" + conf.getConfID());
|
||||
|
||||
|
|
|
@ -49,6 +49,7 @@ public class PostPreview implements JSPRender
|
|||
private int num_errors;
|
||||
private int msgs;
|
||||
private boolean attach;
|
||||
private boolean slippage;
|
||||
|
||||
/*--------------------------------------------------------------------------------
|
||||
* Constructor
|
||||
|
@ -56,7 +57,7 @@ public class PostPreview implements JSPRender
|
|||
*/
|
||||
|
||||
public PostPreview(VeniceEngine engine, SIGContext sig, ConferenceContext conf, TopicContext topic,
|
||||
String pseud, String data, String next, int msgs, boolean attach)
|
||||
String pseud, String data, String next, int msgs, boolean attach, boolean slippage)
|
||||
{
|
||||
this.sig = sig;
|
||||
this.conf = conf;
|
||||
|
@ -64,6 +65,7 @@ public class PostPreview implements JSPRender
|
|||
this.next = next;
|
||||
this.msgs = msgs;
|
||||
this.attach = attach;
|
||||
this.slippage = slippage;
|
||||
|
||||
try
|
||||
{ // sanitize the pseud data
|
||||
|
@ -198,4 +200,10 @@ public class PostPreview implements JSPRender
|
|||
|
||||
} // end getBodyText
|
||||
|
||||
public boolean slippageDetected()
|
||||
{
|
||||
return slippage;
|
||||
|
||||
} // end slippageDetected
|
||||
|
||||
} // end class PostPreview
|
||||
|
|
|
@ -45,6 +45,9 @@
|
|||
<INPUT TYPE="HIDDEN" NAME="next" VALUE="<%= data.getNextVal() %>">
|
||||
<% } // end if %>
|
||||
<INPUT TYPE="HIDDEN" NAME="sd" VALUE="<%= data.getTotalMessages() %>">
|
||||
<% if (data.slippageDetected()) { %>
|
||||
<INPUT TYPE="HIDDEN" NAME="slip" VALUE="Y">
|
||||
<% } // end if %>
|
||||
<TABLE BORDER=0 CELLPADDING=0>
|
||||
<TR><TD ALIGN=LEFT COLSPAN=2>
|
||||
<%= rdat.getStdFontTag(null,2) %>Your name/header:</FONT><BR>
|
||||
|
|
|
@ -50,13 +50,14 @@
|
|||
|
||||
<% if (data.isUserLoggedIn()) { %>
|
||||
<DIV ALIGN="CENTER">
|
||||
<% if (sig.canSendInvitation()) { %>
|
||||
<A HREF="<%= rdat.getEncodedServletPath("sigops?cmd=I&sig=" + sig.getSIGID()) %>"><IMG
|
||||
SRC="<%= rdat.getFullImagePath("bn_invite.gif") %>" ALT="Invite" WIDTH=80 HEIGHT=24 BORDER=0></A>
|
||||
<% } else if (sig.canJoin()) { %>
|
||||
<%-- EJB 4/4/2001 - reverse these tests, put canJoin FIRST --%>
|
||||
<% if (sig.canJoin()) { %>
|
||||
<A HREF="<%= rdat.getEncodedServletPath("sigops?cmd=J&sig=" + sig.getSIGID()) %>"><IMG
|
||||
SRC="<%= rdat.getFullImagePath("bn_join_now.gif") %>" ALT="Join Now"
|
||||
WIDTH=80 HEIGHT=24 BORDER=0></A>
|
||||
<% } else if (sig.canSendInvitation()) { %>
|
||||
<A HREF="<%= rdat.getEncodedServletPath("sigops?cmd=I&sig=" + sig.getSIGID()) %>"><IMG
|
||||
SRC="<%= rdat.getFullImagePath("bn_invite.gif") %>" ALT="Invite" WIDTH=80 HEIGHT=24 BORDER=0></A>
|
||||
<% } // end if %>
|
||||
</DIV>
|
||||
<% } // end if (user is logged in) %>
|
||||
|
|
|
@ -69,6 +69,7 @@
|
|||
<INPUT TYPE="HIDDEN" NAME="next" VALUE="<%= data.getNextVal() %>">
|
||||
<% } // end if %>
|
||||
<INPUT TYPE="HIDDEN" NAME="sd" VALUE="<%= data.getTotalMessages() %>">
|
||||
<INPUT TYPE="HIDDEN" NAME="slip" VALUE="Y">
|
||||
<TABLE BORDER=0 CELLPADDING=0>
|
||||
<TR><TD ALIGN=LEFT COLSPAN=2>
|
||||
<%= rdat.getStdFontTag(null,2) %>Your name/header:</FONT><BR>
|
||||
|
|
Loading…
Reference in New Issue
Block a user