From: David ‘Bombe’ Roden Date: Thu, 29 Aug 2013 18:03:32 +0000 (+0200) Subject: Fix comparisons that were assignments. X-Git-Tag: 0.8.7^2~28 X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=commitdiff_plain;h=275ef92e9690ed28eaf97200493b1e4c04719f52 Fix comparisons that were assignments. --- diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index 3339d18..accfabc 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -872,7 +872,7 @@ function ajaxifyPost(postElement) { }).fadeIn(); }, 1000); }).mouseleave(function() { - if (currentSoneMenuId = getPostId(this)) { + if (currentSoneMenuId == getPostId(this)) { clearTimeout(currentSoneMenuTimeoutHandler); } }); @@ -1011,7 +1011,7 @@ function ajaxifyReply(replyElement) { }).fadeIn(); }, 1000); }).mouseleave(function() { - if (currentSoneMenuId = getPostId(this) + "-" + getReplyId(this)) { + if (currentSoneMenuId == getPostId(this) + "-" + getReplyId(this)) { clearTimeout(currentSoneMenuTimeoutHandler); } });