Roo/bootstrap/Alert.js
authorAlan Knowles <alan@roojs.com>
Tue, 8 Jun 2021 08:07:01 +0000 (16:07 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 8 Jun 2021 08:07:01 +0000 (16:07 +0800)
Roo/bootstrap/Alert.js

index 2fb1779..5d53882 100644 (file)
@@ -87,6 +87,9 @@ Roo.extend(Roo.bootstrap.Alert, Roo.bootstrap.Component,  {
         this.el.setVisibilityMode(Roo.Element.DISPLAY);
         this.titleEl =  this.el.select('.roo-alert-title',true).first();
         this.iconEl = this.el.select('.roo-alert-icon',true).first();
+        if (this.seconds > 0) {
+            this.hide.defer(this.seconds, this);
+        }
     },
     
     setTitle : function(str)