aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJacob Thornton <[email protected]>2012-02-12 11:15:12 -0800
committerJacob Thornton <[email protected]>2012-02-12 11:15:12 -0800
commit5b4a29d84e6290a93db98da34b89776a9740e455 (patch)
treefe450350a156e2fe9bdfae8d22afc9bbb0a05770 /docs
parentd7953a8f1e491d6ec5e479e26d15ae3b545fbb5f (diff)
downloadbootstrap-5b4a29d84e6290a93db98da34b89776a9740e455.tar.xz
bootstrap-5b4a29d84e6290a93db98da34b89776a9740e455.zip
honor data attributes set on modal as well
Diffstat (limited to 'docs')
-rw-r--r--docs/assets/bootstrap.zipbin52705 -> 52712 bytes
-rw-r--r--docs/assets/js/bootstrap-modal.js2
2 files changed, 1 insertions, 1 deletions
diff --git a/docs/assets/bootstrap.zip b/docs/assets/bootstrap.zip
index 18f938cf9..073df93f0 100644
--- a/docs/assets/bootstrap.zip
+++ b/docs/assets/bootstrap.zip
Binary files differ
diff --git a/docs/assets/js/bootstrap-modal.js b/docs/assets/js/bootstrap-modal.js
index 180f0b64d..ffbed0d2e 100644
--- a/docs/assets/js/bootstrap-modal.js
+++ b/docs/assets/js/bootstrap-modal.js
@@ -177,7 +177,7 @@
return this.each(function () {
var $this = $(this)
, data = $this.data('modal')
- , options = $.extend({}, $.fn.modal.defaults, typeof option == 'object' && option)
+ , options = $.extend({}, $.fn.modal.defaults, $this.data(), typeof option == 'object' && option)
if (!data) $this.data('modal', (data = new Modal(this, options)))
if (typeof option == 'string') data[option]()
else if (options.show) data.show()