From: David ‘Bombe’ Roden Date: Thu, 30 Dec 2010 23:56:39 +0000 (+0100) Subject: Fix posting (again). This should now not perform a real POST anymore. X-Git-Tag: beta-freefall-0.6.2-1~168 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=78f7136b86bf5a6735ad52dab03473da6dbd88ec;p=Sone.git Fix posting (again). This should now not perform a real POST anymore. --- diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index ad23acd..8a3780f 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -842,7 +842,7 @@ $(document).ready(function() { getTranslation("WebInterface.DefaultText.StatusUpdate", function(defaultText) { registerInputTextareaSwap("#sone #update-status .status-input", defaultText, "text", false, false); $("#sone #update-status").submit(function() { - if (!$(this).find(":input.default").hasAttr("disabled")) { + if ($(this).find(":input.default:enabled").length > 0) { return false; } text = $(this).find(":input:enabled").val();