projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
84dd4f0
)
Ticket.bjs
author
Alan Knowles
<alan@roojs.com>
Mon, 17 Dec 2018 06:51:00 +0000
(14:51 +0800)
committer
Alan Knowles
<alan@roojs.com>
Mon, 17 Dec 2018 06:51:00 +0000
(14:51 +0800)
Ticket.vala
Ticket.bjs
patch
|
blob
|
history
Ticket.vala
patch
|
blob
|
history
diff --git
a/Ticket.bjs
b/Ticket.bjs
index
c656045
..
aa89c22
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.selectedProjectId() == \"\") {\n\t\t_this.project_id.el.get_style_context().add_class(\"warning\");\n\t\tinvalid = true;\n\t}\n\t\n\t_this.milestone_id.el.get_style_context().remove_class(\"warning\");\t\n\tif (_this.milestone_id.selectedMilestoneId() == \"\") {\n\t\t_this.milestone_id.el.get_style_context().add_class(\"warning\");\n\t\tinvalid = true;\n\t}\n\n\t_this.priority_id.el.get_style_context().remove_class(\"warning\");\t\n\tif (_this.priority_id.selectedPriorityId() == \"\") {\n\t\t_this.priority_id.el.get_style_context().add_class(\"warning\");\n\t\tinvalid = true;\n\t}\n\t\n\t_this.classification_id.el.get_style_context().remove_class(\"warning\");\t\n\tif (_this.classification_id.selectedClassificationId() == \"\") {\n\t\t_this.classification_id.el.get_style_context().add_class(\"warning\");\n\t\tinvalid = true;\n\t}\n\t\n\t_this.developer_id.el.get_style_context().remove_class(\"warning\");\t\n\tif (_this.developer_id.selectedDeveloperId() == \"\") {\n\t\t_this.developer_id.el
.get_style_context().add_class(\"warning\");\n\t\tinvalid = true;\n\t}\n\t\n\t_this.summary.el.get_style_context().remove_class(\"warning\");\t\n\tif (_this.summary.el.get_text() == \"\") {\n\t\t_this.summary.el.get_style_context().add_class(\"warning\");\n\t\tinvalid = true;\n\t}\n\t\n\t_this.description.el.get_style_context().remove_class(\"warning\");\t\n\tif (_this.description.el.buffer.text == \"\") {\n\t\t_this.description.el.get_style_context().add_class(\"warning\");\n\t\tinvalid = true;\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_
child().get_style_context().remove_class(\"warning\");\t\n\tif (_this.project_id.selectedProjectId() == \"\") {\n\t\t_this.project_id.el.get_child().get_style_context().add_class(\"warning\");\n\t\tinvalid = true;\n\t}\n\t\n\t_this.milestone_id.el.get_child().get_style_context().remove_class(\"warning\");\t\n\tif (_this.milestone_id.selectedMilestoneId() == \"\") {\n\t\t_this.milestone_id.el.get_child().get_style_context().add_class(\"warning\");\n\t\tinvalid = true;\n\t}\n\n\t_this.priority_id.el.get_child().get_style_context().remove_class(\"warning\");\t\n\tif (_this.priority_id.selectedPriorityId() == \"\") {\n\t\t_this.priority_id.el.get_child().get_style_context().add_class(\"warning\");\n\t\tinvalid = true;\n\t}\n\t\n\t_this.classification_id.el.get_child().get_style_context().remove_class(\"warning\");\t\n\tif (_this.classification_id.selectedClassificationId() == \"\") {\n\t\t_this.classification_id.el.get_child().get_style_context().add_class(\"warning\");\n\t\tinvalid = true;\n\t}\n\t\n\t_this.developer_id.el.get_child().get_style_context().remove_class(\"warning\");\t\n\tif (_this.developer_id.selectedDeveloperId() == \"\") {\n\t\t_this.developer_id.el.get_child()
.get_style_context().add_class(\"warning\");\n\t\tinvalid = true;\n\t}\n\t\n\t_this.summary.el.get_style_context().remove_class(\"warning\");\t\n\tif (_this.summary.el.get_text() == \"\") {\n\t\t_this.summary.el.get_style_context().add_class(\"warning\");\n\t\tinvalid = true;\n\t}\n\t\n\t_this.description.el.get_style_context().remove_class(\"warning\");\t\n\tif (_this.description.el.buffer.text == \"\") {\n\t\t_this.description.el.get_style_context().add_class(\"warning\");\n\t\tinvalid = true;\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
7c62b94
..
1ff9d33
100644
(file)
--- a/
Ticket.vala
+++ b/
Ticket.vala
@@
-1166,33
+1166,33
@@
public class Ticket : Object
var invalid = false;
// validate first...
var invalid = false;
// validate first...
- _this.project_id.el.get_
style_context().remove_class("warning");
+ _this.project_id.el.get_
child().get_style_context().remove_class("warning");
if (_this.project_id.selectedProjectId() == "") {
if (_this.project_id.selectedProjectId() == "") {
- _this.project_id.el.get_style_context().add_class("warning");
+ _this.project_id.el.get_
child().get_
style_context().add_class("warning");
invalid = true;
}
invalid = true;
}
- _this.milestone_id.el.get_
style_context().remove_class("warning");
+ _this.milestone_id.el.get_
child().get_style_context().remove_class("warning");
if (_this.milestone_id.selectedMilestoneId() == "") {
if (_this.milestone_id.selectedMilestoneId() == "") {
- _this.milestone_id.el.get_style_context().add_class("warning");
+ _this.milestone_id.el.get_
child().get_
style_context().add_class("warning");
invalid = true;
}
invalid = true;
}
- _this.priority_id.el.get_
style_context().remove_class("warning");
+ _this.priority_id.el.get_
child().get_style_context().remove_class("warning");
if (_this.priority_id.selectedPriorityId() == "") {
if (_this.priority_id.selectedPriorityId() == "") {
- _this.priority_id.el.get_style_context().add_class("warning");
+ _this.priority_id.el.get_
child().get_
style_context().add_class("warning");
invalid = true;
}
invalid = true;
}
- _this.classification_id.el.get_
style_context().remove_class("warning");
+ _this.classification_id.el.get_
child().get_style_context().remove_class("warning");
if (_this.classification_id.selectedClassificationId() == "") {
if (_this.classification_id.selectedClassificationId() == "") {
- _this.classification_id.el.get_style_context().add_class("warning");
+ _this.classification_id.el.get_
child().get_
style_context().add_class("warning");
invalid = true;
}
invalid = true;
}
- _this.developer_id.el.get_
style_context().remove_class("warning");
+ _this.developer_id.el.get_
child().get_style_context().remove_class("warning");
if (_this.developer_id.selectedDeveloperId() == "") {
if (_this.developer_id.selectedDeveloperId() == "") {
- _this.developer_id.el.get_style_context().add_class("warning");
+ _this.developer_id.el.get_
child().get_
style_context().add_class("warning");
invalid = true;
}
invalid = true;
}