nitdoc: Fix bug: problem when getting function information
authorStefan Lage <lagestfan@gmail.com>
Tue, 28 May 2013 20:43:59 +0000 (16:43 -0400)
committerStefan Lage <lagestfan@gmail.com>
Tue, 28 May 2013 22:12:40 +0000 (18:12 -0400)
There was a 'bug' when we tried to commit, we didn't get the right
informations about the function which was editing, we get somes chars
which causes somes troubles in commit query. Because of the
adding of a tag in the last commit.

Signed-off-by: Stefan Lage <lagestfan@gmail.com>

share/nitdoc/scripts/js-facilities.js

index 40ff369..b0e928f 100644 (file)
@@ -521,7 +521,7 @@ $(document).ready(function() {
                        }\r
                        \r
                        // Create the commit message\r
-                       commitMessage = 'Wikidoc: modified comment in ' + $(this).parent().prev().html().split(' ')[1];\r
+                       commitMessage = 'Wikidoc: modified comment in ' + $(this).parent().prev().prev().html().split(' ')[1];\r
                        $('#commitMessage').text(commitMessage);\r
                        $('#commitMessage').css({'display': 'block'});\r
                        pathFile = $(this).prev().prev().prev().attr('tag');\r