【发布时间】:2016-03-10 11:25:57
【问题描述】:
我在一个带有 playframework 的 scala 应用程序中工作,我想在智能表中使用 popover 确认,我为 popconfirm ("popconfirm":"0.4.3") 进行了安装,它运行良好,除了在表格中正好在<td>
我的代码中有一部分:
<table st-table="topics" st-safe-src="topicList" class="table table-striped">
<thead>
<tr>
<th st-sort="domain">Domain</th>
<th class="text-center">Actions</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="topic in topics">
<td>{{topic.domain}}</td>
<td class="text-center">
<div class="btn-group btn-group-xs">
<a href="javascript:void(0)" data-toggle="tooltip" data-original-title="Edit" class="btn btn-default" ng-click="showTopic(topic)" title><i class="fa fa-pencil"></i></a>
<button href="" type="submit" data-toggle="tooltip" data-original-title="Remove" class="btn btn-danger popconfirm" ng-click="removeTopic(topic)" title><i class="hi hi-remove"></i>
</button>
<button type="submit" class="btn btn-success popconfirm" href="@routes.Application.index()">Test</button>
</div>
</td>
<button type="submit" class="btn btn-success popconfirm" href="@routes.Application.index()">Work</button>
</tr>
</tbody>
</table>
<script src="@routes.Assets.versioned("temp/js/vendor/jquery-1.12.0.min.js")"></script>
<script type="text/javascript">
$(document).ready(function() {
$(".popconfirm").popConfirm();
});
</script>
确认按钮“工作”运行良好,但测试不起作用,请帮忙?
【问题讨论】:
标签: jquery html angularjs twitter-bootstrap popover