You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/10/16 15:51:59 UTC

[GitHub] [airflow] mik-laj commented on a change in pull request #11583: UX Enhancement: Add button to clear search query from DAG search

mik-laj commented on a change in pull request #11583:
URL: https://github.com/apache/airflow/pull/11583#discussion_r506566083



##########
File path: airflow/www/templates/airflow/dags.html
##########
@@ -313,6 +316,12 @@ <h2>DAGs</h2>
       }
     });
 
+    $('#search_form').on('reset', function() {
+      var query = new URLSearchParams(window.location.search);
+      query.delete('search');

Review comment:
       Should we remove page no also? I think the user should always be redirected to the first page.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org