From: Alan Knowles Date: Thu, 21 Mar 2019 06:28:46 +0000 (+0800) Subject: NewBranch.bjs X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=17fe87d9fd586e900603897fdced5bbf8192746a NewBranch.bjs NewBranch.vala --- diff --git a/NewBranch.bjs b/NewBranch.bjs index 036346ac..7b82a843 100644 --- a/NewBranch.bjs +++ b/NewBranch.bjs @@ -547,7 +547,7 @@ }, { "listeners" : { - "clicked" : "() => {\n\n\tGLib.debug(\"fire response = 1\");\n\t\n\tvar ticket_id = _this.ticketsel.selectedTicketId();\n\t\n\tif (ticket_id == \"\") {\n\t\t_this.ticketsel.el.get_child().get_style_context().add_class(\"warning\");\n\t\treturn;\n\t}\n\t \n\t_this.el.response(1);\n}" + "clicked" : "() => {\n\n\tGLib.debug(\"fire response = 1\");\n\t\n\tvar ticket_id = _this.ticketsel.selectedTicketId();\n\t\n\tif (ticket_id == \"\") {\n\t\t_this.ticketsel.el.get_child().get_style_context().add_class(\"warning\");\n\t\treturn;\n\t}\n\t \n\t_this.el.response(3);\n}" }, "label" : "Commit Changes", "id" : "createbtn", diff --git a/NewBranch.vala b/NewBranch.vala index 74c3ce3a..6046cea6 100644 --- a/NewBranch.vala +++ b/NewBranch.vala @@ -2419,7 +2419,7 @@ public class NewBranch : Object return; } - _this.el.response(1); + _this.el.response(3); }); }