projects
/
gitlive
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
NewBranch.bjs
[gitlive]
/
NewBranch.bjs
diff --git
a/NewBranch.bjs
b/NewBranch.bjs
index
74014e7
..
1d8ea4f
100644
(file)
--- a/
NewBranch.bjs
+++ b/
NewBranch.bjs
@@
-512,7
+512,7
@@
"bool homogeneous" : false,
"* pack" : "append_page,_this.label_quick_commit.el",
"xtype" : "Box",
"bool homogeneous" : false,
"* pack" : "append_page,_this.label_quick_commit.el",
"xtype" : "Box",
- "| void load_data" : "() {\n _this.commit_message.el.set_text(\"\");\n \n}\n",
+ "| void load_data" : "() {\n _this.commit_message.el.set_text(\"\");\n
_this.createbtn.updateState();
\n}\n",
"$ xns" : "Gtk",
"Gtk.Orientation orientation" : "Gtk.Orientation.VERTICAL",
"items" : [
"$ xns" : "Gtk",
"Gtk.Orientation orientation" : "Gtk.Orientation.VERTICAL",
"items" : [
@@
-539,10
+539,13
@@
"$ xns" : "Gtk"
},
{
"$ xns" : "Gtk"
},
{
+ "listeners" : {
+ "key_release_event" : "() => { \n\n\t_this.createbtn.updateState();\n}"
+ },
"id" : "commit_message",
"$ visible" : true,
"xtype" : "Entry",
"id" : "commit_message",
"$ visible" : true,
"xtype" : "Entry",
- "* pack" : "attach_defaults,0,
4
,1,2",
+ "* pack" : "attach_defaults,0,
5
,1,2",
"$ xns" : "Gtk"
},
{
"$ xns" : "Gtk"
},
{
@@
-551,10
+554,10
@@
},
"label" : "Commit Changes",
"id" : "createbtn",
},
"label" : "Commit Changes",
"id" : "createbtn",
- "| 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",
+ "| void updateState" : "() {\n\n\tvar
msg = _this.commit_message.el.get_text();\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",
"* init" : "{\n this.el.get_style_context().add_class(\"suggested-action\");\n}\n",
"xtype" : "Button",
"* init" : "{\n this.el.get_style_context().add_class(\"suggested-action\");\n}\n",
"xtype" : "Button",
- "* pack" : "attach_defaults,
4,5,1,2
",
+ "* pack" : "attach_defaults,
0,5,2,3
",
"$ xns" : "Gtk"
}
]
"$ xns" : "Gtk"
}
]