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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user