NewBranch.bjs
[gitlive] / NewBranch.bjs
index 70bf5dd..5c39d8f 100644 (file)
            "* init" : "{\n   this.el.get_style_context().add_class(\"suggested-action\");\n}\n",
            "xtype" : "Button",
            "* pack" : "attach_defaults,0,5,2,3",
-           "$ xns" : "Gtk"
+           "$ 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"
           }
          ]
         },