update docs to latest

This commit is contained in:
Jacob Thornton
2011-09-18 21:19:04 -07:00
parent f508d58cfc
commit fdb6490599
8 changed files with 38 additions and 31 deletions
+2 -2
View File
@@ -18,7 +18,7 @@
* ========================================================== */
(function( $ ){
!function( $ ){
/* CSS TRANSITION SUPPORT (https://gist.github.com/373874)
* ======================================================= */
@@ -101,4 +101,4 @@
new Alert($('body'), '.alert-message[data-alert] .close')
})
})( window.jQuery || window.ender )
}( window.jQuery || window.ender )
+2 -2
View File
@@ -18,7 +18,7 @@
* ============================================================ */
(function( $ ){
!function( $ ){
var d = 'a.menu, .dropdown-toggle'
@@ -47,4 +47,4 @@
})
}
})( window.jQuery || window.ender )
}( window.jQuery || window.ender )
+22 -15
View File
@@ -18,7 +18,7 @@
* ========================================================= */
(function( $ ){
!function( $ ){
/* CSS TRANSITION SUPPORT (https://gist.github.com/373874)
* ======================================================= */
@@ -85,11 +85,13 @@
.appendTo(document.body)
.show()
setTimeout(function () {
that.$element
.addClass('in')
.trigger('shown')
}, 0)
if ($.support.transition && that.$element.hasClass('fade')) {
that.$backdrop[0].offsetWidth // force reflow
}
that.$element
.addClass('in')
.trigger('shown')
})
return this
@@ -132,6 +134,8 @@
var that = this
, animate = this.$element.hasClass('fade') ? 'fade' : ''
if ( this.isShown && this.settings.backdrop ) {
var doAnimate = $.support.transition && animate
this.$backdrop = $('<div class="modal-backdrop ' + animate + '" />')
.appendTo(document.body)
@@ -139,12 +143,15 @@
this.$backdrop.click($.proxy(this.hide, this))
}
setTimeout(function () {
that.$backdrop && that.$backdrop.addClass('in')
$.support.transition && that.$backdrop.hasClass('fade') ?
that.$backdrop.one(transitionEnd, callback) :
callback()
}, 0)
if ( doAnimate ) {
that.$backdrop[0].offsetWidth // force reflow
}
that.$backdrop && that.$backdrop.addClass('in')
doAnimate ?
that.$backdrop.one(transitionEnd, callback) :
callback()
} else if ( !this.isShown && this.$backdrop ) {
this.$backdrop.removeClass('in')
@@ -165,13 +172,13 @@
function escape() {
var that = this
if ( this.isShown && this.settings.keyboard ) {
$('body').bind('keyup.modal', function ( e ) {
$(document).bind('keyup.modal', function ( e ) {
if ( e.which == 27 ) {
that.hide()
}
})
} else if ( !this.isShown ) {
$('body').unbind('keyup.modal')
$(document).unbind('keyup.modal')
}
}
@@ -228,4 +235,4 @@
})
})
})( window.jQuery || window.ender )
}( window.jQuery || window.ender )
+2 -2
View File
@@ -18,7 +18,7 @@
* =========================================================== */
(function( $ ) {
!function( $ ) {
var Popover = function ( element, options ) {
this.$element = $(element)
@@ -74,4 +74,4 @@
$.fn.popover.defaults = $.extend({} , $.fn.twipsy.defaults, { content: 'data-content', placement: 'right'})
})( window.jQuery || window.ender )
}( window.jQuery || window.ender )
+2 -2
View File
@@ -18,7 +18,7 @@
* ======================================================== */
(function( $ ){
!function( $ ){
function activate ( element, container ) {
container.find('.active').removeClass('active')
@@ -59,4 +59,4 @@
$('body').tabs('ul[data-tabs] li > a, ul[data-pills] > li > a')
})
})( window.jQuery || window.ender )
}( window.jQuery || window.ender )
+2 -2
View File
@@ -19,7 +19,7 @@
* ========================================================== */
(function( $ ) {
!function( $ ) {
/* CSS TRANSITION SUPPORT (https://gist.github.com/373874)
* ======================================================= */
@@ -304,4 +304,4 @@
return $.metadata ? $.extend({}, options, $(ele).metadata()) : options
}
})( window.jQuery || window.ender )
}( window.jQuery || window.ender )
+1 -1
View File
@@ -17,7 +17,7 @@
<link href="assets/js/google-code-prettify/prettify.css" rel="stylesheet">
<!-- Le javascript -->
<script src="http://code.jquery.com/jquery-1.5.2.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
<script src="http://autobahn.tablesorter.com/jquery.tablesorter.min.js"></script>
<script src="assets/js/google-code-prettify/prettify.js"></script>
<script>$(function () { prettyPrint() })</script>
+5 -5
View File
@@ -12,7 +12,7 @@
<![endif]-->
<!-- Le javascript -->
<script src="http://code.jquery.com/jquery-1.5.2.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
<script src="assets/js/google-code-prettify/prettify.js"></script>
<script>$(function () { prettyPrint() })</script>
<script src="1.3.0/bootstrap-modal.js"></script>
@@ -29,10 +29,10 @@
<link href="assets/js/google-code-prettify/prettify.css" rel="stylesheet">
<!-- Le fav and touch icons -->
<link rel="shortcut icon" href="images/favicon.ico">
<link rel="apple-touch-icon" href="images/apple-touch-icon.png">
<link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png">
<link rel="shortcut icon" href="assets/ico/favicon.ico">
<link rel="apple-touch-icon" href="assets/ico/apple-touch-icon.png">
<link rel="apple-touch-icon" sizes="72x72" href="assets/ico/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="114x114" href="assets/ico/apple-touch-icon-114x114.png">
</head>
<body id="bootstrap-js">