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