# HG changeset patch # User Mads Kiilerich # Date 2020-02-25 18:18:44 # Node ID 169539b32b9087677639c8fa8821d468ff95b7a0 # Parent a42ab217f3d041b561c76658b7d12e4b5e566a5a js: fix missing var declaration of AJAX_COMMENT_URL and AJAX_COMMENT_DELETE_URL (Issue #362) Tech debt stroke back when fb9550946c26 cleaned things up. Eslint wearnings for these variables had incorrectly been manually ignored. diff --git a/kallithea/public/js/base.js b/kallithea/public/js/base.js --- a/kallithea/public/js/base.js +++ b/kallithea/public/js/base.js @@ -593,6 +593,7 @@ function _comment_div_append_add($commen } // append a comment form to $comment_div +// Note: var AJAX_COMMENT_URL must have been defined before invoking this function function _comment_div_append_form($comment_div, f_path, line_no) { var $form_div = $('#comment-inline-form-template').children() .clone() @@ -709,6 +710,7 @@ function _comment_div_append_form($comme } +// Note: var AJAX_COMMENT_URL must have been defined before invoking this function function deleteComment(comment_id) { var url = AJAX_COMMENT_DELETE_URL.replace('__COMMENT_ID__', comment_id); var postData = {}; diff --git a/kallithea/templates/changeset/changeset.html b/kallithea/templates/changeset/changeset.html --- a/kallithea/templates/changeset/changeset.html +++ b/kallithea/templates/changeset/changeset.html @@ -23,8 +23,8 @@ ${self.repo_context_bar('changelog', c.c ${self.breadcrumbs()}
diff --git a/kallithea/templates/pullrequests/pullrequest_show.html b/kallithea/templates/pullrequests/pullrequest_show.html --- a/kallithea/templates/pullrequests/pullrequest_show.html +++ b/kallithea/templates/pullrequests/pullrequest_show.html @@ -314,8 +314,8 @@ ${self.repo_context_bar('showpullrequest