Skip to content

Commit

Permalink
ie cache fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Curry committed Jan 5, 2010
1 parent c6deffe commit 5f1201d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions vendors/js/chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@
var $this = $(this);
update($this);
setInterval(function() { update($this); }, opts.interval);
$this.find("form").bind('submit', function() { post($this); return false});
$this.find("form").bind('submit', function() { post($(this)); return false});
});
};

function update($obj) {
$.ajax({
cache: false,
url: opts.update + "/" + $obj.attr("name"),
success: function(ret) {
$obj.find(".chat_window").html(ret);
Expand All @@ -37,7 +38,7 @@
var $name = $obj.find("input[name='data[Chat][name]']");
var $message = $obj.find("textarea[name='data[Chat][message]']");
var $submit = $obj.find("input[type='submit']");

if( ($.trim($name.val()) == "") || ($.trim($message.val()) == "") ) {
return;
}
Expand Down

0 comments on commit 5f1201d

Please sign in to comment.