Roo/bootstrap/Modal.js
authorEdward <edward@roojs.com>
Fri, 27 Mar 2015 02:39:37 +0000 (10:39 +0800)
committerEdward <edward@roojs.com>
Fri, 27 Mar 2015 02:39:37 +0000 (10:39 +0800)
Roo/bootstrap/Modal.js

index 8517572..7ad8a92 100644 (file)
@@ -67,6 +67,8 @@ Roo.extend(Roo.bootstrap.Modal, Roo.bootstrap.Component,  {
     
     buttonPosition: 'right',
     
+    animate : true,
+    
     onRender : function(ct, position)
     {
         Roo.bootstrap.Component.superclass.onRender.call(this, ct, position);
@@ -155,7 +157,7 @@ Roo.extend(Roo.bootstrap.Modal, Roo.bootstrap.Component,  {
             title = this.title;
         };
         
-        return modal = {
+        var modal = {
             cls: "modal fade",
             style : 'display: none',
             cn : [
@@ -199,6 +201,8 @@ Roo.extend(Roo.bootstrap.Modal, Roo.bootstrap.Component,  {
             
             
         };
+        
+        return modal;
           
     },
     getChildContainer : function() {