From: David ‘Bombe’ Roden Date: Fri, 25 Jan 2013 21:00:37 +0000 (+0100) Subject: Use hasClass() instead of is(). X-Git-Tag: 0.8.5^2~3^2~50 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=3a6d0e77f2b09791ee70dd3739a3e953ac91eb79;p=Sone.git Use hasClass() instead of is(). --- diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index 49f372f..3339d18 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -1529,7 +1529,7 @@ function loadNewReply(replyId, soneId, postId, postSoneId) { * request */ function markSoneAsKnown(soneElement, skipRequest) { - if ($(soneElement).is(".new")) { + if ($(soneElement).hasClass("new")) { $(soneElement).removeClass("new"); if ((typeof skipRequest == "undefined") || !skipRequest) { ajaxGet("markAsKnown.ajax", {"formPassword": getFormPassword(), "type": "sone", "id": getSoneId(soneElement)});