使用Rails 3.2和Colorbox。我有以下内容:
<%= link_to image_tag(photo.data.url(:picture_thumb), :alt => '', :title => ''),
photo.data.url(:picture_lightbox),
:class => "gallery",
:"data-title" => %(
#{link_to("Delete",
spot_photo_path(@spot, photo),
:method => :delete,
:confirm => "Are you sure you want to delete this picture? Your unsaved changes will be lost.", :class => "delete_photo")}
)
%>
$(".gallery").colorbox({
rel: "gallery",
width: "95%",
height: "95%",
current: "{current} of {total}",
title: function() {
return $(this).data("title");
}
});
当我点击链接时,我收到了很多错误:
Uncaught RangeError: Maximum call stack size exceeded.
我真的找不到解决这个问题的方法吗?