NewBranch.bjs
[gitlive] / NewBranch.vala
index 00dd30a..e041745 100644 (file)
@@ -476,6 +476,7 @@ public class NewBranch : Object
                
                        var dt = new  DateTime.now_local();
                        _this.name.el.set_text("wip_%s_%s".printf(name,dt.format("%Y_%b_%d")));
+                       _this.view.loadTicket("");              
                        return;
                }
                
@@ -896,12 +897,17 @@ public class NewBranch : Object
 
         // user defined functions
         public void loadTicket (string tid) {
+               int h,w;
+               _this.el.get_size(out w, out h);
+               
                if (tid == "") {
                        _this.scrolled_window.el.hide();
+                       _this.el.resize(w, 150);
                } else {
                        _this.scrolled_window.el.show();
+                       _this.el.resize(w, 800);
                }
-                this.el.load_uri("http://www.google.com");
+                this.el.load_uri("https://roojs.com/admin.php/MTrack/View/" + tid);
         }
     }