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 | 49 | navigateTo(window.location.hash); |
| 50 | 50 | |
| 51 | 51 | //Actions for links |
| 52 | - $( '#nav-proposal-categories a' ).click(function(event){ | |
| 52 | + $( '#nav-proposal-categories a' ).on('click touchstart', function(event){ | |
| 53 | 53 | event.preventDefault(); |
| 54 | 54 | |
| 55 | 55 | var $link = $(this); |
| ... | ... | @@ -58,7 +58,7 @@ $.getJSON(noosferoAPI) |
| 58 | 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 | 62 | event.preventDefault(); |
| 63 | 63 | |
| 64 | 64 | var $link = $(this); |
| ... | ... | @@ -67,7 +67,7 @@ $.getJSON(noosferoAPI) |
| 67 | 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 | 71 | var $link = $(this); |
| 72 | 72 | var item = $link.data('target'); |
| 73 | 73 | |
| ... | ... | @@ -75,7 +75,7 @@ $.getJSON(noosferoAPI) |
| 75 | 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 | 79 | event.preventDefault(); |
| 80 | 80 | |
| 81 | 81 | var $link = $(this); |
| ... | ... | @@ -99,7 +99,7 @@ $.getJSON(noosferoAPI) |
| 99 | 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 | 103 | event.preventDefault(); |
| 104 | 104 | |
| 105 | 105 | var oldHash = window.location.hash; |
| ... | ... | @@ -116,7 +116,7 @@ $.getJSON(noosferoAPI) |
| 116 | 116 | updateHash(newHash); |
| 117 | 117 | }); |
| 118 | 118 | |
| 119 | - $( '.send-button a' ).click(function(event){ | |
| 119 | + $( '.send-button a' ).on('click touchstart', function(event){ | |
| 120 | 120 | //display form to send proposal (or login form for non-logged users) |
| 121 | 121 | var $this = $(this); |
| 122 | 122 | loginButton = $this.parents('.send-button'); |
| ... | ... | @@ -126,11 +126,11 @@ $.getJSON(noosferoAPI) |
| 126 | 126 | event.preventDefault(); |
| 127 | 127 | }); |
| 128 | 128 | |
| 129 | - $( '#display-contrast' ).click(function(event){ | |
| 129 | + $( '#display-contrast' ).on('click touchstart', function(event){ | |
| 130 | 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 | 134 | event.preventDefault(); |
| 135 | 135 | |
| 136 | 136 | var $link = $(this); |
| ... | ... | @@ -140,7 +140,7 @@ $.getJSON(noosferoAPI) |
| 140 | 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 | 144 | event.preventDefault(); |
| 145 | 145 | |
| 146 | 146 | var $link = $(this); | ... | ... |
sass/_proposal_categories.scss
| ... | ... | @@ -33,7 +33,9 @@ |
| 33 | 33 | // border-width: 2px; |
| 34 | 34 | // border-style: solid; |
| 35 | 35 | background-size: 90px; |
| 36 | - hover: { | |
| 36 | + cursor: pointer; | |
| 37 | + | |
| 38 | + &:hover { | |
| 37 | 39 | border-color: #fff !important; |
| 38 | 40 | } |
| 39 | 41 | } |
| ... | ... | @@ -79,6 +81,7 @@ |
| 79 | 81 | font-weight: 700; |
| 80 | 82 | font-size: 18pt; |
| 81 | 83 | text-decoration: none; |
| 84 | + cursor: pointer; | |
| 82 | 85 | } |
| 83 | 86 | |
| 84 | 87 | .proposal-item { | ... | ... |