Uncommited changes synced
authorAlan Knowles <alan@roojs.com>
Mon, 17 Dec 2018 08:40:45 +0000 (16:40 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 17 Dec 2018 08:40:45 +0000 (16:40 +0800)
Ticket.bjs
Ticket.vala

index 03b0224..af53375 100644 (file)
@@ -10,7 +10,7 @@
   {
    "listeners" : {
     "delete_event" : "(self, event) => {\n    this.el.hide();\n    return true; \n    //test  \n}\n ",
   {
    "listeners" : {
     "delete_event" : "(self, event) => {\n    this.el.hide();\n    return true; \n    //test  \n}\n ",
-    "response" : " (self, response_id) =>  { \n  \n\tGLib.debug(\"got %d\", (int) response_id);\n\tif (response_id < 1) {\n\t    _this.el.hide();\t\n\t    this.running = false; \n\t \treturn;\n\t}\n\t \n\t \n\tvar tid = RooTicket.singleton().createTicket(\n\t\n\t\t_this.project_id.selectedProjectId(),\n\t\n\t\t_this.milestone_id.selectedMilestoneId(),\n\t\t_this.priority_id.selectedPriorityId() ,\n\t\t_this.classification_id.selectedClassificationId() ,\n\t\t_this.developer_id.selectedDeveloperId(),\n\t\t_this.summary.el.get_text() ,\n\t\t_this.description.el.buffer.text \n\t);\n\t\n\tif (this.repo != null) {\n\t \tNewBranch.singleton().show(this.repo, new Gee.ArrayList<GitMonitorQueue>(), tid);\n \t}\n\tthis.el.hide();\n\n\t \n}"
+    "response" : " (self, response_id) =>  { \n  \n\tGLib.debug(\"got %d\", (int) response_id);\n\tif (response_id < 1) {\n\t    _this.el.hide();\t\n\t    this.running = false; \n\t \treturn;\n\t}\n\t \n\t \n\tvar tid = RooTicket.singleton().createTicket(\n\t\n\t\t_this.project_id.selectedProjectId(),\n\t\n\t\t_this.milestone_id.selectedMilestoneId(),\n\t\t_this.priority_id.selectedPriorityId() ,\n\t\t_this.classification_id.selectedClassificationId() ,\n\t\t_this.developer_id.selectedDeveloperId(),\n\t\t_this.summary.el.get_text() ,\n\t\t_this.description.el.buffer.text \n\t);\n\tthis.el.hide();\n\tif (this.repo != null) {\n\t \tNewBranch.singleton().show(this.repo, new Gee.ArrayList<GitMonitorQueue>(), tid);\n \t}\n\n\n\t \n}"
    },
    "default_width" : 500,
    "$ deletable" : true,
    },
    "default_width" : 500,
    "$ deletable" : true,
index 3432d9b..3e290b8 100644 (file)
@@ -79,11 +79,11 @@ public class Ticket : Object
                        _this.summary.el.get_text() ,
                        _this.description.el.buffer.text 
                );
                        _this.summary.el.get_text() ,
                        _this.description.el.buffer.text 
                );
-               
+               this.el.hide();
                if (this.repo != null) {
                        NewBranch.singleton().show(this.repo, new Gee.ArrayList<GitMonitorQueue>(), tid);
                }
                if (this.repo != null) {
                        NewBranch.singleton().show(this.repo, new Gee.ArrayList<GitMonitorQueue>(), tid);
                }
-               this.el.hide();
+        
         
                 
         });
         
                 
         });