projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a3aeb55
)
NewBranch.bjs
author
Alan Knowles
<alan@roojs.com>
Thu, 21 Mar 2019 06:30:51 +0000
(14:30 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 21 Mar 2019 06:30:51 +0000
(14:30 +0800)
NewBranch.vala
NewBranch.bjs
patch
|
blob
|
history
NewBranch.vala
patch
|
blob
|
history
diff --git
a/NewBranch.bjs
b/NewBranch.bjs
index
5c39d8f
..
bab8cf0
100644
(file)
--- a/
NewBranch.bjs
+++ b/
NewBranch.bjs
@@
-555,7
+555,7
@@
"xtype" : "Button",
"* pack" : "attach_defaults,0,5,2,3",
"$ xns" : "Gtk",
"xtype" : "Button",
"* pack" : "attach_defaults,0,5,2,3",
"$ 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"
+ "| 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"
}
]
},
}
]
},
diff --git
a/NewBranch.vala
b/NewBranch.vala
index
bbdf786
..
8599788
100644
(file)
--- a/
NewBranch.vala
+++ b/
NewBranch.vala
@@
-2421,9
+2421,9
@@
public class NewBranch : Object
// user defined functions
public return_type XXXX () {
// user defined functions
public return_type XXXX () {
- var
ticket_id = _this.ticketsel.selectedTicketId
();
+ var
msg = _this.commit_message.el.getText
();
- if (
ticket_id
== "") {
+ if (
msg
== "") {
this.el.set_sensitive(false);
return;
}
this.el.set_sensitive(false);
return;
}