From 84cfcbc8c7f783169c6293cc951f27f542a785b8 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 21 Mar 2019 14:28:55 +0800 Subject: [PATCH] NewBranch.bjs NewBranch.vala --- NewBranch.bjs | 2 +- NewBranch.vala | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/NewBranch.bjs b/NewBranch.bjs index 7b82a843..74014e71 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(3);\n}" + "clicked" : "() => {\n\n\tGLib.debug(\"fire response = 1\");\n\t\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 6046cea6..3a86bd35 100644 --- a/NewBranch.vala +++ b/NewBranch.vala @@ -2412,12 +2412,7 @@ public class NewBranch : Object GLib.debug("fire response = 1"); - var ticket_id = _this.ticketsel.selectedTicketId(); - - if (ticket_id == "") { - _this.ticketsel.el.get_child().get_style_context().add_class("warning"); - return; - } + _this.el.response(3); }); -- 2.39.2