small hack to add some feedback when links are tapped on the mobile site.

This commit is contained in:
maxwell 2011-01-29 18:42:50 -08:00
parent 55bee713e9
commit 348ae0b61d
4 changed files with 15 additions and 10 deletions

View file

@ -2,7 +2,8 @@
-# licensed under the Affero General Public License version 3 or later. See
-# the COPYRIGHT file.
= markdownify(post.message, :youtube_maps => post[:youtube_titles])
.message
= markdownify(post.message, :youtube_maps => post[:youtube_titles])
- if photos.count > 0
.photo_attachments

View file

@ -25,5 +25,9 @@ $(document).ready(function() {
$("a.paginate").live("click", function() {
$(document).trigger("retrieve.infscr");
});
$('a').live('tap',function(){
$(this).addClass('tapped');
})
});

View file

@ -7,15 +7,6 @@ var Mobile = {
initialize: function() {
$("abbr.timeago").timeago();
$('#main_stream + .pagination').hide();
$('#aspect_picker').change(Mobile.changeAspect);
},
changeAspect: function() {
Mobile.windowLocation('/aspects/' + $('#aspect_picker option:selected').val());
},
windowLocation: function(url) {
window.location = url;
}
};

View file

@ -50,6 +50,12 @@ a.ui-link-inherit
:-moz-box-shadow 0 1px 3px #ccc
:box-shadow 0 1px 3px #ccc
.tapped
:background
:color rgba(100, 103, 103, .2)
:border-radius 5px
a
:padding 2px
.alpha-warning
@include mobile-box
@ -58,6 +64,9 @@ a.ui-link-inherit
label
:font-weight bold
.message
:padding
:left 2px
.stream_element,
.comment
:position relative