From 81551fb4ebb9e2f907810515ef4c2bf3e732c8d7 Mon Sep 17 00:00:00 2001 From: Stefan Lage Date: Thu, 23 May 2013 19:49:05 -0400 Subject: [PATCH] nitdoc: Fix bugs: Forgot variable definition This variable is supposed to contain the new comment so the commit was empty... Now all comments are loaded when a user is logged. signed-off by: Stefan Lage --- share/nitdoc/scripts/js-facilities.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/share/nitdoc/scripts/js-facilities.js b/share/nitdoc/scripts/js-facilities.js index f46ac9c..84aab54 100644 --- a/share/nitdoc/scripts/js-facilities.js +++ b/share/nitdoc/scripts/js-facilities.js @@ -4,6 +4,8 @@ var sessionStarted = false; var editComment = 0; var currentfileContent = ''; var addNewComment = false; +var commentLineStart; +var commentLineEnd; // SHA GitHub var shaLastCommit = ""; @@ -72,11 +74,9 @@ $(document).ready(function() { $('a[id=cancelBtn]').hide(); // Hide Authenfication form $(".popover").hide(); + githubRepo = $('#repoName').attr('name'); // Update display updateDisplaying(); - githubRepo = $('#repoName').attr('name'); - // Load comment from the original repo - reloadComment(); /* * Highlight the spoted element */ @@ -684,6 +684,7 @@ function displayLogginModal(){ function updateDisplaying(){ if (checkCookie()) { + userB64 = "Basic " + getUserPass("logginNitdoc"); $('#loginGit').hide(); $('#passwordGit').hide(); $('#lbpasswordGit').hide(); @@ -701,6 +702,7 @@ function updateDisplaying(){ $('.popover').css({'height' : '80px'}); $('#signIn').text("Sign out"); sessionStarted = true; + reloadComment(); } else { -- 1.7.9.5