# HG changeset patch # User Mads Kiilerich # Date 1582651124 -3600 # 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 -r a42ab217f3d0 -r 169539b32b90 kallithea/public/js/base.js --- a/kallithea/public/js/base.js Tue Feb 25 18:03:54 2020 +0100 +++ b/kallithea/public/js/base.js Tue Feb 25 18:18:44 2020 +0100 @@ -593,6 +593,7 @@ } // 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 @@ } +// 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 -r a42ab217f3d0 -r 169539b32b90 kallithea/templates/changeset/changeset.html --- a/kallithea/templates/changeset/changeset.html Tue Feb 25 18:03:54 2020 +0100 +++ b/kallithea/templates/changeset/changeset.html Tue Feb 25 18:18:44 2020 +0100 @@ -23,8 +23,8 @@ ${self.breadcrumbs()}
diff -r a42ab217f3d0 -r 169539b32b90 kallithea/templates/pullrequests/pullrequest_show.html --- a/kallithea/templates/pullrequests/pullrequest_show.html Tue Feb 25 18:03:54 2020 +0100 +++ b/kallithea/templates/pullrequests/pullrequest_show.html Tue Feb 25 18:18:44 2020 +0100 @@ -314,8 +314,8 @@