Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfat <jacobthornton@gmail.com>2012-12-08 02:06:01 +0400
committerfat <jacobthornton@gmail.com>2012-12-08 02:06:01 +0400
commita7eb9c294a575b5471ddec45ae75e1d09f7ace4c (patch)
treee55d0f54282e2f9f41c7ba87254e2ab9928f10ee /js/bootstrap-modal.js
parent1c5b8e967e2b421503bc010d4ed3b79406ea5b7b (diff)
add noConflict functionality to all bootstrap plugins
Diffstat (limited to 'js/bootstrap-modal.js')
-rw-r--r--js/bootstrap-modal.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/js/bootstrap-modal.js b/js/bootstrap-modal.js
index 6fae364366..689a414ed6 100644
--- a/js/bootstrap-modal.js
+++ b/js/bootstrap-modal.js
@@ -193,6 +193,8 @@
/* MODAL PLUGIN DEFINITION
* ======================= */
+ var old = $.fn.modal
+
$.fn.modal = function (option) {
return this.each(function () {
var $this = $(this)
@@ -213,6 +215,15 @@
$.fn.modal.Constructor = Modal
+ /* MODAL NO CONFLICT
+ * ================= */
+
+ $.fn.modal.noConflict = function () {
+ $.fn.modal = old
+ return this
+ }
+
+
/* MODAL DATA-API
* ============== */