New features and timeout fix.
* Added title button that changes tab.
* Changed expansion icon to plus and minus.
* Fixed metadata timeout.
Change-Id: I7e0806d9641df14813be7890aa56c36d1720bfdc
diff --git a/client/catalog-dev/js/catalog.js b/client/catalog-dev/js/catalog.js
index 447afa2..c3c49cf 100644
--- a/client/catalog-dev/js/catalog.js
+++ b/client/catalog-dev/js/catalog.js
@@ -264,6 +264,7 @@
this.resultTable.popover({
selector: ".metaDataLink",
content: function() {
+ $('.metaDataLink').not(this).popover('destroy');
return scope.getMetaData(this);
},
title: "Metadata",
@@ -285,6 +286,13 @@
scope.request(null , filename);
});
+ //Allow the title to change the tab
+ $('#brand-title').click(function(){
+ //Correct active class on tabs.
+ $('#explore-tab').removeClass('active');
+ $('#search-tab').addClass('active');
+ });
+
}
Atmos.prototype.clearResults = function() {
@@ -846,7 +854,7 @@
var n2 = new Name(name);
n2.appendSegment(segment);
- scope.expressInterest(n2, handleData, function() {});
+ scope.expressInterest(n2, handleData, function(err, interest){failure(interest)});
//Forward to handleData and ignore error
}