Commit d9838746a582c59480753b6d4054e31dece10292
1 parent
1afc4cde
Exists in
master
and in
5 other branches
Clean: remove old lines of code
Showing
1 changed file
with
1 additions
and
9 deletions
Show diff stats
js/main.js
| ... | ... | @@ -760,7 +760,7 @@ define(['handlebars', 'fastclick', 'handlebars_helpers'], function(Handlebars, F |
| 760 | 760 | } |
| 761 | 761 | })(); |
| 762 | 762 | |
| 763 | - // Load data from localhost when it is dev env. | |
| 763 | + | |
| 764 | 764 | var noosferoAPI = host + '/api/v1/articles/' + proposal_discussion + '?private_token=' + Main.private_token + '&fields=id,children,categories,abstract,title,image,url,setting,position'; |
| 765 | 765 | |
| 766 | 766 | $.getJSON(noosferoAPI) |
| ... | ... | @@ -929,20 +929,12 @@ define(['handlebars', 'fastclick', 'handlebars_helpers'], function(Handlebars, F |
| 929 | 929 | message.text('Não foi possível enviar.'); |
| 930 | 930 | }); |
| 931 | 931 | }); |
| 932 | - | |
| 933 | - | |
| 934 | - | |
| 935 | 932 | }) |
| 936 | 933 | .fail(function( jqxhr, textStatus, error ) { |
| 937 | 934 | var err = textStatus + ', ' + error; |
| 938 | 935 | console.log( 'Request Failed: ' + err ); |
| 939 | 936 | }); |
| 940 | 937 | |
| 941 | - // window.addEventListener('load', function() { | |
| 942 | - // new FastClick(document.body); | |
| 943 | - // }, false); | |
| 944 | - | |
| 945 | - | |
| 946 | 938 | $(document).ready(function($) { |
| 947 | 939 | |
| 948 | 940 | FastClick.attach(document.body); | ... | ... |