From 31589a08fca77bd1b34af818a37dc4f68875a7b8 Mon Sep 17 00:00:00 2001 From: Evgeny Fadeev Date: Wed, 24 Nov 2010 17:18:21 -0500 Subject: fixed small bug in string comparison of comments --- askbot/skins/default/media/js/post.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/askbot/skins/default/media/js/post.js b/askbot/skins/default/media/js/post.js index 59e245bc..d850968d 100644 --- a/askbot/skins/default/media/js/post.js +++ b/askbot/skins/default/media/js/post.js @@ -971,7 +971,7 @@ EditCommentForm.prototype.canCancel = function(){ return true; } var ctext = $.trim(this._textarea.val()); - if (ctext == this._text){ + if ($.trim(ctext) == $.trim(this._text)){ return true; } else if (this.confirmAbandon()){ -- cgit v1.2.3-1-g7c22