mirror of https://github.com/twbs/bootstrap.git
				
				
				
			From #822
This commit is contained in:
		
							parent
							
								
									9fb380151d
								
							
						
					
					
						commit
						5de1e39a8f
					
				| 
						 | 
				
			
			@ -39,6 +39,8 @@
 | 
			
		|||
        , selector = $this.attr('data-target') || $this.attr('href')
 | 
			
		||||
        , $parent = $(selector)
 | 
			
		||||
 | 
			
		||||
      $parent.trigger('close')
 | 
			
		||||
 | 
			
		||||
      e && e.preventDefault()
 | 
			
		||||
 | 
			
		||||
      $parent.length || ($parent = $this.hasClass('alert-message') ? $this : $this.parent())
 | 
			
		||||
| 
						 | 
				
			
			@ -47,6 +49,8 @@
 | 
			
		|||
 | 
			
		||||
      function removeElement() {
 | 
			
		||||
        $parent.remove()
 | 
			
		||||
 | 
			
		||||
        $parent.trigger('closed')
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      $.support.transition && $parent.hasClass('fade') ?
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue