Changeset - aee1f11faa8c
[Not reviewed]
default
0 1 0
Thomas De Schampheleire - 7 years ago 2018-11-16 21:45:21
thomas.de_schampheleire@nokia.com
controllers: pullrequests: comments are always using AJAX

This is preparation to align commenting on changeset and pullrequests.
1 file changed with 1 insertions and 3 deletions:
0 comments (0 inline, 0 general)
kallithea/controllers/pullrequests.py
Show inline comments
 
@@ -632,6 +632,7 @@ class PullrequestsController(BaseRepoCon
 
    @HasRepoPermissionLevelDecorator('read')
 
    @jsonify
 
    def comment(self, repo_name, pull_request_id):
 
        assert request.environ.get('HTTP_X_PARTIAL_XHR')
 
        pull_request = PullRequest.get_or_404(pull_request_id)
 

	
 
        status = request.POST.get('changeset_status')
 
@@ -698,9 +699,6 @@ class PullrequestsController(BaseRepoCon
 

	
 
        Session().commit()
 

	
 
        if not request.environ.get('HTTP_X_PARTIAL_XHR'):
 
            raise HTTPFound(location=pull_request.url())
 

	
 
        data = {
 
           'target_id': h.safeid(h.safe_unicode(request.POST.get('f_path'))),
 
        }
0 comments (0 inline, 0 general)