Skip to content

Commit 17b9114

Browse files
committed
support for touch devices
Now works on ios devices.
1 parent 41da27b commit 17b9114

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/bootstrap-table.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
* ============ */
9494

9595
$(function () {
96-
$('body').on('click.table.data-api', '[data-type="modal"], [data-type="inline"], [data-url="*"], [data-content="*"]', function (e) {
96+
$('body').on('click.table.data-api touchstart.table.data-api', '[data-type="modal"], [data-type="inline"], [data-url="*"], [data-content="*"]', function (e) {
9797
e.preventDefault();
9898
$(this).table('show')
9999
})

0 commit comments

Comments
 (0)