Skip to content

Commit

Permalink
Remove unused JavaScript function (apache#12052)
Browse files Browse the repository at this point in the history
ryanahamilton authored Nov 2, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent dd2442b commit 088b98e
Showing 3 changed files with 1 addition and 17 deletions.
8 changes: 0 additions & 8 deletions airflow/www/templates/airflow/dag.html
Original file line number Diff line number Diff line change
@@ -549,14 +549,6 @@ <h4 class="modal-title" id="dagModalLabel">
});
}

function confirmTriggerDag(link, dag_id){
if (confirm("Are you sure you want to run '"+dag_id+"' now?")) {
postAsForm(link.href, {});
}
// Never follow the link
return false;
}

function confirmDeleteDag(link, dag_id){
if (confirm("Are you sure you want to delete '"+dag_id+"' now?\n\
This option will delete ALL metadata, DAG runs, etc.\n\
8 changes: 0 additions & 8 deletions airflow/www/templates/airflow/dags.html
Original file line number Diff line number Diff line change
@@ -282,14 +282,6 @@ <h2>DAGs</h2>
window.location = DAGS_INDEX + "?page_size=" + p_size;
});

function confirmTriggerDag(link, dag_id){
if (confirm("Are you sure you want to run '"+dag_id+"' now?")) {
postAsForm(link.href, {});
}
// Never follow the link
return false;
}

function confirmDeleteDag(link, dag_id){
if (confirm("Are you sure you want to delete '"+dag_id+"' now?\n\
This option will delete ALL metadata, DAG runs, etc.\n\
2 changes: 1 addition & 1 deletion airflow/www/templates/airflow/gantt.html
Original file line number Diff line number Diff line change
@@ -74,7 +74,7 @@
{% block tail_js %}
{{ super() }}
<script src="{{ url_for_asset('d3.min.js') }}"></script>
<script src="{{ url_for_asset('d3-tip.js') }}"></script>/
<script src="{{ url_for_asset('d3-tip.js') }}"></script>
<script src="{{ url_for_asset('ganttChartD3v2.js') }}"></script>
<script src="{{ url_for_asset('taskInstances.js') }}"></script>
<script>

0 comments on commit 088b98e

Please sign in to comment.