diff --git a/app/views/aspects/index.mobile.haml b/app/views/aspects/index.mobile.haml index e4b068f36..ff1473093 100644 --- a/app/views/aspects/index.mobile.haml +++ b/app/views/aspects/index.mobile.haml @@ -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 diff --git a/config/assets.yml b/config/assets.yml index 65c3911a6..d74f73d53 100644 --- a/config/assets.yml +++ b/config/assets.yml @@ -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: diff --git a/public/javascripts/mobile.js b/public/javascripts/mobile.js deleted file mode 100644 index 5438cde53..000000000 --- a/public/javascripts/mobile.js +++ /dev/null @@ -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(); - }); -