Commit 1213b904d3c58776ad50da54fa8e648e723987ac
1 parent
7a3d3dbd
Exists in
master
and in
10 other branches
Fix #76 - Problema com iPhone 4s e iPad (versao desconhecia)
Showing
2 changed files
with
13 additions
and
10 deletions
Show diff stats
js/main.js
@@ -49,7 +49,7 @@ $.getJSON(noosferoAPI) | @@ -49,7 +49,7 @@ $.getJSON(noosferoAPI) | ||
49 | navigateTo(window.location.hash); | 49 | navigateTo(window.location.hash); |
50 | 50 | ||
51 | //Actions for links | 51 | //Actions for links |
52 | - $( '#nav-proposal-categories a' ).click(function(event){ | 52 | + $( '#nav-proposal-categories a' ).on('click touchstart', function(event){ |
53 | event.preventDefault(); | 53 | event.preventDefault(); |
54 | 54 | ||
55 | var $link = $(this); | 55 | var $link = $(this); |
@@ -58,7 +58,7 @@ $.getJSON(noosferoAPI) | @@ -58,7 +58,7 @@ $.getJSON(noosferoAPI) | ||
58 | updateHash($link.attr('href')); | 58 | updateHash($link.attr('href')); |
59 | }); | 59 | }); |
60 | 60 | ||
61 | - $( '#nav-proposal-group a' ).click(function(event){ | 61 | + $( '#nav-proposal-group a' ).on('click touchstart', function(event){ |
62 | event.preventDefault(); | 62 | event.preventDefault(); |
63 | 63 | ||
64 | var $link = $(this); | 64 | var $link = $(this); |
@@ -67,7 +67,7 @@ $.getJSON(noosferoAPI) | @@ -67,7 +67,7 @@ $.getJSON(noosferoAPI) | ||
67 | updateHash($link.attr('href')); | 67 | updateHash($link.attr('href')); |
68 | }); | 68 | }); |
69 | 69 | ||
70 | - $( '.proposal-item a' ).click(function(event){ | 70 | + $( '.proposal-item a' ).on('click touchstart', function(event){ |
71 | var $link = $(this); | 71 | var $link = $(this); |
72 | var item = $link.data('target'); | 72 | var item = $link.data('target'); |
73 | 73 | ||
@@ -75,7 +75,7 @@ $.getJSON(noosferoAPI) | @@ -75,7 +75,7 @@ $.getJSON(noosferoAPI) | ||
75 | updateHash($link.attr('href')); | 75 | updateHash($link.attr('href')); |
76 | }); | 76 | }); |
77 | 77 | ||
78 | - $( '.proposal-category a' ).click(function(event){ | 78 | + $( '.proposal-category a' ).on('click touchstart', function(event){ |
79 | event.preventDefault(); | 79 | event.preventDefault(); |
80 | 80 | ||
81 | var $link = $(this); | 81 | var $link = $(this); |
@@ -99,7 +99,7 @@ $.getJSON(noosferoAPI) | @@ -99,7 +99,7 @@ $.getJSON(noosferoAPI) | ||
99 | // $(this).removeClass('animated'); | 99 | // $(this).removeClass('animated'); |
100 | // }); | 100 | // }); |
101 | 101 | ||
102 | - $( '.proposal-category .go-back' ).click(function(event){ | 102 | + $( '.proposal-category .go-back' ).on('click touchstart', function(event){ |
103 | event.preventDefault(); | 103 | event.preventDefault(); |
104 | 104 | ||
105 | var oldHash = window.location.hash; | 105 | var oldHash = window.location.hash; |
@@ -116,7 +116,7 @@ $.getJSON(noosferoAPI) | @@ -116,7 +116,7 @@ $.getJSON(noosferoAPI) | ||
116 | updateHash(newHash); | 116 | updateHash(newHash); |
117 | }); | 117 | }); |
118 | 118 | ||
119 | - $( '.send-button a' ).click(function(event){ | 119 | + $( '.send-button a' ).on('click touchstart', function(event){ |
120 | //display form to send proposal (or login form for non-logged users) | 120 | //display form to send proposal (or login form for non-logged users) |
121 | var $this = $(this); | 121 | var $this = $(this); |
122 | loginButton = $this.parents('.send-button'); | 122 | loginButton = $this.parents('.send-button'); |
@@ -126,11 +126,11 @@ $.getJSON(noosferoAPI) | @@ -126,11 +126,11 @@ $.getJSON(noosferoAPI) | ||
126 | event.preventDefault(); | 126 | event.preventDefault(); |
127 | }); | 127 | }); |
128 | 128 | ||
129 | - $( '#display-contrast' ).click(function(event){ | 129 | + $( '#display-contrast' ).on('click touchstart', function(event){ |
130 | $('#proposal-result').toggleClass('contrast'); | 130 | $('#proposal-result').toggleClass('contrast'); |
131 | }); | 131 | }); |
132 | 132 | ||
133 | - $( '.show_body a' ).click(function(event){ | 133 | + $( '.show_body a' ).on('click touchstart', function(event){ |
134 | event.preventDefault(); | 134 | event.preventDefault(); |
135 | 135 | ||
136 | var $link = $(this); | 136 | var $link = $(this); |
@@ -140,7 +140,7 @@ $.getJSON(noosferoAPI) | @@ -140,7 +140,7 @@ $.getJSON(noosferoAPI) | ||
140 | updateHash($link.attr('href')); | 140 | updateHash($link.attr('href')); |
141 | }); | 141 | }); |
142 | 142 | ||
143 | - $( '.go-to-proposal-button a' ).click(function(event){ | 143 | + $( '.go-to-proposal-button a' ).on('click touchstart', function(event){ |
144 | event.preventDefault(); | 144 | event.preventDefault(); |
145 | 145 | ||
146 | var $link = $(this); | 146 | var $link = $(this); |
sass/_proposal_categories.scss
@@ -33,7 +33,9 @@ | @@ -33,7 +33,9 @@ | ||
33 | // border-width: 2px; | 33 | // border-width: 2px; |
34 | // border-style: solid; | 34 | // border-style: solid; |
35 | background-size: 90px; | 35 | background-size: 90px; |
36 | - hover: { | 36 | + cursor: pointer; |
37 | + | ||
38 | + &:hover { | ||
37 | border-color: #fff !important; | 39 | border-color: #fff !important; |
38 | } | 40 | } |
39 | } | 41 | } |
@@ -79,6 +81,7 @@ | @@ -79,6 +81,7 @@ | ||
79 | font-weight: 700; | 81 | font-weight: 700; |
80 | font-size: 18pt; | 82 | font-size: 18pt; |
81 | text-decoration: none; | 83 | text-decoration: none; |
84 | + cursor: pointer; | ||
82 | } | 85 | } |
83 | 86 | ||
84 | .proposal-item { | 87 | .proposal-item { |