Browse Source

added hide to all targets if there are no results

2.x-ebsco
Paul Pound 11 years ago
parent
commit
55fb791d00
  1. 2
      targets/islandscholar/js/islandscholar_results.js
  2. 1
      targets/solr_site/js/solr_site_bestbet.js
  3. 2
      targets/solr_site/js/solr_site_databases.js
  4. 2
      targets/solr_site/js/solr_site_guides.js
  5. 2
      targets/solr_site/js/solr_site_results.js

2
targets/islandscholar/js/islandscholar_results.js

@ -11,7 +11,7 @@ Drupal.behaviors.roblib_search_islandscholar = {
} }
if (numberOfDocs < 1) { if (numberOfDocs < 1) {
jQuery('#' + 'roblib-search-content-islandscholar').empty().append('No Results'); jQuery('#' + 'roblib-search-content-islandscholar').empty().append('No Results');
jQuery('.' + 'pane-roblib-search-islandscholar-site-roblib-search-islandscholar-results').hide(); jQuery('.' + 'pane-roblib-search-islandscholar-roblib-islandscholar-results').hide();
} else { } else {
jQuery.each(data.response.docs, function(key, val) { jQuery.each(data.response.docs, function(key, val) {
items.push('<div class ="roblib-search-row">\n\ items.push('<div class ="roblib-search-row">\n\

1
targets/solr_site/js/solr_site_bestbet.js

@ -11,6 +11,7 @@ Drupal.behaviors.roblib_search_solr_site_bestbet = {
} }
if (numberOfDocs < 1) { if (numberOfDocs < 1) {
jQuery('#' + 'roblib-search-content-solr-site-bestbet').empty().append('No Results'); jQuery('#' + 'roblib-search-content-solr-site-bestbet').empty().append('No Results');
jQuery('.' + 'pane-roblib-search-solr-site-roblib-search-solr-site-bestbet').hide();
} else { } else {
jQuery('#' + 'roblib-search-content-solr-site-bestbet').empty(); jQuery('#' + 'roblib-search-content-solr-site-bestbet').empty();

2
targets/solr_site/js/solr_site_databases.js

@ -11,7 +11,7 @@ Drupal.behaviors.roblib_search_solr_site_databases = {
} }
if (numberOfDocs < 1) { if (numberOfDocs < 1) {
jQuery('#' + 'roblib-search-content-solr-site-databases').empty().append('No Results'); jQuery('#' + 'roblib-search-content-solr-site-databases').empty().append('No Results');
jQuery('.' + 'pane-roblib-search-solr-site-roblib-search-solr-site-db').hide();
} else { } else {
jQuery('#' + 'roblib-search-content-solr-site-databases').empty(); jQuery('#' + 'roblib-search-content-solr-site-databases').empty();

2
targets/solr_site/js/solr_site_guides.js

@ -11,7 +11,7 @@ Drupal.behaviors.roblib_search_solr_site_guides = {
} }
if (numberOfDocs < 1) { if (numberOfDocs < 1) {
jQuery('#' + 'roblib-search-content-solr-site-guides').empty().append('No Results'); jQuery('#' + 'roblib-search-content-solr-site-guides').empty().append('No Results');
jQuery('.' + 'pane-roblib-search-solr-site-roblib-search-solr-site-guides').hide();
} else { } else {
jQuery('#' + 'roblib-search-content-solr-site-guides').empty(); jQuery('#' + 'roblib-search-content-solr-site-guides').empty();

2
targets/solr_site/js/solr_site_results.js

@ -11,7 +11,7 @@ Drupal.behaviors.roblib_search_solr_site_results = {
} }
if (numberOfDocs < 1) { if (numberOfDocs < 1) {
jQuery('#' + 'roblib-search-content-solr-site-results').empty().append('No Results'); jQuery('#' + 'roblib-search-content-solr-site-results').empty().append('No Results');
jQuery('.' + 'pane-roblib-search-solr-site-roblib-search-solr-site-results').hide();
} else { } else {
jQuery('#' + 'roblib-search-content-solr-site-results').empty(); jQuery('#' + 'roblib-search-content-solr-site-results').empty();

Loading…
Cancel
Save