Commit b14f551c authored by Jacob Thornton's avatar Jacob Thornton

fix some more modal things

parent 1fa02fbd
......@@ -192,8 +192,10 @@
$(document).ready(function () {
$('body').delegate('[data-toggle="modal"]', 'click.modal.data-api', function ( e ) {
var $this = $(this)
, target = $this.attr('data-target')
, option = $(target).data('modal') ? 'toggle' : $this.data()
e.preventDefault()
$($this.attr('data-target')).modal($this.data())
$(target).modal(option)
})
})
......
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