README.txt
[gitlive] / RemoteEdit.js
index af37a10..5ab0874 100644 (file)
@@ -46,15 +46,25 @@ RemoteEdit=new XObject({
             this.init();
         }
         var _this = this;
-        this.get('/remotesStore').load();
+        //this.get('/remotesStore').load();
+        this.get('/remoteURL').el.get_child().set_text('');
+        this.get('/remoteName').el.set_text('');
+        
+        
         this.el.show_all();
         
         var run_ret = this.el.run();
         if (run_ret < 1 ) {
-            return  "DONE";
+            return false;
         }
-        print("RUN RETURN : " + run_ret);
-        return "DONE";
+        var ret=  {
+            url :  this.get('/remoteURL').el.get_child().get_text(),
+            name :  this.get('/remoteName').el.get_text()
+        };
+        
+        return ret;
+        
+        
         
     },
     items : [
@@ -64,23 +74,6 @@ RemoteEdit=new XObject({
                     p.el.get_content_area().pack_start(e.el,true,true,10);
                 },
             items : [
-                {
-                    xtype: Gtk.HBox,
-                    pack : "pack_start,false,true,10",
-                    items : [
-                        {
-                            xtype: Gtk.Label,
-                            label : "Name : ",
-                            pack : "pack_start,false,false,10",
-                            width_request : 50,
-                            xalign : 1
-                        },
-                        {
-                            xtype: Gtk.Entry,
-                            id : "remoteName"
-                        }
-                    ]
-                },
                 {
                     xtype: Gtk.HBox,
                     pack : "pack_start,false,true,10",
@@ -111,7 +104,7 @@ RemoteEdit=new XObject({
                                        var host = val.host;
                                        // need to add github owner...
                                         if (host.match(/github.com$/)) {
-                                          host += '.' + host.path.split('/').shift();
+                                          host += '.' + val.path.split('/').shift();
                                         }
                                    
                                    
@@ -177,6 +170,23 @@ RemoteEdit=new XObject({
                             }
                         }
                     ]
+                },
+                {
+                    xtype: Gtk.HBox,
+                    pack : "pack_start,false,true,10",
+                    items : [
+                        {
+                            xtype: Gtk.Label,
+                            label : "Name : ",
+                            pack : "pack_start,false,false,10",
+                            width_request : 50,
+                            xalign : 1
+                        },
+                        {
+                            xtype: Gtk.Entry,
+                            id : "remoteName"
+                        }
+                    ]
                 }
             ]
         },