Fixed a few small bugs. Largely cosmetic.
Change-Id: Ifd90288720a330a34d98d83515a0f62925765926
diff --git a/client/catalog/css/style.css b/client/catalog/css/style.css
index 122c438..fa00570 100644
--- a/client/catalog/css/style.css
+++ b/client/catalog/css/style.css
@@ -4,7 +4,7 @@
margin: 0;
min-width: 650px;
background-image: url(../background.jpg);
- background-size: contain;
+ background-size: cover;
background-attachment: fixed;
}
diff --git a/client/catalog/js/autocomplete.js b/client/catalog/js/autocomplete.js
index 2cda884..ea71fa0 100644
--- a/client/catalog/js/autocomplete.js
+++ b/client/catalog/js/autocomplete.js
@@ -28,7 +28,8 @@
'top': this.parent().height()
});
- this.after(element);
+ this.attr('autocomplete', 'off')
+ .after(element);
var getSuggestions = function(current, callback){
callback(suggestions.reduce(function(prev, suggestion){
@@ -145,4 +146,4 @@
* @callback getSuggestions
* @param {string} current - The current value of the input field.
* @param {function}
- */
\ No newline at end of file
+ */
diff --git a/client/catalog/js/catalog.js b/client/catalog/js/catalog.js
index b84ed46..4c1c560 100644
--- a/client/catalog/js/catalog.js
+++ b/client/catalog/js/catalog.js
@@ -299,6 +299,8 @@
function(interest, data){ //Response
if (data.getContent().length === 0){
+ scope.pagers.find('.totalResults').text(0);
+ scope.pagers.find('.pageNumber').text(0);
console.log("Empty response.");
return;
}