Prettified Code!
This commit is contained in:
9
index.js
9
index.js
@@ -145,7 +145,7 @@ instance.prototype.actions = function (system) {
|
||||
id: 'project',
|
||||
default: 0,
|
||||
choices: self.projects,
|
||||
}
|
||||
},
|
||||
],
|
||||
},
|
||||
getCurrentTimer: {
|
||||
@@ -168,7 +168,12 @@ instance.prototype.action = function (action) {
|
||||
if (opt.project == '0') {
|
||||
var body = '{"time_entry":{"description":"' + opt.description + '","created_with":"companion"}}'
|
||||
} else {
|
||||
var body = '{"time_entry":{"description":"' + opt.description + '","created_with":"companion","pid":"' + opt.project + '"}}'
|
||||
var body =
|
||||
'{"time_entry":{"description":"' +
|
||||
opt.description +
|
||||
'","created_with":"companion","pid":"' +
|
||||
opt.project +
|
||||
'"}}'
|
||||
}
|
||||
console.log(body)
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user