Roo/bootstrap/Popover.js
authorAlan Knowles <alan@roojs.com>
Thu, 20 Feb 2014 07:33:00 +0000 (15:33 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 20 Feb 2014 07:33:00 +0000 (15:33 +0800)
Roo/bootstrap/Popover.js

index 8312ec1..eb63d84 100644 (file)
@@ -128,7 +128,19 @@ Roo.extend(Roo.bootstrap.Popover, Roo.bootstrap.Component,  {
         }
     }
     
+    enter : function (obj) {
+       
     
+        clearTimeout(this.timeout);
+    
+        self.hoverState = 'in'
+    
+        if (!self.options.delay || !self.options.delay.show) return self.show()
+    
+        self.timeout = setTimeout(function () {
+          if (self.hoverState == 'in') self.show()
+        }, self.options.delay.show)
+      }
     
     
 });