X-Git-Url: http://git.roojs.org/?p=gitlive;a=blobdiff_plain;f=NewBranch.bjs;h=0c1fe9cd8edef499208fe225a6b5b1922bbb9cf7;hp=e5bde2212597978f98dcb89e24071f633e24c8b9;hb=a985c70e9406cefc765b00f947df24d53346012b;hpb=47d512a575c88ebf96995f118c19fc69ce25aefa diff --git a/NewBranch.bjs b/NewBranch.bjs index e5bde221..0c1fe9cd 100644 --- a/NewBranch.bjs +++ b/NewBranch.bjs @@ -174,7 +174,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(2);\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(1);\n}" }, "label" : "Create Branch", "| 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",