Permalink
Browse files

Village: Ensure refresh will happen while logged out and no text to …

…check for.
  • Loading branch information...
1 parent b534520 commit 742cac981e24f8dd0ec703d60de5a7fdcac1b286 @tchalvak tchalvak committed Jan 1, 2014
Showing with 2 additions and 1 deletion.
  1. +2 −1 deploy/templates/village.tpl
@@ -75,7 +75,8 @@
<script type="text/javascript">
{literal}
function refreshpagechat() {
- if(false == $('#message').val()){ // Refresh only if text not being written.
+ var messageInput = $('#message');
+ if(!messageInput.length || false == messageInput.val()){ // Refresh only if text not being written.
if(parent && parent.main && parent.main.location){
parent.main.location.reload();
} else {

0 comments on commit 742cac9

Please sign in to comment.