diff options
author | Jacob Thornton <jacobthornton@gmail.com> | 2011-11-25 08:12:13 +0400 |
---|---|---|
committer | Jacob Thornton <jacobthornton@gmail.com> | 2011-11-25 08:12:13 +0400 |
commit | b14f551c9c1498247dc69251f8eebfde3b1002f6 (patch) | |
tree | 4a3600197e9aee7a3e9ac3dcc145b31818ffa4ad /js/bootstrap-modal.js | |
parent | 1fa02fbda2bb3710a9f26a487da2c34565e8c406 (diff) |
fix some more modal things
Diffstat (limited to 'js/bootstrap-modal.js')
-rw-r--r-- | js/bootstrap-modal.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/js/bootstrap-modal.js b/js/bootstrap-modal.js index 14c03e6a3e..2860c8a518 100644 --- a/js/bootstrap-modal.js +++ b/js/bootstrap-modal.js @@ -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) }) }) |