Sample/Window.js
authorAlan Knowles <alan@akbkhome.com>
Mon, 1 Nov 2010 06:17:40 +0000 (14:17 +0800)
committerAlan Knowles <alan@akbkhome.com>
Mon, 1 Nov 2010 06:17:40 +0000 (14:17 +0800)
Sample/Window.js

index 2fa4566..e0551b9 100644 (file)
@@ -480,7 +480,7 @@ Window=new XObject({
                                                                                 var res = {}; 
                                                                                 this.get('/LeftTree.view').el.get_path_at_pos(ev.button.x,ev.button.y, res);
                                                                                 
-                                                                                if (!this.get('/LeftTreeMenu').el)  this.get('/LeftTreeMenu').init();
+                                                                                if (!this.get('/LeftTreeMenu').el)  { this.get('/LeftTreeMenu').init(); }
                                                                                 
                                                                                 this.get('/LeftTreeMenu').el.set_screen(Gdk.Screen.get_default());
                                                                                 this.get('/LeftTreeMenu').el.show_all();
@@ -2197,8 +2197,14 @@ Window=new XObject({
                                                                                                 ]);
                                                                     },
                                                                     load : function(ar) {
+                                                                    // might casue problesm..
+                                                                         this.get('/Editor.RightEditor').save();
+                                                                           this.get('/Editor').el.hide();
+                                                                         this.get('/Editor').activePath = false;
+                                                                    
+                                                                    
                                                                       this.el.clear();
-                                                                                            
+                                                                                  
                                                                         //this.get('/RightEditor').el.hide();
                                                                         if (ar === false) {
                                                                             return ;