Don't open new tab for false positive scanner result report (#20261)
Fix https://github.com/mozilla/addons-server/issues/20260
This commit is contained in:
Родитель
4f296e6273
Коммит
6de094fa8c
|
@ -5,7 +5,6 @@
|
|||
<button
|
||||
class="button report-false-positive-button"
|
||||
formaction="{% url handlefalsepositive_urlname obj.pk %}"
|
||||
formtarget="_blank"
|
||||
>
|
||||
False positive
|
||||
</button>
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
{% extends 'admin/change_form.html' %}
|
||||
{% load static admin_urls %}
|
||||
|
||||
{% block admin_change_form_document_ready %}
|
||||
{{ block.super }}
|
||||
|
||||
<script type="text/javascript" src="{% static 'js/scanners/scannerresult_actions.js' %}"></script>
|
||||
{% endblock %}
|
|
@ -1,8 +0,0 @@
|
|||
{% extends "admin/change_list.html" %}
|
||||
{% load static %}
|
||||
|
||||
{% block footer %}
|
||||
{{ block.super }}
|
||||
|
||||
<script type="text/javascript" src="{% static 'js/scanners/scannerresult_actions.js' %}"></script>
|
||||
{% endblock %}
|
|
@ -1,7 +0,0 @@
|
|||
document.querySelectorAll('.report-false-positive-button').forEach((button) => {
|
||||
button.addEventListener('click', () => {
|
||||
setTimeout(() => {
|
||||
window.location.reload();
|
||||
}, 2000); // 2 seconds
|
||||
});
|
||||
});
|
Загрузка…
Ссылка в новой задаче