From eea585e14948f2894625965809cdab9206f4f607 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 17 Dec 2018 15:43:25 +0800 Subject: [PATCH] Ticket.bjs Ticket.vala --- Ticket.bjs | 2 +- Ticket.vala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Ticket.bjs b/Ticket.bjs index 42af8e2b..e0f96d59 100644 --- a/Ticket.bjs +++ b/Ticket.bjs @@ -10,7 +10,7 @@ { "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.selectProjectId(),\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, tid);\n \t}\n\t \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.selectProjectId(),\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(), tid);\n \t}\n\t \n\n\t \n}" }, "default_width" : 500, "$ deletable" : true, diff --git a/Ticket.vala b/Ticket.vala index 0decf9da..bccc14d7 100644 --- a/Ticket.vala +++ b/Ticket.vala @@ -81,7 +81,7 @@ public class Ticket : Object ); if (this.repo != null) { - NewBranch.singleton().show(this.repo, tid); + NewBranch.singleton().show(this.repo, new Gee.ArrayList(), tid); } -- 2.39.2