Remove extra js, fix mobile view

This commit is contained in:
Raphael Sofaer 2011-04-05 16:18:04 -07:00
parent fa41c1fc52
commit 59334dfaf5
3 changed files with 1 additions and 25 deletions

View file

@ -12,8 +12,7 @@
= link_to t('.post_a_message'), '#publisher_page', :id => 'publisher_button'
#main_stream.stream
= render 'shared/stream', :posts => @fakes
%a.more-link.paginate{:href => '#'}
%a.more-link.paginate{:href => aspects_path(:a_ids => params[:a_ids], :page => params[:page] + 1)}
%h2= t("more")
= will_paginate @posts
- content_for :subpages do
= render 'shared/publisher', :aspect_ids => @aspect_ids

View file

@ -40,7 +40,6 @@ javascripts:
- public/javascripts/vendor/jquery.infinitescroll.min.js
- public/javascripts/diaspora.js
- public/javascripts/widgets/i18n.js
- public/javascripts/mobile.js
- public/javascripts/application.js
- public/javascripts/rails.js
mailchimp:

View file

@ -1,22 +0,0 @@
/* Copyright (c) 2010, Diaspora Inc. This file is
* licensed under the Affero General Public License version 3 or later. See
* the COPYRIGHT file.
*/
var Mobile = {
initialize: function() {
$('#main_stream + .pagination').hide();
$('a').live('tap',function(){
$(this).addClass('tapped');
})
},
windowLocation: function(url) {
window.location = url;
}
};
$(document).ready(function() {
Mobile.initialize();
});