Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Commit

Permalink
クリップ詳細: mixiボタンの挙動を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
YOSHIDA Hiroki committed Dec 15, 2013
1 parent edb80c0 commit 6f52367
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/base/_mixi_button.html.erb
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<div data-plugins-type="mixi-favorite" data-service-key="<%= Settings.mixi_key %>" data-size="medium" data-href="" data-show-faces="false" data-show-count="true" data-show-comment="true" data-width=""></div>
<div data-plugins-type="mixi-favorite" data-service-key="<%= Settings.mixi_key %>" data-size="medium" data-href="<%= url_for id: target ||= nil, only_path: false %>" data-show-faces="false" data-show-count="true" data-show-comment="true" data-width=""></div>
<script type="text/javascript">$(document).ajaxComplete(function() { try{ $('[data-plugins-type="mixi-favorite"]:empty').each(function(i, element) { new __MIXI_PLUGINS__.FavoriteFrame(element); }); } catch(e) {} });</script>
2 changes: 1 addition & 1 deletion app/views/clips/show.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
li.facebook
== render partial: '/base/facebook_button', locals: { target: @clip }
li.mixi
== render partial: '/base/mixi_button'
== render partial: '/base/mixi_button', locals: { target: @clip }

.other_info
- if user_signed_in? && @clip.user_id == current_user.id
Expand Down

0 comments on commit 6f52367

Please sign in to comment.