projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a7bf8a7
)
Ticket.bjs
author
Alan Knowles
<alan@roojs.com>
Mon, 17 Dec 2018 06:44:16 +0000
(14:44 +0800)
committer
Alan Knowles
<alan@roojs.com>
Mon, 17 Dec 2018 06:44:16 +0000
(14:44 +0800)
Ticket.vala
Ticket.bjs
patch
|
blob
|
history
Ticket.vala
patch
|
blob
|
history
diff --git
a/Ticket.bjs
b/Ticket.bjs
index
26406e6
..
2a41ff9
100644
(file)
--- a/
Ticket.bjs
+++ b/
Ticket.bjs
@@
-259,7
+259,7
@@
},
{
"listeners" : {
},
{
"listeners" : {
- "clicked" : "() => {\n\tGLib.debug(\"fire response = 1\");\n\t\n\t\n\tvar invalid = false;\n\t\n\t// validate first...\n\t_this.project_id.el.get_style_context().remove_class(\"warning\");\t\n\tif (_this.project_id.
get
ProjectId() == \"\") {\n\t\t_this.project_id.el.get_style_context().add_class(\"warning\");\n\t\tinvalid = true;\n\t}\n\t\n\t\n\t\n\tif (invalid) {\n\t\treturn;\n\t}\n\t\n\t_this.el.response(1);\n}"
+ "clicked" : "() => {\n\tGLib.debug(\"fire response = 1\");\n\t\n\t\n\tvar invalid = false;\n\t\n\t// validate first...\n\t_this.project_id.el.get_style_context().remove_class(\"warning\");\t\n\tif (_this.project_id.
selected
ProjectId() == \"\") {\n\t\t_this.project_id.el.get_style_context().add_class(\"warning\");\n\t\tinvalid = true;\n\t}\n\t\n\t\n\t\n\tif (invalid) {\n\t\treturn;\n\t}\n\t\n\t_this.el.response(1);\n}"
},
"label" : "Create Ticket",
"* init" : "{\n this.el.get_style_context().add_class(\"suggested-action\");\n}\n",
},
"label" : "Create Ticket",
"* init" : "{\n this.el.get_style_context().add_class(\"suggested-action\");\n}\n",
diff --git
a/Ticket.vala
b/Ticket.vala
index
4c28919
..
85624e2
100644
(file)
--- a/
Ticket.vala
+++ b/
Ticket.vala
@@
-1167,7
+1167,7
@@
public class Ticket : Object
// validate first...
_this.project_id.el.get_style_context().remove_class("warning");
// validate first...
_this.project_id.el.get_style_context().remove_class("warning");
- if (_this.project_id.
get
ProjectId() == "") {
+ if (_this.project_id.
selected
ProjectId() == "") {
_this.project_id.el.get_style_context().add_class("warning");
invalid = true;
}
_this.project_id.el.get_style_context().add_class("warning");
invalid = true;
}