双击打开bootstrap确认框

时间:2016-02-09 06:05:01

标签: twitter-bootstrap double-click confirmation

如何设置引导程序确认框仅在双击事件中显示。我目前的弹出代码是:

JS

$('[data-toggle="confirmation"]').confirmation({
  'onConfirm': function() {
alert("dfgdfg");
  },
  btnOkLabel: " Yes",
  btnCancelLabel: " No"
});

HTML

<br/>
<br/>
<br/>
<br/>
<br/>

<a href="#Delete" id="try_it" class="btn btn-primary btn-large" title="Continue?" data-toggle="confirmation" data-singleton="true" data-placement="top" data-popout="true">
<span title="Excluir o projeto">Try</span>
</a>

和小提琴链接:http://jsfiddle.net/Sanal_5/q13cor4g/2/

0 个答案:

没有答案