small hack to add some feedback when links are tapped on the mobile site.
This commit is contained in:
parent
55bee713e9
commit
348ae0b61d
4 changed files with 15 additions and 10 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -25,5 +25,9 @@ $(document).ready(function() {
|
|||
$("a.paginate").live("click", function() {
|
||||
$(document).trigger("retrieve.infscr");
|
||||
});
|
||||
|
||||
$('a').live('tap',function(){
|
||||
$(this).addClass('tapped');
|
||||
})
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue