Commit de00eeb8ee24e0a142f0ca6197230d3eddc4116c

Authored by Leonardo Merlin
1 parent b3dfb8d8

Pequenas melhorias no script. A atualização da hash já atualiza a visão.

Showing 1 changed file with 6 additions and 16 deletions   Show diff stats
js/main.js
... ... @@ -48,11 +48,8 @@ $.getJSON(noosferoAPI)
48 48  
49 49 var $link = $(this);
50 50  
51   - // Update URL
  51 + // Update URL and Navigate
52 52 updateHash($link.attr('href'));
53   -
54   - // Display the Category tab
55   - display_category_tab();
56 53 });
57 54  
58 55 $( '#nav-proposal-group a' ).click(function(event){
... ... @@ -60,21 +57,16 @@ $.getJSON(noosferoAPI)
60 57  
61 58 var $link = $(this);
62 59  
63   - // Update URL
  60 + // Update URL and Navigate
64 61 updateHash($link.attr('href'));
65   -
66   - //Display the Proposals tab
67   - display_proposals_tab();
68 62 });
69 63  
70 64 $( '.proposal-item a' ).click(function(event){
71 65 var $link = $(this);
72 66 var item = $link.data('target');
73 67  
74   - // Update URL
  68 + // Update URL and Navigate
75 69 updateHash($link.attr('href'));
76   -
77   - display_proposal(item);
78 70 });
79 71  
80 72 $( '.proposal-category a' ).click(function(event){
... ... @@ -83,10 +75,8 @@ $.getJSON(noosferoAPI)
83 75 var $link = $(this);
84 76 var item = $link.data('target');
85 77  
86   - // Update URL
  78 + // Update URL and Navigate
87 79 updateHash($link.attr('href'));
88   -
89   - display_proposal_by_category(item);
90 80 });
91 81  
92 82 $( '.send-button a' ).click(function(event){
... ... @@ -106,7 +96,7 @@ $.getJSON(noosferoAPI)
106 96 var $link = $(this);
107 97 var item = $link.data('target');
108 98  
109   - // Update URL
  99 + // Update URL and Navigate
110 100 updateHash($link.attr('href'));
111 101 });
112 102  
... ... @@ -116,7 +106,7 @@ $.getJSON(noosferoAPI)
116 106 var $link = $(this);
117 107 var item = $link.data('target');
118 108  
119   - // Update URL
  109 + // Update URL and Navigate
120 110 updateHash($link.attr('href'));
121 111 });
122 112  
... ...