Use correct method to get the Sone ID.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 28 Nov 2010 20:10:25 +0000 (21:10 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 28 Nov 2010 20:10:25 +0000 (21:10 +0100)
src/main/resources/static/javascript/sone.js

index bed9e66..bc7d7ea 100644 (file)
@@ -830,7 +830,7 @@ $(document).ready(function() {
                registerInputTextareaSwap("#sone #post-message input[name=text]", defaultText, "text", false, false);
                $("#sone #post-message").submit(function() {
                        text = $(this).find(":input:enabled").val();
-                       $.getJSON("createPost.ajax", { "formPassword": getFormPassword(), "recipient": $("#sone #sone-id").text(), "text": text }, function(data, textStatus) {
+                       $.getJSON("createPost.ajax", { "formPassword": getFormPassword(), "recipient": getShownSoneId(), "text": text }, function(data, textStatus) {
                                if ((data != null) && data.success) {
                                        loadNewPost(data.postId);
                                }