-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathselectBug.coffee
More file actions
37 lines (31 loc) · 821 Bytes
/
selectBug.coffee
File metadata and controls
37 lines (31 loc) · 821 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
if Meteor.isClient
## counter starts at 0
Session.setDefault("counter", 0)
Template.hello.helpers
docTest: () ->
Test.findOne()
Template.hello.events
if Meteor.isServer
Meteor.startup ->
## code to run on server at startup
if Options.find().count() is 0
options = [
{label:'Ok' , value:"0"}
{label:'Contact' , value:"1"}
{label:'Payment Issues' , value:"2"}
{label:'24hr' , value:"3"}
{label:'2 Week' , value:"4"}
{label:'6 Week' , value:"5"}
]
_.each options, (option) ->
console.log option.label
Options.insert option
if Test.find().count() is 0
Test.insert
itemArray:'0'
item2:'1'
item:
nested:'2'
item3:
nest:
nested:'3'