NewBranch.bjs
[gitlive] / NewBranch.bjs
index b73696d..d70e8dd 100644 (file)
          },
          "label" : "Create Branch",
          "id" : "createbtn",
-         "| void updateState" : "() {\n\n\n\n}\n",
+         "| void updateState" : "() {\n\n\nif (_this.actionsel.selectedAction() == \"\") {\n\t\t// need to select an action..\n\t\tthis.el.set_sensitive(false);\n\t\treturn;\n\t\n\t\n\t}\n\t\tthis.el.set_sensitive(true);\n\t\treturn;\n}\n",
          "* init" : "{\n   this.el.get_style_context().add_class(\"suggested-action\");\n}\n",
          "xtype" : "Button",
          "* pack" : "attach_defaults,4,5,4,5",