diff --git a/dashboard/dashboard.cfm b/dashboard/dashboard.cfm index 477a423..0a30376 100644 --- a/dashboard/dashboard.cfm +++ b/dashboard/dashboard.cfm @@ -400,7 +400,7 @@
#local.func.hint#
-
+
@@ -455,24 +455,20 @@ -
-
-
-
-
- Sample Response -
-
-
-
-
- -
-
+
+
+
+ Sample Response +
+
+
+
+
+
@@ -579,6 +575,7 @@ $(this).click(); }); }); + function submitRequest( verb, resource, headers, body, callback ){ var url = window.location.protocol + '//' + window.location.host; var endpointURLParam = '#jsStringFormat(application._taffy.settings.endpointURLParam)#'; @@ -645,19 +642,18 @@ return null; } function filterResources(){ - var input, filter, ul, li, a, i; - input = document.getElementById('resourceSearch'); - filter = input.value.toUpperCase(); - ul = document.getElementById("resourcesAccordion"); - li = ul.getElementsByClassName('panel'); - for (i = 0; i < li.length; i++) { - a = li[i].getElementsByTagName("a")[0]; - if (a.innerHTML.toUpperCase().indexOf(filter) > -1) { - li[i].style.display = ""; - } else { - li[i].style.display = "none"; + var filter = $('#resourceSearch').val().toUpperCase(); + var ul = $('#resourcesAccordion'); + var li = ul.find('.panel').not('.resource-docs'); + li.each(function(){ + var row = $(this); + var rowText = $(row.find('a')[0]).text(); + if ( rowText.toUpperCase().indexOf(filter) > -1 ){ + row.css({ display: '' }); + }else{ + row.css({ display: 'none' }); } - } + }); } function clearSearch(evt, input) { var code = evt.charCode || evt.keyCode;