@ -1,5 +1,5 @@
/ * = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
/ * = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
* bootstrap - transition . js v2 . 2.2
* bootstrap - transition . js v2 . 3.0
* http : //twitter.github.com/bootstrap/javascript.html#transitions
* http : //twitter.github.com/bootstrap/javascript.html#transitions
* === === === === === === === === === === === === === === === === ===
* === === === === === === === === === === === === === === === === ===
* Copyright 2012 Twitter , Inc .
* Copyright 2012 Twitter , Inc .
@ -58,7 +58,7 @@
} )
} )
} ( window . jQuery ) ; / * = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
} ( window . jQuery ) ; / * = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
* bootstrap - alert . js v2 . 2.2
* bootstrap - alert . js v2 . 3.0
* http : //twitter.github.com/bootstrap/javascript.html#alerts
* http : //twitter.github.com/bootstrap/javascript.html#alerts
* === === === === === === === === === === === === === === === === === === === =
* === === === === === === === === === === === === === === === === === === === =
* Copyright 2012 Twitter , Inc .
* Copyright 2012 Twitter , Inc .
@ -156,7 +156,7 @@
$ ( document ) . on ( 'click.alert.data-api' , dismiss , Alert . prototype . close )
$ ( document ) . on ( 'click.alert.data-api' , dismiss , Alert . prototype . close )
} ( window . jQuery ) ; / * = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
} ( window . jQuery ) ; / * = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
* bootstrap - button . js v2 . 2.2
* bootstrap - button . js v2 . 3.0
* http : //twitter.github.com/bootstrap/javascript.html#buttons
* http : //twitter.github.com/bootstrap/javascript.html#buttons
* === === === === === === === === === === === === === === === === === === === ===
* === === === === === === === === === === === === === === === === === === === ===
* Copyright 2012 Twitter , Inc .
* Copyright 2012 Twitter , Inc .
@ -260,7 +260,7 @@
} )
} )
} ( window . jQuery ) ; / * = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
} ( window . jQuery ) ; / * = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
* bootstrap - carousel . js v2 . 2.2
* bootstrap - carousel . js v2 . 3.0
* http : //twitter.github.com/bootstrap/javascript.html#carousel
* http : //twitter.github.com/bootstrap/javascript.html#carousel
* === === === === === === === === === === === === === === === === === === === =
* === === === === === === === === === === === === === === === === === === === =
* Copyright 2012 Twitter , Inc .
* Copyright 2012 Twitter , Inc .
@ -289,6 +289,7 @@
var Carousel = function ( element , options ) {
var Carousel = function ( element , options ) {
this . $element = $ ( element )
this . $element = $ ( element )
this . $indicators = this . $element . find ( '.carousel-indicators' )
this . options = options
this . options = options
this . options . pause == 'hover' && this . $element
this . options . pause == 'hover' && this . $element
. on ( 'mouseenter' , $ . proxy ( this . pause , this ) )
. on ( 'mouseenter' , $ . proxy ( this . pause , this ) )
@ -299,19 +300,24 @@
cycle : function ( e ) {
cycle : function ( e ) {
if ( ! e ) this . paused = false
if ( ! e ) this . paused = false
if ( this . interval ) clearInterval ( this . interval ) ;
this . options . interval
this . options . interval
&& ! this . paused
&& ! this . paused
&& ( this . interval = setInterval ( $ . proxy ( this . next , this ) , this . options . interval ) )
&& ( this . interval = setInterval ( $ . proxy ( this . next , this ) , this . options . interval ) )
return this
return this
}
}
, getActiveIndex : function ( ) {
this . $active = this . $element . find ( '.item.active' )
this . $items = this . $active . parent ( ) . children ( )
return this . $items . index ( this . $active )
}
, to : function ( pos ) {
, to : function ( pos ) {
var $active = this . $element . find ( '.item.active' )
var activeIndex = this . getActiveIndex ( )
, children = $active . parent ( ) . children ( )
, activePos = children . index ( $active )
, that = this
, that = this
if ( pos > ( children . length - 1 ) || pos < 0 ) return
if ( pos > ( this . $items . length - 1 ) || pos < 0 ) return
if ( this . sliding ) {
if ( this . sliding ) {
return this . $element . one ( 'slid' , function ( ) {
return this . $element . one ( 'slid' , function ( ) {
@ -319,11 +325,11 @@
} )
} )
}
}
if ( active Pos == pos ) {
if ( active Index == pos ) {
return this . pause ( ) . cycle ( )
return this . pause ( ) . cycle ( )
}
}
return this . slide ( pos > active Pos ? 'next' : 'prev' , $ ( children [ pos ] ) )
return this . slide ( pos > active Index ? 'next' : 'prev' , $ ( this . $items [ pos ] ) )
}
}
, pause : function ( e ) {
, pause : function ( e ) {
@ -364,10 +370,19 @@
e = $ . Event ( 'slide' , {
e = $ . Event ( 'slide' , {
relatedTarget : $next [ 0 ]
relatedTarget : $next [ 0 ]
, direction : direction
} )
} )
if ( $next . hasClass ( 'active' ) ) return
if ( $next . hasClass ( 'active' ) ) return
if ( this . $indicators . length ) {
this . $indicators . find ( '.active' ) . removeClass ( 'active' )
this . $element . one ( 'slid' , function ( ) {
var $nextIndicator = $ ( that . $indicators . children ( ) [ that . getActiveIndex ( ) ] )
$nextIndicator && $nextIndicator . addClass ( 'active' )
} )
}
if ( $ . support . transition && this . $element . hasClass ( 'slide' ) ) {
if ( $ . support . transition && this . $element . hasClass ( 'slide' ) ) {
this . $element . trigger ( e )
this . $element . trigger ( e )
if ( e . isDefaultPrevented ( ) ) return
if ( e . isDefaultPrevented ( ) ) return
@ -412,7 +427,7 @@
if ( ! data ) $this . data ( 'carousel' , ( data = new Carousel ( this , options ) ) )
if ( ! data ) $this . data ( 'carousel' , ( data = new Carousel ( this , options ) ) )
if ( typeof option == 'number' ) data . to ( option )
if ( typeof option == 'number' ) data . to ( option )
else if ( action ) data [ action ] ( )
else if ( action ) data [ action ] ( )
else if ( options . interval ) data . cycle( )
else if ( options . interval ) data . pause( ) . cycle( )
} )
} )
}
}
@ -435,16 +450,23 @@
/ * C A R O U S E L D A T A - A P I
/ * C A R O U S E L D A T A - A P I
* === === === === === == * /
* === === === === === == * /
$ ( document ) . on ( 'click.carousel.data-api' , '[data-slide] ', function ( e ) {
$ ( document ) . on ( 'click.carousel.data-api' , '[data-slide] , [data-slide-to] ', function ( e ) {
var $this = $ ( this ) , href
var $this = $ ( this ) , href
, $target = $ ( $this . attr ( 'data-target' ) || ( href = $this . attr ( 'href' ) ) && href . replace ( /.*(?=#[^\s]+$)/ , '' ) ) //strip for ie7
, $target = $ ( $this . attr ( 'data-target' ) || ( href = $this . attr ( 'href' ) ) && href . replace ( /.*(?=#[^\s]+$)/ , '' ) ) //strip for ie7
, options = $ . extend ( { } , $target . data ( ) , $this . data ( ) )
, options = $ . extend ( { } , $target . data ( ) , $this . data ( ) )
, slideIndex
$target . carousel ( options )
$target . carousel ( options )
if ( slideIndex = $this . attr ( 'data-slide-to' ) ) {
$target . data ( 'carousel' ) . pause ( ) . to ( slideIndex ) . cycle ( )
}
e . preventDefault ( )
e . preventDefault ( )
} )
} )
} ( window . jQuery ) ; / * = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
} ( window . jQuery ) ; / * = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
* bootstrap - collapse . js v2 . 2.2
* bootstrap - collapse . js v2 . 3.0
* http : //twitter.github.com/bootstrap/javascript.html#collapse
* http : //twitter.github.com/bootstrap/javascript.html#collapse
* === === === === === === === === === === === === === === === === === === === === =
* === === === === === === === === === === === === === === === === === === === === =
* Copyright 2012 Twitter , Inc .
* Copyright 2012 Twitter , Inc .
@ -497,7 +519,7 @@
, actives
, actives
, hasData
, hasData
if ( this . transitioning ) return
if ( this . transitioning || this . $element . hasClass ( 'in' ) ) return
dimension = this . dimension ( )
dimension = this . dimension ( )
scroll = $ . camelCase ( [ 'scroll' , dimension ] . join ( '-' ) )
scroll = $ . camelCase ( [ 'scroll' , dimension ] . join ( '-' ) )
@ -517,7 +539,7 @@
, hide : function ( ) {
, hide : function ( ) {
var dimension
var dimension
if ( this . transitioning ) return
if ( this . transitioning || ! this . $element . hasClass ( 'in' ) ) return
dimension = this . dimension ( )
dimension = this . dimension ( )
this . reset ( this . $element [ dimension ] ( ) )
this . reset ( this . $element [ dimension ] ( ) )
this . transition ( 'removeClass' , $ . Event ( 'hide' ) , 'hidden' )
this . transition ( 'removeClass' , $ . Event ( 'hide' ) , 'hidden' )
@ -574,7 +596,7 @@
return this . each ( function ( ) {
return this . each ( function ( ) {
var $this = $ ( this )
var $this = $ ( this )
, data = $this . data ( 'collapse' )
, data = $this . data ( 'collapse' )
, options = typeof option == 'object' && option
, options = $ . extend ( { } , $ . fn . collapse . defaults , $this . data ( ) , typeof option == 'object' && option )
if ( ! data ) $this . data ( 'collapse' , ( data = new Collapse ( this , options ) ) )
if ( ! data ) $this . data ( 'collapse' , ( data = new Collapse ( this , options ) ) )
if ( typeof option == 'string' ) data [ option ] ( )
if ( typeof option == 'string' ) data [ option ] ( )
} )
} )
@ -610,7 +632,7 @@
} )
} )
} ( window . jQuery ) ; / * = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
} ( window . jQuery ) ; / * = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
* bootstrap - dropdown . js v2 . 2.2
* bootstrap - dropdown . js v2 . 3.0
* http : //twitter.github.com/bootstrap/javascript.html#dropdowns
* http : //twitter.github.com/bootstrap/javascript.html#dropdowns
* === === === === === === === === === === === === === === === === === === === ===
* === === === === === === === === === === === === === === === === === === === ===
* Copyright 2012 Twitter , Inc .
* Copyright 2012 Twitter , Inc .
@ -692,7 +714,10 @@
isActive = $parent . hasClass ( 'open' )
isActive = $parent . hasClass ( 'open' )
if ( ! isActive || ( isActive && e . keyCode == 27 ) ) return $this . click ( )
if ( ! isActive || ( isActive && e . keyCode == 27 ) ) {
if ( e . which == 27 ) $parent . find ( toggle ) . focus ( )
return $this . click ( )
}
$items = $ ( '[role=menu] li:not(.divider):visible a' , $parent )
$items = $ ( '[role=menu] li:not(.divider):visible a' , $parent )
@ -726,8 +751,9 @@
selector = selector && /#/ . test ( selector ) && selector . replace ( /.*(?=#[^\s]*$)/ , '' ) //strip for ie7
selector = selector && /#/ . test ( selector ) && selector . replace ( /.*(?=#[^\s]*$)/ , '' ) //strip for ie7
}
}
$parent = $ ( selector )
$parent = selector && $ ( selector )
$parent . length || ( $parent = $this . parent ( ) )
if ( ! $parent || ! $parent . length ) $parent = $this . parent ( )
return $parent
return $parent
}
}
@ -763,14 +789,15 @@
* === === === === === === === === === === === == * /
* === === === === === === === === === === === == * /
$ ( document )
$ ( document )
. on ( 'click.dropdown.data-api touchstart.dropdown.data-api' , clearMenus )
. on ( 'click.dropdown.data-api' , clearMenus )
. on ( 'click.dropdown touchstart.dropdown.data-api' , '.dropdown form' , function ( e ) { e . stopPropagation ( ) } )
. on ( 'click.dropdown.data-api' , '.dropdown form' , function ( e ) { e . stopPropagation ( ) } )
. on ( 'touchstart.dropdown.data-api' , '.dropdown-menu' , function ( e ) { e . stopPropagation ( ) } )
. on ( '.dropdown-menu' , function ( e ) { e . stopPropagation ( ) } )
. on ( 'click.dropdown.data-api touchstart.dropdown.data-api' , toggle , Dropdown . prototype . toggle )
. on ( 'click.dropdown.data-api' , toggle , Dropdown . prototype . toggle )
. on ( 'keydown.dropdown.data-api touchstart.dropdown.data-api' , toggle + ', [role=menu]' , Dropdown . prototype . keydown )
. on ( 'keydown.dropdown.data-api' , toggle + ', [role=menu]' , Dropdown . prototype . keydown )
} ( window . jQuery ) ; / * = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
} ( window . jQuery ) ;
* bootstrap - modal . js v2 . 2.2
/ * = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
* bootstrap - modal . js v2 . 3.0
* http : //twitter.github.com/bootstrap/javascript.html#modals
* http : //twitter.github.com/bootstrap/javascript.html#modals
* === === === === === === === === === === === === === === === === === === ===
* === === === === === === === === === === === === === === === === === === ===
* Copyright 2012 Twitter , Inc .
* Copyright 2012 Twitter , Inc .
@ -831,8 +858,7 @@
that . $element . appendTo ( document . body ) //don't move modals dom position
that . $element . appendTo ( document . body ) //don't move modals dom position
}
}
that . $element
that . $element . show ( )
. show ( )
if ( transition ) {
if ( transition ) {
that . $element [ 0 ] . offsetWidth // force reflow
that . $element [ 0 ] . offsetWidth // force reflow
@ -910,12 +936,13 @@
} )
} )
}
}
, hideModal : function ( that ) {
, hideModal : function ( ) {
this . $element
var that = this
. hide ( )
this . $element . hide ( )
. trigger ( 'hidden' )
this . backdrop ( function ( ) {
that . removeBackdrop ( )
this . backdrop ( )
that . $element . trigger ( 'hidden' )
} )
}
}
, removeBackdrop : function ( ) {
, removeBackdrop : function ( ) {
@ -943,6 +970,8 @@
this . $backdrop . addClass ( 'in' )
this . $backdrop . addClass ( 'in' )
if ( ! callback ) return
doAnimate ?
doAnimate ?
this . $backdrop . one ( $ . support . transition . end , callback ) :
this . $backdrop . one ( $ . support . transition . end , callback ) :
callback ( )
callback ( )
@ -951,8 +980,8 @@
this . $backdrop . removeClass ( 'in' )
this . $backdrop . removeClass ( 'in' )
$ . support . transition && this . $element . hasClass ( 'fade' ) ?
$ . support . transition && this . $element . hasClass ( 'fade' ) ?
this . $backdrop . one ( $ . support . transition . end , $. proxy ( this . removeBackdrop , this ) ) :
this . $backdrop . one ( $ . support . transition . end , callback ) :
this . removeBackdrop ( )
callback ( )
} else if ( callback ) {
} else if ( callback ) {
callback ( )
callback ( )
@ -1015,7 +1044,7 @@
} ( window . jQuery ) ;
} ( window . jQuery ) ;
/ * = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
/ * = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
* bootstrap - tooltip . js v2 . 2.2
* bootstrap - tooltip . js v2 . 3.0
* http : //twitter.github.com/bootstrap/javascript.html#tooltips
* http : //twitter.github.com/bootstrap/javascript.html#tooltips
* Inspired by the original jQuery . tipsy by Jason Frame
* Inspired by the original jQuery . tipsy by Jason Frame
* === === === === === === === === === === === === === === === === === === === ==
* === === === === === === === === === === === === === === === === === === === ==
@ -1054,20 +1083,28 @@
, init : function ( type , element , options ) {
, init : function ( type , element , options ) {
var eventIn
var eventIn
, eventOut
, eventOut
, triggers
, trigger
, i
this . type = type
this . type = type
this . $element = $ ( element )
this . $element = $ ( element )
this . options = this . getOptions ( options )
this . options = this . getOptions ( options )
this . enabled = true
this . enabled = true
if ( this . options . trigger == 'click' ) {
triggers = this . options . trigger . split ( ' ' )
for ( i = triggers . length ; i -- ; ) {
trigger = triggers [ i ]
if ( trigger == 'click' ) {
this . $element . on ( 'click.' + this . type , this . options . selector , $ . proxy ( this . toggle , this ) )
this . $element . on ( 'click.' + this . type , this . options . selector , $ . proxy ( this . toggle , this ) )
} else if ( this . options . trigger != 'manual' ) {
} else if ( trigger != 'manual' ) {
eventIn = this . options . trigger == 'hover' ? 'mouseenter' : 'focus'
eventIn = trigger == 'hover' ? 'mouseenter' : 'focus'
eventOut = this . options . trigger == 'hover' ? 'mouseleave' : 'blur'
eventOut = trigger == 'hover' ? 'mouseleave' : 'blur'
this . $element . on ( eventIn + '.' + this . type , this . options . selector , $ . proxy ( this . enter , this ) )
this . $element . on ( eventIn + '.' + this . type , this . options . selector , $ . proxy ( this . enter , this ) )
this . $element . on ( eventOut + '.' + this . type , this . options . selector , $ . proxy ( this . leave , this ) )
this . $element . on ( eventOut + '.' + this . type , this . options . selector , $ . proxy ( this . leave , this ) )
}
}
}
this . options . selector ?
this . options . selector ?
( this . _options = $ . extend ( { } , this . options , { trigger : 'manual' , selector : '' } ) ) :
( this . _options = $ . extend ( { } , this . options , { trigger : 'manual' , selector : '' } ) ) :
@ -1075,7 +1112,7 @@
}
}
, getOptions : function ( options ) {
, getOptions : function ( options ) {
options = $ . extend ( { } , $ . fn [ this . type ] . defaults , options , this . $element . data ( ) )
options = $ . extend ( { } , $ . fn [ this . type ] . defaults , this . $element . data ( ) , options )
if ( options . delay && typeof options . delay == 'number' ) {
if ( options . delay && typeof options . delay == 'number' ) {
options . delay = {
options . delay = {
@ -1113,14 +1150,16 @@
, show : function ( ) {
, show : function ( ) {
var $tip
var $tip
, inside
, pos
, pos
, actualWidth
, actualWidth
, actualHeight
, actualHeight
, placement
, placement
, tp
, tp
, e = $ . Event ( 'show' )
if ( this . hasContent ( ) && this . enabled ) {
if ( this . hasContent ( ) && this . enabled ) {
this . $element . trigger ( e )
if ( e . isDefaultPrevented ( ) ) return
$tip = this . tip ( )
$tip = this . tip ( )
this . setContent ( )
this . setContent ( )
@ -1132,19 +1171,18 @@
this . options . placement . call ( this , $tip [ 0 ] , this . $element [ 0 ] ) :
this . options . placement . call ( this , $tip [ 0 ] , this . $element [ 0 ] ) :
this . options . placement
this . options . placement
inside = /in/ . test ( placement )
$tip
$tip
. detach ( )
. detach ( )
. css ( { top : 0 , left : 0 , display : 'block' } )
. css ( { top : 0 , left : 0 , display : 'block' } )
. insertAfter ( this . $element )
pos = this . getPosition ( inside )
this . options . container ? $tip . appendTo ( this . options . container ) : $tip . insertAfter ( this . $element )
pos = this . getPosition ( )
actualWidth = $tip [ 0 ] . offsetWidth
actualWidth = $tip [ 0 ] . offsetWidth
actualHeight = $tip [ 0 ] . offsetHeight
actualHeight = $tip [ 0 ] . offsetHeight
switch ( inside ? placement . split ( ' ' ) [ 1 ] : placement) {
switch ( placement) {
case 'bottom' :
case 'bottom' :
tp = { top : pos . top + pos . height , left : pos . left + pos . width / 2 - actualWidth / 2 }
tp = { top : pos . top + pos . height , left : pos . left + pos . width / 2 - actualWidth / 2 }
break
break
@ -1159,11 +1197,56 @@
break
break
}
}
this . applyPlacement ( tp , placement )
this . $element . trigger ( 'shown' )
}
}
, applyPlacement : function ( offset , placement ) {
var $tip = this . tip ( )
, width = $tip [ 0 ] . offsetWidth
, height = $tip [ 0 ] . offsetHeight
, actualWidth
, actualHeight
, delta
, replace
$tip
$tip
. offset ( tp )
. offset ( offse t)
. addClass ( placement )
. addClass ( placement )
. addClass ( 'in' )
. addClass ( 'in' )
actualWidth = $tip [ 0 ] . offsetWidth
actualHeight = $tip [ 0 ] . offsetHeight
if ( placement == 'top' && actualHeight != height ) {
offset . top = offset . top + height - actualHeight
replace = true
}
}
if ( placement == 'bottom' || placement == 'top' ) {
delta = 0
if ( offset . left < 0 ) {
delta = offset . left * - 2
offset . left = 0
$tip . offset ( offset )
actualWidth = $tip [ 0 ] . offsetWidth
actualHeight = $tip [ 0 ] . offsetHeight
}
this . replaceArrow ( delta - width + actualWidth , actualWidth , 'left' )
} else {
this . replaceArrow ( actualHeight - height , actualHeight , 'top' )
}
if ( replace ) $tip . offset ( offset )
}
, replaceArrow : function ( delta , dimension , position ) {
this
. arrow ( )
. css ( position , delta ? ( 50 * ( 1 - delta / dimension ) + "%" ) : '' )
}
}
, setContent : function ( ) {
, setContent : function ( ) {
@ -1177,6 +1260,10 @@
, hide : function ( ) {
, hide : function ( ) {
var that = this
var that = this
, $tip = this . tip ( )
, $tip = this . tip ( )
, e = $ . Event ( 'hide' )
this . $element . trigger ( e )
if ( e . isDefaultPrevented ( ) ) return
$tip . removeClass ( 'in' )
$tip . removeClass ( 'in' )
@ -1195,13 +1282,15 @@
removeWithAnimation ( ) :
removeWithAnimation ( ) :
$tip . detach ( )
$tip . detach ( )
this . $element . trigger ( 'hidden' )
return this
return this
}
}
, fixTitle : function ( ) {
, fixTitle : function ( ) {
var $e = this . $element
var $e = this . $element
if ( $e . attr ( 'title' ) || typeof ( $e . attr ( 'data-original-title' ) ) != 'string' ) {
if ( $e . attr ( 'title' ) || typeof ( $e . attr ( 'data-original-title' ) ) != 'string' ) {
$e . attr ( 'data-original-title' , $e . attr ( 'title' ) || '' ) . removeAttr( 'title ')
$e . attr ( 'data-original-title' , $e . attr ( 'title' ) || '' ) . attr( 'title' , ' ')
}
}
}
}
@ -1209,11 +1298,12 @@
return this . getTitle ( )
return this . getTitle ( )
}
}
, getPosition : function ( inside ) {
, getPosition : function ( ) {
return $ . extend ( { } , ( inside ? { top : 0 , left : 0 } : this . $element . offset ( ) ) , {
var el = this . $element [ 0 ]
width : this . $element [ 0 ] . offsetWidth
return $ . extend ( { } , ( typeof el . getBoundingClientRect == 'function' ) ? el . getBoundingClientRect ( ) : {
, height : this . $element [ 0 ] . offsetHeight
width : el . offsetWidth
} )
, height : el . offsetHeight
} , this . $element . offset ( ) )
}
}
, getTitle : function ( ) {
, getTitle : function ( ) {
@ -1231,6 +1321,10 @@
return this . $tip = this . $tip || $ ( this . options . template )
return this . $tip = this . $tip || $ ( this . options . template )
}
}
, arrow : function ( ) {
return this . $arrow = this . $arrow || this . tip ( ) . find ( ".tooltip-arrow" )
}
, validate : function ( ) {
, validate : function ( ) {
if ( ! this . $element [ 0 ] . parentNode ) {
if ( ! this . $element [ 0 ] . parentNode ) {
this . hide ( )
this . hide ( )
@ -1252,8 +1346,8 @@
}
}
, toggle : function ( e ) {
, toggle : function ( e ) {
var self = $( e . currentTarget ) [ this . type ] ( this . _options ) . data ( this . type )
var self = e ? $( e . currentTarget ) [ this . type ] ( this . _options ) . data ( this . type ) : this
self [self .tip ( ) . hasClass ( 'in' ) ? 'hide' : 'show' ] ( )
self .tip ( ) . hasClass ( 'in' ) ? self . hide ( ) : self . show ( )
}
}
, destroy : function ( ) {
, destroy : function ( ) {
@ -1285,10 +1379,11 @@
, placement : 'top'
, placement : 'top'
, selector : false
, selector : false
, template : '<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>'
, template : '<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>'
, trigger : 'hover '
, trigger : 'hover focus '
, title : ''
, title : ''
, delay : 0
, delay : 0
, html : false
, html : false
, container : false
}
}
@ -1300,8 +1395,9 @@
return this
return this
}
}
} ( window . jQuery ) ; / * = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
} ( window . jQuery ) ;
* bootstrap - popover . js v2 . 2.2
/ * = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
* bootstrap - popover . js v2 . 3.0
* http : //twitter.github.com/bootstrap/javascript.html#popovers
* http : //twitter.github.com/bootstrap/javascript.html#popovers
* === === === === === === === === === === === === === === === === === === === ==
* === === === === === === === === === === === === === === === === === === === ==
* Copyright 2012 Twitter , Inc .
* Copyright 2012 Twitter , Inc .
@ -1360,8 +1456,8 @@
, $e = this . $element
, $e = this . $element
, o = this . options
, o = this . options
content = $e . attr ( 'data-content' )
content = ( typeof o . content == 'function' ? o . content . call ( $e [ 0 ] ) : o . content )
|| ( typeof o . content == 'function' ? o . content . call ( $e [ 0 ] ) : o . content )
|| $e . attr ( 'data-content' )
return content
return content
}
}
@ -1401,7 +1497,7 @@
placement : 'right'
placement : 'right'
, trigger : 'click'
, trigger : 'click'
, content : ''
, content : ''
, template : '<div class="popover"><div class="arrow"></div>< div class="popover-inner">< h3 class="popover-title"></h3><div class="popover-content"></div ></div></div>'
, template : '<div class="popover"><div class="arrow"></div>< h3 class="popover-title"></h3><div class="popover-content"></div></div>'
} )
} )
@ -1413,8 +1509,9 @@
return this
return this
}
}
} ( window . jQuery ) ; / * = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
} ( window . jQuery ) ;
* bootstrap - scrollspy . js v2 . 2.2
/ * = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
* bootstrap - scrollspy . js v2 . 3.0
* http : //twitter.github.com/bootstrap/javascript.html#scrollspy
* http : //twitter.github.com/bootstrap/javascript.html#scrollspy
* === === === === === === === === === === === === === === === === === === === === =
* === === === === === === === === === === === === === === === === === === === === =
* Copyright 2012 Twitter , Inc .
* Copyright 2012 Twitter , Inc .
@ -1474,7 +1571,7 @@
, $href = /^#\w/ . test ( href ) && $ ( href )
, $href = /^#\w/ . test ( href ) && $ ( href )
return ( $href
return ( $href
&& $href . length
&& $href . length
&& [ [ $href . position ( ) . top + self . $scrollElement . scrollTop ( ) , href ] ] ) || null
&& [ [ $href . position ( ) . top + ( ! $ . isWindow ( self . $scrollElement . get ( 0 ) ) && self . $scrollElement . scrollTop ( ) ) , href ] ] ) || null
} )
} )
. sort ( function ( a , b ) { return a [ 0 ] - b [ 0 ] } )
. sort ( function ( a , b ) { return a [ 0 ] - b [ 0 ] } )
. each ( function ( ) {
. each ( function ( ) {
@ -1575,7 +1672,7 @@
} )
} )
} ( window . jQuery ) ; / * = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
} ( window . jQuery ) ; / * = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
* bootstrap - tab . js v2 . 2.2
* bootstrap - tab . js v2 . 3.0
* http : //twitter.github.com/bootstrap/javascript.html#tabs
* http : //twitter.github.com/bootstrap/javascript.html#tabs
* === === === === === === === === === === === === === === === === === === ==
* === === === === === === === === === === === === === === === === === === ==
* Copyright 2012 Twitter , Inc .
* Copyright 2012 Twitter , Inc .
@ -1718,7 +1815,7 @@
} )
} )
} ( window . jQuery ) ; / * = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
} ( window . jQuery ) ; / * = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
* bootstrap - typeahead . js v2 . 2.2
* bootstrap - typeahead . js v2 . 3.0
* http : //twitter.github.com/bootstrap/javascript.html#typeahead
* http : //twitter.github.com/bootstrap/javascript.html#typeahead
* === === === === === === === === === === === === === === === === === === === === =
* === === === === === === === === === === === === === === === === === === === === =
* Copyright 2012 Twitter , Inc .
* Copyright 2012 Twitter , Inc .
@ -1891,6 +1988,7 @@
, listen : function ( ) {
, listen : function ( ) {
this . $element
this . $element
. on ( 'focus' , $ . proxy ( this . focus , this ) )
. on ( 'blur' , $ . proxy ( this . blur , this ) )
. on ( 'blur' , $ . proxy ( this . blur , this ) )
. on ( 'keypress' , $ . proxy ( this . keypress , this ) )
. on ( 'keypress' , $ . proxy ( this . keypress , this ) )
. on ( 'keyup' , $ . proxy ( this . keyup , this ) )
. on ( 'keyup' , $ . proxy ( this . keyup , this ) )
@ -1902,6 +2000,7 @@
this . $menu
this . $menu
. on ( 'click' , $ . proxy ( this . click , this ) )
. on ( 'click' , $ . proxy ( this . click , this ) )
. on ( 'mouseenter' , 'li' , $ . proxy ( this . mouseenter , this ) )
. on ( 'mouseenter' , 'li' , $ . proxy ( this . mouseenter , this ) )
. on ( 'mouseleave' , 'li' , $ . proxy ( this . mouseleave , this ) )
}
}
, eventSupported : function ( eventName ) {
, eventSupported : function ( eventName ) {
@ -1975,22 +2074,33 @@
e . preventDefault ( )
e . preventDefault ( )
}
}
, focus : function ( e ) {
this . focused = true
}
, blur : function ( e ) {
, blur : function ( e ) {
var that = this
this . focused = false
setTimeout ( function ( ) { that . hide ( ) } , 150 )
if ( ! this . mousedover && this . shown ) this . hide ( )
}
}
, click : function ( e ) {
, click : function ( e ) {
e . stopPropagation ( )
e . stopPropagation ( )
e . preventDefault ( )
e . preventDefault ( )
this . select ( )
this . select ( )
this . $element . focus ( )
}
}
, mouseenter : function ( e ) {
, mouseenter : function ( e ) {
this . mousedover = true
this . $menu . find ( '.active' ) . removeClass ( 'active' )
this . $menu . find ( '.active' ) . removeClass ( 'active' )
$ ( e . currentTarget ) . addClass ( 'active' )
$ ( e . currentTarget ) . addClass ( 'active' )
}
}
, mouseleave : function ( e ) {
this . mousedover = false
if ( ! this . focused && this . shown ) this . hide ( )
}
}
}
@ -2035,13 +2145,12 @@
$ ( document ) . on ( 'focus.typeahead.data-api' , '[data-provide="typeahead"]' , function ( e ) {
$ ( document ) . on ( 'focus.typeahead.data-api' , '[data-provide="typeahead"]' , function ( e ) {
var $this = $ ( this )
var $this = $ ( this )
if ( $this . data ( 'typeahead' ) ) return
if ( $this . data ( 'typeahead' ) ) return
e . preventDefault ( )
$this . typeahead ( $this . data ( ) )
$this . typeahead ( $this . data ( ) )
} )
} )
} ( window . jQuery ) ;
} ( window . jQuery ) ;
/ * = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
/ * = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
* bootstrap - affix . js v2 . 2.2
* bootstrap - affix . js v2 . 3.0
* http : //twitter.github.com/bootstrap/javascript.html#affix
* http : //twitter.github.com/bootstrap/javascript.html#affix
* === === === === === === === === === === === === === === === === === === === =
* === === === === === === === === === === === === === === === === === === === =
* Copyright 2012 Twitter , Inc .
* Copyright 2012 Twitter , Inc .