NewBranch.bjs
[gitlive] / NewBranch.bjs
index c97f96a..bab8cf0 100644 (file)
            "id" : "commit_message",
            "$ visible" : true,
            "xtype" : "Entry",
-           "* pack" : "attach_defaults,0,4,1,2",
+           "* pack" : "attach_defaults,0,5,1,2",
            "$ xns" : "Gtk"
           },
           {
            "id" : "createbtn",
            "* init" : "{\n   this.el.get_style_context().add_class(\"suggested-action\");\n}\n",
            "xtype" : "Button",
-           "* pack" : "attach_defaults,1,5,2,3",
-           "$ xns" : "Gtk"
+           "* pack" : "attach_defaults,0,5,2,3",
+           "$ xns" : "Gtk",
+           "| 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"
           }
          ]
         },