Fix posting (again). This should now not perform a real POST anymore.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 30 Dec 2010 23:56:39 +0000 (00:56 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 30 Dec 2010 23:56:39 +0000 (00:56 +0100)
src/main/resources/static/javascript/sone.js

index ad23acd..8a3780f 100644 (file)
@@ -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();