Commit 7a8ae43f63cd0c3e95ae6f563befa374a9ae51f8

Authored by Evandro Junior
1 parent acc99c30

Fix fix for oauth

Showing 1 changed file with 1 additions and 6 deletions   Show diff stats
js/main.js
... ... @@ -33,10 +33,6 @@ define(['handlebars','handlebars_helpers'], function(Handlebars){
33 33 // Load data from localhost when it is dev env.
34 34 var noosferoAPI = host + '/api/v1/articles/' + proposal_discussion + '?private_token=' + private_token + '&fields=id,children,categories,abstract,title,image,url,setting';
35 35  
36   - window.oauthPluginHandleLoginResult = function(loggedIn, token) {
37   - loginCallback(loggedIn, token);
38   - }
39   -
40 36 $.getJSON(noosferoAPI)
41 37 .done(function( data ) {
42 38 data.host = host;
... ... @@ -557,8 +553,7 @@ define(['handlebars','handlebars_helpers'], function(Handlebars){
557 553 }
558 554  
559 555 if('onhashchange' in window){
560   -
561   - window.onhashchange = function(){
  556 + window.onhashchange = function(){
562 557 Main.locationHashChanged.apply(Main);
563 558 }
564 559 }else{
... ...