From 0c0d247d45e174a05306382d08663fb506fb42f5 Mon Sep 17 00:00:00 2001 From: Stefan Lage Date: Tue, 28 May 2013 16:43:59 -0400 Subject: [PATCH] nitdoc: Fix bug: problem when getting function information 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 --- share/nitdoc/scripts/js-facilities.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/nitdoc/scripts/js-facilities.js b/share/nitdoc/scripts/js-facilities.js index 40ff369..b0e928f 100644 --- a/share/nitdoc/scripts/js-facilities.js +++ b/share/nitdoc/scripts/js-facilities.js @@ -521,7 +521,7 @@ $(document).ready(function() { } // Create the commit message - commitMessage = 'Wikidoc: modified comment in ' + $(this).parent().prev().html().split(' ')[1]; + commitMessage = 'Wikidoc: modified comment in ' + $(this).parent().prev().prev().html().split(' ')[1]; $('#commitMessage').text(commitMessage); $('#commitMessage').css({'display': 'block'}); pathFile = $(this).prev().prev().prev().attr('tag'); -- 1.7.9.5