%TMPL:DEF{promptbox}%<div class="commentPlugin commentPluginPromptBox"><table border="0" cellpadding="0" cellspacing="0"><tr valign="middle"><td><textarea %DISABLED% rows="%rows|3%" cols="%cols|70%" name="comment" class="foswikiInputField" onfocus="if(this.value=='%MESSAGE%')this.value=''" onblur="if(this.value=='')this.value='%MESSAGE%'">%MESSAGE%%IF{"context authenticated" then="" else="Please Login first, before submitting content."}%</textarea></td><td>&nbsp;<input %DISABLED% type="submit" %IF{"context authenticated" then="" else="onclick=miredirect()"}% value="%button|Add comment%" class="foswikiButton" /></td></tr></table></div><!--/commentPlugin-->
<script type='text/javascript'>function miredirect(){for(i=0; i<document.forms.length; i++){if(document.forms[i].elements[1].name=="comment"){document.forms[i].action='http://www.mi.fu-berlin.de/w/Main/LoginFirst';}}}</script> 
%TMPL:END%
Topic revision: r2 - 12 Mar 2013, UnknownUser
 
  • Printable version of this topic (p) Printable version of this topic (p)