Commit a9729c5f authored by Mark Otto's avatar Mark Otto

fix js from @fat feedback for modal

parent 52581839
......@@ -241,7 +241,7 @@
})
})
var $body = $('body')
var $body = $(document.body)
.on('shown', '.modal', function () { $body.addClass('modal-open') })
.on('hidden', '.modal', function () { $body.removeClass('modal-open') })
......
......@@ -1039,7 +1039,7 @@
})
})
var $body = $('body')
var $body = $(document.body)
.on('shown', '.modal', function () { $body.addClass('modal-open') })
.on('hidden', '.modal', function () { $body.removeClass('modal-open') })
......
This diff is collapsed.
......@@ -241,7 +241,7 @@
})
})
var $body = $('body')
var $body = $(document.body)
.on('shown', '.modal', function () { $body.addClass('modal-open') })
.on('hidden', '.modal', function () { $body.removeClass('modal-open') })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment