+
+
@@ -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;