From: Alan Knowles Date: Thu, 21 Mar 2019 06:29:09 +0000 (+0800) Subject: NewBranch.bjs X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=556661ee18a4b114d63e652935773a54362a4af1 NewBranch.bjs NewBranch.vala --- diff --git a/NewBranch.bjs b/NewBranch.bjs index 74014e71..a89df47d 100644 --- a/NewBranch.bjs +++ b/NewBranch.bjs @@ -551,7 +551,6 @@ }, "label" : "Commit Changes", "id" : "createbtn", - "| void updateState" : "() {\n\n\tvar ticket_id = _this.ticketsel.selectedTicketId();\n\t\n\tif (ticket_id == \"\") {\n\t\tthis.el.set_sensitive(false);\n\t\treturn;\n\t}\n \n\tthis.el.set_sensitive(true);\n \n}\n", "* init" : "{\n this.el.get_style_context().add_class(\"suggested-action\");\n}\n", "xtype" : "Button", "* pack" : "attach_defaults,4,5,1,2", diff --git a/NewBranch.vala b/NewBranch.vala index 3a86bd35..a91ee428 100644 --- a/NewBranch.vala +++ b/NewBranch.vala @@ -2419,18 +2419,6 @@ public class NewBranch : Object } // user defined functions - public void updateState () { - - var ticket_id = _this.ticketsel.selectedTicketId(); - - if (ticket_id == "") { - this.el.set_sensitive(false); - return; - } - - this.el.set_sensitive(true); - - } }