开启关闭功能没有生效的原因

tr的id和data-target不一致

 

<tbody>
        <tr id="homepage_video-13" class="homepage_video" data-sort-path="/homepage_videos/13/sort">
  <td class="sequence">
    <span class="handle">
      <span></span>
      <span></span>
    </span>
    3
  </td>
  <td class="show_id">a803862414c711e5b2ad</td>
  <td class="title">夏洛特烦恼</td>
  <td class="large_horizontal_image"><img src="http://r2.ykimg.com/050C000055E95E6367BC3C11430981EB" alt="050c000055e95e6367bc3c11430981eb"></td>
  <td class="created_by">王</td>
  <td><a class="active_toggle" data-confirm="确定关闭吗?" data-target="#homepage-video-13" data-active="true" data-remote="true" rel="nofollow" data-method="patch" href="/homepage_videos/13/toggle_active.json"><i class="fa fa-check-square-o"></i></a></td>
  <td>
    <a class="btn btn-default btn-xs" href="/homepage_videos/13">详情</a>
    <a class="btn btn-default btn-xs" href="/homepage_videos/13/edit">编辑</a>
    <a data-confirm="Are you sure?" class="btn btn-xs btn-danger" rel="nofollow" data-method="delete" href="/homepage_videos/13">删除</a>
  </td>
</tr>

 

发表评论

电子邮件地址不会被公开。 必填项已用*标注