Skip to content

Commit

Permalink
Merge pull request #667 from aholachek/orcid
Browse files Browse the repository at this point in the history
was using old .pubsub syntax for orcid navigator function, which caus…
  • Loading branch information
aholachek committed Nov 6, 2015
2 parents 99096b5 + 0f1ea0e commit 2ea7459
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/js/apps/discovery/navigator.js
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ define([
options: {
done: function(data){
var q = new ApiQuery().load(JSON.parse(data.query).query);
self.pubsub.publish(self.pubSubKey, self.pubsub.START_SEARCH, q);
self.getPubSub().publish(self.getPubSub().START_SEARCH, q);
},
fail: function() {
var alerter = app.getController('AlertsController');
Expand All @@ -541,7 +541,7 @@ define([
orcidApi.getAccessData(orcidApi.getExchangeCode())
.done(function(data) {
orcidApi.saveAccessData(data);
self.pubsub.publish(self.pubSubKey, self.pubsub.APP_EXIT, {url: window.location.pathname +
self.getPubSub().publish(self.getPubSub().APP_EXIT, {url: window.location.pathname +
((targetRoute && _.isString(targetRoute)) ? targetRoute : window.location.hash)});
})
.fail(function() {
Expand All @@ -566,7 +566,7 @@ define([
});
}
else {
self.pubsub.publish(self.pubSubKey, self.pubsub.NAVIGATE, 'index-page');
self.getPubSub().publish(self.getPubSub().NAVIGATE, 'index-page');
}
});

Expand Down

0 comments on commit 2ea7459

Please sign in to comment.