From 9562869e248880e1a05fa7a6ffe75cd65977a935 Mon Sep 17 00:00:00 2001 From: Ryan Lerch Date: Jul 11 2018 07:56:38 +0000 Subject: remove old JS code from pull request template This removes an old section of JS code to do with changing the target when creating a new pull request. This code was left over in the pull request page when the templates were split out. --- diff --git a/pagure/templates/repo_pull_request.html b/pagure/templates/repo_pull_request.html index b3b0e00..87f8abe 100644 --- a/pagure/templates/repo_pull_request.html +++ b/pagure/templates/repo_pull_request.html @@ -1024,43 +1024,6 @@ $(document).ready(function() { show_merge_status() {% endif %} -{% elif form %} -{# No pull_request object, this is about creating a new PR #} - - $('#target_modal').on('shown.bs.modal', function (e) { - var _url = '{{ url_for( - 'internal_ns.get_project_family', - repo=repo.name, - username=username, - namespace=repo.namespace) }}' - $.ajax({ - url: _url, - type: 'POST', - dataType: 'json', - data: { - csrf_token: "{{ g.confirmationform.csrf_token.current_token }}", - }, - success: function(res) { - var _text = '' - for (el in res.family) { - var _t = '
' - + ' ' - + ' ' - + '
'; - _t = _t.replace('---', res.family[el]); - _text += _t; - } - var _el = $('#family_list'); - _el.html(_text); - }, - }); - }); - {% endif %} });