Created
May 27, 2016 14:42
-
-
Save khrtz/f1435bd25f667b243e9a64929dc8766f to your computer and use it in GitHub Desktop.
bad_paginate_btn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function(){ | |
$('.Btn-0__txt').click(function(){ | |
$(this).spin(); | |
}) | |
}); | |
$('<%= j(render partial:'/items/paginate')%>').appendTo("#load_project").hide().fadeIn("slow"); | |
$("#load_more").replaceWith("<%= | |
j( | |
load_more_pager(@item, remote: true, id: 'load_more', class: 'Btn-0__txt') do | |
concat(content_tag(:div, id: 'load_more_button', class: 'Btn-0 is-l') do | |
content_tag(:span, class: 'Btn-0__inner') do | |
concat(content_tag(:span, class: 'Btn-0__content') do | |
concat(content_tag(:span) do | |
raw('もっとみる') | |
end) | |
concat(content_tag(:span, '', class: 'Btn-0__icon Icon-arrow-r-2')) | |
end) | |
end | |
end) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment