1. Changed icon for map of science.
2. Bug fixes for map of science edge cases. 3. Included a default error message when there are no publications to be found. 4. Improved text for map of sience info.
This commit is contained in:
parent
431036c1b0
commit
6f213a61fa
14 changed files with 614 additions and 532 deletions
|
@ -61,11 +61,11 @@ var EntityVisModeController = Class.extend({
|
|||
if (me.isUnloaded) {
|
||||
if (sync) {
|
||||
downloader.downloadAndWait(url, function(data) {
|
||||
me.loadJsonData(me, data[0]);
|
||||
me.loadJsonData(me, data);
|
||||
});
|
||||
} else {
|
||||
downloader.download(url, function(data) {
|
||||
me.loadJsonData(me, data[0]);
|
||||
me.loadJsonData(me, data);
|
||||
});
|
||||
}
|
||||
} // end if
|
||||
|
@ -74,12 +74,20 @@ var EntityVisModeController = Class.extend({
|
|||
|
||||
$("#" + responseContainerID).unblock();
|
||||
|
||||
if (data.error) {
|
||||
$("#map-of-science-response").hide();
|
||||
$("#error-container").show();
|
||||
return;
|
||||
}
|
||||
|
||||
data = data[0];
|
||||
|
||||
$.each(me.widgets, function(i, widget) {
|
||||
widget.loadJsonData(data);
|
||||
});
|
||||
me.isUnloaded = false;
|
||||
|
||||
me.initToolTipInfo();
|
||||
|
||||
},
|
||||
initToolTipInfo: function() {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue