When a not logged in user clicks on the blog comment box, pass them through the GetLo...
authorArt Cancro <ajc@uncensored.citadel.org>
Tue, 31 May 2011 17:05:31 +0000 (13:05 -0400)
committerWilfried Goesgens <dothebart@citadel.org>
Sun, 4 Sep 2011 20:55:26 +0000 (20:55 +0000)
webcit/static/t/blog_comment_box.html

index aac6a2c34f4f2cfd3710371f1255fd66a3801759..be396f7d35b727eb45354acc52b92ab620c666d5 100644 (file)
@@ -12,7 +12,16 @@ Leave a comment FIXME i18n
 <input type="hidden" name="nonce" value="<?NONCE>">
 <input type="hidden" name="force_room" value="<?ROOMNAME("X")>">
 <input type="hidden" name="references" id="comment_form_references" /><br>
-<textarea name="msgtext" id="comment_form_msgtext" cols=80 rows=10 style="width:98%"></textarea>
-<input type="submit" name="submit_action" value="Submit Comment" />
+<textarea name="msgtext" id="comment_form_msgtext" cols=80 rows=10 style="width:98%"
+       <?!("COND:LOGGEDIN",1)>
+               onClick="javascript:GetLoggedInFirst(encodeURIComponent(window.location.href));"
+       <??("X",1)>
+>
+</textarea>
+<input type="submit" name="submit_action" value="Submit Comment"
+       <?!("COND:LOGGEDIN",1)>
+               disabled="disabled"
+       <??("X",1)>
+/>
 </form>
 </div>