Roo/bootstrap/MessageBar.js
authorEdward <edward@roojs.com>
Wed, 4 Jun 2014 06:38:42 +0000 (14:38 +0800)
committerEdward <edward@roojs.com>
Wed, 4 Jun 2014 06:38:42 +0000 (14:38 +0800)
Roo/bootstrap/MessageBar.js

index 7f224a8..77be78a 100644 (file)
@@ -70,6 +70,11 @@ Roo.extend(Roo.bootstrap.MessageBar, Roo.bootstrap.Component,  {
         }
     },
     
+    initEvents : function()
+    {
+        this.el.select('>button.close').on('click', this.hide, this);
+    },
+    
     show : function()
     {
         if (!this.rendered) {