@ -1,5 +1,5 @@
/ * = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
* bootstrap - transition . js v2 . 1.1
* bootstrap - transition . js v2 . 2.2
* http : //twitter.github.com/bootstrap/javascript.html#transitions
* === === === === === === === === === === === === === === === === ===
* Copyright 2012 Twitter , Inc .
@ -20,13 +20,13 @@
! function ( $ ) {
$ ( function ( ) {
"use strict" ; // jshint ;_;
"use strict" ; // jshint ;_;
/* CSS TRANSITION SUPPORT (http:/ / www . modernizr . com / )
* === === === === === === === === === === === === === === === === === === = * /
/* CSS TRANSITION SUPPORT (http:/ / www . modernizr . com / )
* === === === === === === === === === === === === === === === === === === = * /
$ ( function ( ) {
$ . support . transition = ( function ( ) {
@ -58,7 +58,7 @@
} )
} ( window . jQuery ) ; / * = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
* bootstrap - alert . js v2 . 1.1
* bootstrap - alert . js v2 . 2.2
* http : //twitter.github.com/bootstrap/javascript.html#alerts
* === === === === === === === === === === === === === === === === === === === =
* Copyright 2012 Twitter , Inc .
@ -127,6 +127,8 @@
/ * A L E R T P L U G I N D E F I N I T I O N
* === === === === === === === == * /
var old = $ . fn . alert
$ . fn . alert = function ( option ) {
return this . each ( function ( ) {
var $this = $ ( this )
@ -139,15 +141,22 @@
$ . fn . alert . Constructor = Alert
/ * A L E R T N O C O N F L I C T
* === === === === === == * /
$ . fn . alert . noConflict = function ( ) {
$ . fn . alert = old
return this
}
/ * A L E R T D A T A - A P I
* === === === === == * /
$ ( function ( ) {
$ ( 'body' ) . on ( 'click.alert.data-api' , dismiss , Alert . prototype . close )
} )
$ ( document ) . on ( 'click.alert.data-api' , dismiss , Alert . prototype . close )
} ( window . jQuery ) ; / * = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
* bootstrap - button . js v2 . 1.1
* bootstrap - button . js v2 . 2.2
* http : //twitter.github.com/bootstrap/javascript.html#buttons
* === === === === === === === === === === === === === === === === === === === ===
* Copyright 2012 Twitter , Inc .
@ -212,6 +221,8 @@
/ * B U T T O N P L U G I N D E F I N I T I O N
* === === === === === === === === * /
var old = $ . fn . button
$ . fn . button = function ( option ) {
return this . each ( function ( ) {
var $this = $ ( this )
@ -230,19 +241,26 @@
$ . fn . button . Constructor = Button
/ * B U T T O N N O C O N F L I C T
* === === === === === === * /
$ . fn . button . noConflict = function ( ) {
$ . fn . button = old
return this
}
/ * B U T T O N D A T A - A P I
* === === === === === * /
$ ( function ( ) {
$ ( 'body' ) . on ( 'click.button.data-api' , '[data-toggle^=button]' , function ( e ) {
var $btn = $ ( e . target )
if ( ! $btn . hasClass ( 'btn' ) ) $btn = $btn . closest ( '.btn' )
$btn . button ( 'toggle' )
} )
$ ( document ) . on ( 'click.button.data-api' , '[data-toggle^=button]' , function ( e ) {
var $btn = $ ( e . target )
if ( ! $btn . hasClass ( 'btn' ) ) $btn = $btn . closest ( '.btn' )
$btn . button ( 'toggle' )
} )
} ( window . jQuery ) ; / * = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
* bootstrap - carousel . js v2 . 1.1
* bootstrap - carousel . js v2 . 2.2
* http : //twitter.github.com/bootstrap/javascript.html#carousel
* === === === === === === === === === === === === === === === === === === === =
* Copyright 2012 Twitter , Inc .
@ -272,7 +290,6 @@
var Carousel = function ( element , options ) {
this . $element = $ ( element )
this . options = options
this . options . slide && this . slide ( this . options . slide )
this . options . pause == 'hover' && this . $element
. on ( 'mouseenter' , $ . proxy ( this . pause , this ) )
. on ( 'mouseleave' , $ . proxy ( this . cycle , this ) )
@ -337,9 +354,7 @@
, direction = type == 'next' ? 'left' : 'right'
, fallback = type == 'next' ? 'first' : 'last'
, that = this
, e = $ . Event ( 'slide' , {
relatedTarget : $next [ 0 ]
} )
, e
this . sliding = true
@ -347,6 +362,10 @@
$next = $next . length ? $next : this . $element . find ( '.item' ) [ fallback ] ( )
e = $ . Event ( 'slide' , {
relatedTarget : $next [ 0 ]
} )
if ( $next . hasClass ( 'active' ) ) return
if ( $ . support . transition && this . $element . hasClass ( 'slide' ) ) {
@ -382,6 +401,8 @@
/ * C A R O U S E L P L U G I N D E F I N I T I O N
* === === === === === === === === == * /
var old = $ . fn . carousel
$ . fn . carousel = function ( option ) {
return this . each ( function ( ) {
var $this = $ ( this )
@ -403,21 +424,27 @@
$ . fn . carousel . Constructor = Carousel
/ * C A R O U S E L N O C O N F L I C T
* === === === === === === == * /
$ . fn . carousel . noConflict = function ( ) {
$ . fn . carousel = old
return this
}
/ * C A R O U S E L D A T A - A P I
* === === === === === == * /
$ ( function ( ) {
$ ( 'body' ) . on ( 'click.carousel.data-api' , '[data-slide]' , function ( e ) {
var $this = $ ( this ) , href
, $target = $ ( $this . attr ( 'data-target' ) || ( href = $this . attr ( 'href' ) ) && href . replace ( /.*(?=#[^\s]+$)/ , '' ) ) //strip for ie7
, options = ! $target . data ( 'modal' ) && $ . extend ( { } , $target . data ( ) , $this . data ( ) )
$target . carousel ( options )
e . preventDefault ( )
} )
$ ( document ) . on ( 'click.carousel.data-api' , '[data-slide]' , function ( e ) {
var $this = $ ( this ) , href
, $target = $ ( $this . attr ( 'data-target' ) || ( href = $this . attr ( 'href' ) ) && href . replace ( /.*(?=#[^\s]+$)/ , '' ) ) //strip for ie7
, options = $ . extend ( { } , $target . data ( ) , $this . data ( ) )
$target . carousel ( options )
e . preventDefault ( )
} )
} ( window . jQuery ) ; / * = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
* bootstrap - collapse . js v2 . 1.1
* bootstrap - collapse . js v2 . 2.2
* http : //twitter.github.com/bootstrap/javascript.html#collapse
* === === === === === === === === === === === === === === === === === === === === =
* Copyright 2012 Twitter , Inc .
@ -538,8 +565,10 @@
}
/ * C O L L A P S I B L E P L U G I N D E F I N I T I O N
* === === === === === === === === === === * /
/ * C O L L A P S E P L U G I N D E F I N I T I O N
* === === === === === === === === == * /
var old = $ . fn . collapse
$ . fn . collapse = function ( option ) {
return this . each ( function ( ) {
@ -558,23 +587,30 @@
$ . fn . collapse . Constructor = Collapse
/ * C O L L A P S IB L E D A T A - A P I
/ * C O L L A P S E N O C O N F L I C T
* === === === === === === == * /
$ ( function ( ) {
$ ( 'body' ) . on ( 'click.collapse.data-api' , '[data-toggle=collapse]' , function ( e ) {
var $this = $ ( this ) , href
, target = $this . attr ( 'data-target' )
|| e . preventDefault ( )
|| ( href = $this . attr ( 'href' ) ) && href . replace ( /.*(?=#[^\s]+$)/ , '' ) //strip for ie7
, option = $ ( target ) . data ( 'collapse' ) ? 'toggle' : $this . data ( )
$this [ $ ( target ) . hasClass ( 'in' ) ? 'addClass' : 'removeClass' ] ( 'collapsed' )
$ ( target ) . collapse ( option )
} )
$ . fn . collapse . noConflict = function ( ) {
$ . fn . collapse = old
return this
}
/ * C O L L A P S E D A T A - A P I
* === === === === === == * /
$ ( document ) . on ( 'click.collapse.data-api' , '[data-toggle=collapse]' , function ( e ) {
var $this = $ ( this ) , href
, target = $this . attr ( 'data-target' )
|| e . preventDefault ( )
|| ( href = $this . attr ( 'href' ) ) && href . replace ( /.*(?=#[^\s]+$)/ , '' ) //strip for ie7
, option = $ ( target ) . data ( 'collapse' ) ? 'toggle' : $this . data ( )
$this [ $ ( target ) . hasClass ( 'in' ) ? 'addClass' : 'removeClass' ] ( 'collapsed' )
$ ( target ) . collapse ( option )
} )
} ( window . jQuery ) ; / * = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
* bootstrap - dropdown . js v2 . 1.1
* bootstrap - dropdown . js v2 . 2.2
* http : //twitter.github.com/bootstrap/javascript.html#dropdowns
* === === === === === === === === === === === === === === === === === === === ===
* Copyright 2012 Twitter , Inc .
@ -628,9 +664,10 @@
if ( ! isActive ) {
$parent . toggleClass ( 'open' )
$this . focus ( )
}
$this . focus ( )
return false
}
@ -657,7 +694,7 @@
if ( ! isActive || ( isActive && e . keyCode == 27 ) ) return $this . click ( )
$items = $ ( '[role=menu] li:not(.divider) a', $parent )
$items = $ ( '[role=menu] li:not(.divider) :visible a', $parent )
if ( ! $items . length ) return
@ -675,8 +712,9 @@
}
function clearMenus ( ) {
getParent ( $ ( toggle ) )
. removeClass ( 'open' )
$ ( toggle ) . each ( function ( ) {
getParent ( $ ( this ) ) . removeClass ( 'open' )
} )
}
function getParent ( $this ) {
@ -698,6 +736,8 @@
/ * D R O P D O W N P L U G I N D E F I N I T I O N
* === === === === === === === === == * /
var old = $ . fn . dropdown
$ . fn . dropdown = function ( option ) {
return this . each ( function ( ) {
var $this = $ ( this )
@ -710,20 +750,27 @@
$ . fn . dropdown . Constructor = Dropdown
/ * D R O P D O W N N O C O N F L I C T
* === === === === === === == * /
$ . fn . dropdown . noConflict = function ( ) {
$ . fn . dropdown = old
return this
}
/ * A P P L Y T O S T A N D A R D D R O P D O W N E L E M E N T S
* === === === === === === === === === === === == * /
$ ( function ( ) {
$ ( 'html' )
. on ( 'click.dropdown.data-api touchstart.dropdown.data-api' , clearMenus )
$ ( 'body' )
. on ( 'click.dropdown touchstart.dropdown.data-api' , '.dropdown form' , function ( e ) { e . stopPropagation ( ) } )
. on ( 'click.dropdown.data-api touchstart.dropdown.data-api' , toggle , Dropdown . prototype . toggle )
. on ( 'keydown.dropdown.data-api touchstart.dropdown.data-api' , toggle + ', [role=menu]' , Dropdown . prototype . keydown )
} )
$ ( document )
. on ( 'click.dropdown.data-api touchstart.dropdown.data-api' , clearMenus )
. on ( 'click.dropdown touchstart.dropdown.data-api' , '.dropdown form' , function ( e ) { e . stopPropagation ( ) } )
. on ( 'touchstart.dropdown.data-api' , '.dropdown-menu' , function ( e ) { e . stopPropagation ( ) } )
. on ( 'click.dropdown.data-api touchstart.dropdown.data-api' , toggle , Dropdown . prototype . toggle )
. on ( 'keydown.dropdown.data-api touchstart.dropdown.data-api' , toggle + ', [role=menu]' , Dropdown . prototype . keydown )
} ( window . jQuery ) ; / * = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
* bootstrap - modal . js v2 . 1.1
* bootstrap - modal . js v2 . 2.2
* http : //twitter.github.com/bootstrap/javascript.html#modals
* === === === === === === === === === === === === === === === === === === ===
* Copyright 2012 Twitter , Inc .
@ -773,8 +820,6 @@
if ( this . isShown || e . isDefaultPrevented ( ) ) return
$ ( 'body' ) . addClass ( 'modal-open' )
this . isShown = true
this . escape ( )
@ -796,13 +841,12 @@
that . $element
. addClass ( 'in' )
. attr ( 'aria-hidden' , false )
. focus ( )
that . enforceFocus ( )
transition ?
that . $element . one ( $ . support . transition . end , function ( ) { that . $element . trigger( 'shown' ) } ) :
that . $element . trigger( 'shown' )
that . $element . one ( $ . support . transition . end , function ( ) { that . $element . focus( ) . trigger( 'shown' ) } ) :
that . $element . focus( ) . trigger( 'shown' )
} )
}
@ -820,8 +864,6 @@
this . isShown = false
$ ( 'body' ) . removeClass ( 'modal-open' )
this . escape ( )
$ ( document ) . off ( 'focusin.modal' )
@ -891,9 +933,11 @@
this . $backdrop = $ ( '<div class="modal-backdrop ' + animate + '" />' )
. appendTo ( document . body )
if ( this . options . backdrop != 'static' ) {
this . $backdrop . click ( $ . proxy ( this . hide , this ) )
}
this . $backdrop . click (
this . options . backdrop == 'static' ?
$ . proxy ( this . $element [ 0 ] . focus , this . $element [ 0 ] )
: $ . proxy ( this . hide , this )
)
if ( doAnimate ) this . $backdrop [ 0 ] . offsetWidth // force reflow
@ -920,6 +964,8 @@
/ * M O D A L P L U G I N D E F I N I T I O N
* === === === === === === === == * /
var old = $ . fn . modal
$ . fn . modal = function ( option ) {
return this . each ( function ( ) {
var $this = $ ( this )
@ -940,28 +986,36 @@
$ . fn . modal . Constructor = Modal
/ * M O D A L N O C O N F L I C T
* === === === === === == * /
$ . fn . modal . noConflict = function ( ) {
$ . fn . modal = old
return this
}
/ * M O D A L D A T A - A P I
* === === === === == * /
$ ( function ( ) {
$ ( 'body' ) . on ( 'click.modal.data-api' , '[data-toggle="modal"]' , function ( e ) {
var $this = $ ( this )
, href = $this . attr ( 'href' )
, $target = $ ( $this . attr ( 'data-target' ) || ( href && href . replace ( /.*(?=#[^\s]+$)/ , '' ) ) ) //strip for ie7
, option = $target . data ( 'modal' ) ? 'toggle' : $ . extend ( { remote : ! /#/ . test ( href ) && href } , $target . data ( ) , $this . data ( ) )
$ ( document ) . on ( 'click.modal.data-api' , '[data-toggle="modal"]' , function ( e ) {
var $this = $ ( this )
, href = $this . attr ( 'href' )
, $target = $ ( $this . attr ( 'data-target' ) || ( href && href . replace ( /.*(?=#[^\s]+$)/ , '' ) ) ) //strip for ie7
, option = $target . data ( 'modal' ) ? 'toggle' : $ . extend ( { remote : ! /#/ . test ( href ) && href } , $target . data ( ) , $this . data ( ) )
e . preventDefault ( )
e . preventDefault ( )
$target
. modal ( option )
. one ( 'hide' , function ( ) {
$this . focus ( )
} )
} )
$target
. modal ( option )
. one ( 'hide' , function ( ) {
$this . focus ( )
} )
} )
} ( window . jQuery ) ; / * = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
* bootstrap - tooltip . js v2 . 1.1
} ( window . jQuery ) ;
/ * = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
* bootstrap - tooltip . js v2 . 2.2
* http : //twitter.github.com/bootstrap/javascript.html#tooltips
* Inspired by the original jQuery . tipsy by Jason Frame
* === === === === === === === === === === === === === === === === === === === ==
@ -1081,9 +1135,9 @@
inside = /in/ . test ( placement )
$tip
. remove ( )
. detach ( )
. css ( { top : 0 , left : 0 , display : 'block' } )
. appendTo( inside ? this . $element : document . body )
. insertAfter( this . $element )
pos = this . getPosition ( inside )
@ -1106,7 +1160,7 @@
}
$tip
. css ( tp )
. offset ( tp )
. addClass ( placement )
. addClass ( 'in' )
}
@ -1128,18 +1182,18 @@
function removeWithAnimation ( ) {
var timeout = setTimeout ( function ( ) {
$tip . off ( $ . support . transition . end ) . remove ( )
$tip . off ( $ . support . transition . end ) . detach ( )
} , 500 )
$tip . one ( $ . support . transition . end , function ( ) {
clearTimeout ( timeout )
$tip . remove ( )
$tip . detach ( )
} )
}
$ . support . transition && this . $tip . hasClass ( 'fade' ) ?
removeWithAnimation ( ) :
$tip . remove ( )
$tip . detach ( )
return this
}
@ -1197,8 +1251,9 @@
this . enabled = ! this . enabled
}
, toggle : function ( ) {
this [ this . tip ( ) . hasClass ( 'in' ) ? 'hide' : 'show' ] ( )
, toggle : function ( e ) {
var self = $ ( e . currentTarget ) [ this . type ] ( this . _options ) . data ( this . type )
self [ self . tip ( ) . hasClass ( 'in' ) ? 'hide' : 'show' ] ( )
}
, destroy : function ( ) {
@ -1211,6 +1266,8 @@
/ * T O O L T I P P L U G I N D E F I N I T I O N
* === === === === === === === === = * /
var old = $ . fn . tooltip
$ . fn . tooltip = function ( option ) {
return this . each ( function ( ) {
var $this = $ ( this )
@ -1231,12 +1288,20 @@
, trigger : 'hover'
, title : ''
, delay : 0
, html : tru e
, html : fals e
}
} ( window . jQuery ) ;
/ * = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
* bootstrap - popover . js v2 . 1.1
/ * T O O L T I P N O C O N F L I C T
* === === === === === === = * /
$ . fn . tooltip . noConflict = function ( ) {
$ . fn . tooltip = old
return this
}
} ( window . jQuery ) ; / * = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
* bootstrap - popover . js v2 . 2.2
* http : //twitter.github.com/bootstrap/javascript.html#popovers
* === === === === === === === === === === === === === === === === === === === ==
* Copyright 2012 Twitter , Inc .
@ -1281,7 +1346,7 @@
, content = this . getContent ( )
$tip . find ( '.popover-title' ) [ this . options . html ? 'html' : 'text' ] ( title )
$tip . find ( '.popover-content > * ') [ this . options . html ? 'html' : 'text' ] ( content )
$tip . find ( '.popover-content ') [ this . options . html ? 'html' : 'text' ] ( content )
$tip . removeClass ( 'fade top bottom left right in' )
}
@ -1318,6 +1383,8 @@
/ * P O P O V E R P L U G I N D E F I N I T I O N
* === === === === === === === == * /
var old = $ . fn . popover
$ . fn . popover = function ( option ) {
return this . each ( function ( ) {
var $this = $ ( this )
@ -1334,11 +1401,20 @@
placement : 'right'
, trigger : 'click'
, content : ''
, template : '<div class="popover"><div class="arrow"></div><div class="popover-inner"><h3 class="popover-title"></h3><div class="popover-content">< p></p>< /div></div></div>'
, template : '<div class="popover"><div class="arrow"></div><div class="popover-inner"><h3 class="popover-title"></h3><div class="popover-content">< /div></div></div>'
} )
/ * P O P O V E R N O C O N F L I C T
* === === === === === === = * /
$ . fn . popover . noConflict = function ( ) {
$ . fn . popover = old
return this
}
} ( window . jQuery ) ; / * = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
* bootstrap - scrollspy . js v2 . 1.1
* bootstrap - scrollspy . js v2 . 2.2
* http : //twitter.github.com/bootstrap/javascript.html#scrollspy
* === === === === === === === === === === === === === === === === === === === === =
* Copyright 2012 Twitter , Inc .
@ -1398,7 +1474,7 @@
, $href = /^#\w/ . test ( href ) && $ ( href )
return ( $href
&& $href . length
&& [ [ $href . position ( ) . top , href ] ] ) || null
&& [ [ $href . position ( ) . top + self . $scrollElement . scrollTop ( ) , href ] ] ) || null
} )
. sort ( function ( a , b ) { return a [ 0 ] - b [ 0 ] } )
. each ( function ( ) {
@ -1460,6 +1536,8 @@
/ * S C R O L L S P Y P L U G I N D E F I N I T I O N
* === === === === === === === === === * /
var old = $ . fn . scrollspy
$ . fn . scrollspy = function ( option ) {
return this . each ( function ( ) {
var $this = $ ( this )
@ -1477,6 +1555,15 @@
}
/ * S C R O L L S P Y N O C O N F L I C T
* === === === === === === === * /
$ . fn . scrollspy . noConflict = function ( ) {
$ . fn . scrollspy = old
return this
}
/ * S C R O L L S P Y D A T A - A P I
* === === === === === === * /
@ -1488,7 +1575,7 @@
} )
} ( window . jQuery ) ; / * = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
* bootstrap - tab . js v2 . 1.1
* bootstrap - tab . js v2 . 2.2
* http : //twitter.github.com/bootstrap/javascript.html#tabs
* === === === === === === === === === === === === === === === === === === ==
* Copyright 2012 Twitter , Inc .
@ -1538,7 +1625,7 @@
if ( $this . parent ( 'li' ) . hasClass ( 'active' ) ) return
previous = $ul . find ( '.active a') . last ( ) [ 0 ]
previous = $ul . find ( '.active :last a' ) [ 0 ]
e = $ . Event ( 'show' , {
relatedTarget : previous
@ -1599,6 +1686,8 @@
/ * T A B P L U G I N D E F I N I T I O N
* === === === === === === === * /
var old = $ . fn . tab
$ . fn . tab = function ( option ) {
return this . each ( function ( ) {
var $this = $ ( this )
@ -1611,18 +1700,25 @@
$ . fn . tab . Constructor = Tab
/ * T A B N O C O N F L I C T
* === === === === === * /
$ . fn . tab . noConflict = function ( ) {
$ . fn . tab = old
return this
}
/ * T A B D A T A - A P I
* === === === === * /
$ ( function ( ) {
$ ( 'body' ) . on ( 'click.tab.data-api' , '[data-toggle="tab"], [data-toggle="pill"]' , function ( e ) {
e . preventDefault ( )
$ ( this ) . tab ( 'show' )
} )
$ ( document ) . on ( 'click.tab.data-api' , '[data-toggle="tab"], [data-toggle="pill"]' , function ( e ) {
e . preventDefault ( )
$ ( this ) . tab ( 'show' )
} )
} ( window . jQuery ) ; / * = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
* bootstrap - typeahead . js v2 . 1.1
* bootstrap - typeahead . js v2 . 2.2
* http : //twitter.github.com/bootstrap/javascript.html#typeahead
* === === === === === === === === === === === === === === === === === === === === =
* Copyright 2012 Twitter , Inc .
@ -1656,8 +1752,8 @@
this . sorter = this . options . sorter || this . sorter
this . highlighter = this . options . highlighter || this . highlighter
this . updater = this . options . updater || this . updater
this . $menu = $ ( this . options . menu ) . appendTo ( 'body' )
this . source = this . options . source
this . $menu = $ ( this . options . menu )
this . shown = false
this . listen ( )
}
@ -1679,16 +1775,18 @@
}
, show : function ( ) {
var pos = $ . extend ( { } , this . $element . offset ( ) , {
var pos = $ . extend ( { } , this . $element . position ( ) , {
height : this . $element [ 0 ] . offsetHeight
} )
this . $menu . css ( {
top : pos . top + pos . height
, left : pos . left
} )
this . $menu
. insertAfter ( this . $element )
. css ( {
top : pos . top + pos . height
, left : pos . left
} )
. show ( )
this . $menu . show ( )
this . shown = true
return this
}
@ -1797,7 +1895,7 @@
. on ( 'keypress' , $ . proxy ( this . keypress , this ) )
. on ( 'keyup' , $ . proxy ( this . keyup , this ) )
if ( $ . browser . chrome || $ . browser . webkit || $ . browser . msie ) {
if ( this . eventSupported ( 'keydown' ) ) {
this . $element . on ( 'keydown' , $ . proxy ( this . keydown , this ) )
}
@ -1806,6 +1904,15 @@
. on ( 'mouseenter' , 'li' , $ . proxy ( this . mouseenter , this ) )
}
, eventSupported : function ( eventName ) {
var isSupported = eventName in this . $element
if ( ! isSupported ) {
this . $element . setAttribute ( eventName , 'return;' )
isSupported = typeof this . $element [ eventName ] === 'function'
}
return isSupported
}
, move : function ( e ) {
if ( ! this . shown ) return
@ -1831,7 +1938,7 @@
}
, keydown : function ( e ) {
this . suppressKeyPressRepeat = ! ~$ . inArray ( e . keyCode , [ 40 , 38 , 9 , 13 , 27 ] )
this . suppressKeyPressRepeat = ~$ . inArray ( e . keyCode , [ 40 , 38 , 9 , 13 , 27 ] )
this . move ( e )
}
@ -1844,6 +1951,9 @@
switch ( e . keyCode ) {
case 40 : // down arrow
case 38 : // up arrow
case 16 : // shift
case 17 : // ctrl
case 18 : // alt
break
case 9 : // tab
@ -1887,6 +1997,8 @@
/ * T Y P E A H E A D P L U G I N D E F I N I T I O N
* === === === === === === === === === * /
var old = $ . fn . typeahead
$ . fn . typeahead = function ( option ) {
return this . each ( function ( ) {
var $this = $ ( this )
@ -1908,21 +2020,28 @@
$ . fn . typeahead . Constructor = Typeahead
/ * T Y P E A H E A D D A T A - A P I
/ * T Y P E A H E A D N O C O N F L I C T
* === === === === === === = * /
$ . fn . typeahead . noConflict = function ( ) {
$ . fn . typeahead = old
return this
}
/ * T Y P E A H E A D D A T A - A P I
* === === === === === === * /
$ ( function ( ) {
$ ( 'body' ) . on ( 'focus.typeahead.data-api' , '[data-provide="typeahead"]' , function ( e ) {
var $this = $ ( this )
if ( $this . data ( 'typeahead' ) ) return
e . preventDefault ( )
$this . typeahead ( $this . data ( ) )
} )
$ ( document ) . on ( 'focus.typeahead.data-api' , '[data-provide="typeahead"]' , function ( e ) {
var $this = $ ( this )
if ( $this . data ( 'typeahead' ) ) return
e . preventDefault ( )
$this . typeahead ( $this . data ( ) )
} )
} ( window . jQuery ) ;
/ * = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
* bootstrap - affix . js v2 . 1.1
* bootstrap - affix . js v2 . 2.2
* http : //twitter.github.com/bootstrap/javascript.html#affix
* === === === === === === === === === === === === === === === === === === === =
* Copyright 2012 Twitter , Inc .
@ -1951,7 +2070,9 @@
var Affix = function ( element , options ) {
this . options = $ . extend ( { } , $ . fn . affix . defaults , options )
this . $window = $ ( window ) . on ( 'scroll.affix.data-api' , $ . proxy ( this . checkPosition , this ) )
this . $window = $ ( window )
. on ( 'scroll.affix.data-api' , $ . proxy ( this . checkPosition , this ) )
. on ( 'click.affix.data-api' , $ . proxy ( function ( ) { setTimeout ( $ . proxy ( this . checkPosition , this ) , 1 ) } , this ) )
this . $element = $ ( element )
this . checkPosition ( )
}
@ -1989,6 +2110,8 @@
/ * A F F I X P L U G I N D E F I N I T I O N
* === === === === === === === == * /
var old = $ . fn . affix
$ . fn . affix = function ( option ) {
return this . each ( function ( ) {
var $this = $ ( this )
@ -2006,6 +2129,15 @@
}
/ * A F F I X N O C O N F L I C T
* === === === === === == * /
$ . fn . affix . noConflict = function ( ) {
$ . fn . affix = old
return this
}
/ * A F F I X D A T A - A P I
* === === === === == * /