projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f1511c1
)
Ticket.bjs
author
Alan Knowles
<alan@roojs.com>
Mon, 17 Dec 2018 07:40:47 +0000
(15:40 +0800)
committer
Alan Knowles
<alan@roojs.com>
Mon, 17 Dec 2018 07:40:47 +0000
(15:40 +0800)
Ticket.vala
Ticket.bjs
patch
|
blob
|
history
Ticket.vala
patch
|
blob
|
history
diff --git
a/Ticket.bjs
b/Ticket.bjs
index
b29df1f
..
a75bf91
100644
(file)
--- a/
Ticket.bjs
+++ b/
Ticket.bjs
@@
-10,7
+10,7
@@
{
"listeners" : {
"delete_event" : "(self, event) => {\n this.el.hide();\n return true; \n //test \n}\n ",
{
"listeners" : {
"delete_event" : "(self, event) => {\n this.el.hide();\n return true; \n //test \n}\n ",
- "response" : " (self, response_id) => { \n \n\tGLib.debug(\"got %d\", (int) response_id);\n\tif (response_id < 1) {\n\t _this.el.hide();\t\n\t this.running = false; \n\t \treturn;\n\t}\n\t \n\t
return;
\n\t \n\t \n\n\t \n}"
+ "response" : " (self, response_id) => { \n \n\tGLib.debug(\"got %d\", (int) response_id);\n\tif (response_id < 1) {\n\t _this.el.hide();\t\n\t this.running = false; \n\t \treturn;\n\t}\n\t \n\t
\n\tvar tid = RooTicket.singleton().createTicket(\n\t\n\t\t_this.project_id.selectProjectId(),\n\t\n\t\t_this.milestone_id.selectedMilestoneId(),\n\t\t_this.priority_id.selectedPriorityId() ,\n\t\t_this.classification_id.selectedClassificationId() ,\n\t\t_this.developer_id.selectedDeveloperId(),\n\t\t_this.summary.el.get_text() ,\n\t\t_this.description.el.buffer.text \n\t);\n\t\n\t
\n\t \n\t \n\n\t \n}"
},
"default_width" : 500,
"$ deletable" : true,
},
"default_width" : 500,
"$ deletable" : true,
diff --git
a/Ticket.vala
b/Ticket.vala
index
13b1d5b
..
744b1fb
100644
(file)
--- a/
Ticket.vala
+++ b/
Ticket.vala
@@
-67,7
+67,20
@@
public class Ticket : Object
return;
}
return;
}
- return;
+
+ var tid = RooTicket.singleton().createTicket(
+
+ _this.project_id.selectProjectId(),
+
+ _this.milestone_id.selectedMilestoneId(),
+ _this.priority_id.selectedPriorityId() ,
+ _this.classification_id.selectedClassificationId() ,
+ _this.developer_id.selectedDeveloperId(),
+ _this.summary.el.get_text() ,
+ _this.description.el.buffer.text
+ );
+
+