aboutsummaryrefslogtreecommitdiffstats
path: root/docs/static/js/bootstrap-transition.js
diff options
context:
space:
mode:
authorTom Christie2012-09-01 21:23:50 +0100
committerTom Christie2012-09-01 21:23:50 +0100
commit99415564741ca849c0771a3cdd3c18a72b74a373 (patch)
tree3f17139758cc74b7a0a574f769688670ea32a645 /docs/static/js/bootstrap-transition.js
parentdeedf6957d14c2808c00a009ac2c1d4528cb80c9 (diff)
downloaddjango-rest-framework-99415564741ca849c0771a3cdd3c18a72b74a373.tar.bz2
Get docs ready to deploy
Diffstat (limited to 'docs/static/js/bootstrap-transition.js')
-rw-r--r--docs/static/js/bootstrap-transition.js60
1 files changed, 60 insertions, 0 deletions
diff --git a/docs/static/js/bootstrap-transition.js b/docs/static/js/bootstrap-transition.js
new file mode 100644
index 00000000..f0913d86
--- /dev/null
+++ b/docs/static/js/bootstrap-transition.js
@@ -0,0 +1,60 @@
+/* ===================================================
+ * bootstrap-transition.js v2.1.0
+ * http://twitter.github.com/bootstrap/javascript.html#transitions
+ * ===================================================
+ * Copyright 2012 Twitter, Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ========================================================== */
+
+
+!function ($) {
+
+ $(function () {
+
+ "use strict"; // jshint ;_;
+
+
+ /* CSS TRANSITION SUPPORT (http://www.modernizr.com/)
+ * ======================================================= */
+
+ $.support.transition = (function () {
+
+ var transitionEnd = (function () {
+
+ var el = document.createElement('bootstrap')
+ , transEndEventNames = {
+ 'WebkitTransition' : 'webkitTransitionEnd'
+ , 'MozTransition' : 'transitionend'
+ , 'OTransition' : 'oTransitionEnd otransitionend'
+ , 'transition' : 'transitionend'
+ }
+ , name
+
+ for (name in transEndEventNames){
+ if (el.style[name] !== undefined) {
+ return transEndEventNames[name]
+ }
+ }
+
+ }())
+
+ return transitionEnd && {
+ end: transitionEnd
+ }
+
+ })()
+
+ })
+
+}(window.jQuery); \ No newline at end of file