diff --git a/pkg/dashboard/static/actions.js b/pkg/dashboard/static/actions.js index 2ec801f..e8980e0 100644 --- a/pkg/dashboard/static/actions.js +++ b/pkg/dashboard/static/actions.js @@ -337,4 +337,18 @@ $("#btnRollback").click(function () { $("#btnAddRepository").click(function () { setHashParam("section", "repository") window.location.reload() +}) + +$("#inputSearch").keyup(function() { + var val = $(this).val().toLowerCase(); + + $(".charts li").hide() + + $(".charts li").each(function(){ + var chartNameElem = this.firstElementChild + var chartName = $(chartNameElem).text().toLowerCase() + if(chartName.indexOf(val) != -1) { + $(this).show() + } + }) }) \ No newline at end of file diff --git a/pkg/dashboard/static/index.html b/pkg/dashboard/static/index.html index 6956369..dd47791 100644 --- a/pkg/dashboard/static/index.html +++ b/pkg/dashboard/static/index.html @@ -96,12 +96,9 @@