NewBranch.bjs
authorAlan Knowles <alan@roojs.com>
Thu, 21 Mar 2019 06:30:51 +0000 (14:30 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 21 Mar 2019 06:30:51 +0000 (14:30 +0800)
NewBranch.vala

NewBranch.bjs
NewBranch.vala

index 5c39d8f..bab8cf0 100644 (file)
            "xtype" : "Button",
            "* pack" : "attach_defaults,0,5,2,3",
            "$ xns" : "Gtk",
-           "| return_type XXXX" : "() {\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"
+           "| return_type XXXX" : "() {\n\n\tvar msg = _this.commit_message.el.getText();\n\t\n\tif (msg == \"\") {\n\t\tthis.el.set_sensitive(false);\n\t\treturn;\n\t}\n \n\tthis.el.set_sensitive(true);\n \n}\n"
           }
          ]
         },
index bbdf786..8599788 100644 (file)
@@ -2421,9 +2421,9 @@ public class NewBranch : Object
         // user defined functions
         public return_type XXXX () {
         
-               var ticket_id = _this.ticketsel.selectedTicketId();
+               var msg = _this.commit_message.el.getText();
                
-               if (ticket_id == "") {
+               if (msg == "") {
                        this.el.set_sensitive(false);
                        return;
                }