2bitcoder / Jquery-Gantt

A Gantt Plugin using Jquery, Backbone and Kinetic
19 stars 1 forks source link

Enhanced Data Model to Support 1.0 Menu Options #61

Closed 2bitcoder closed 9 years ago

2bitcoder commented 9 years ago

var TaskModel = Backbone.Model.extend({ defaults: { name: 'New task', description: '', complete: 0, // in percents
sortindex: 0, depend: undefined, // id of task status: 110, Select List in properties modal (configdata) health: 21, Select List in properties modal (configdata) start: new Date(), end: new Date(), ProjectRef : params.project, WBS_ID : params.profile, color: '#0090d3', // user color reportable: '', Check box in properties modal (true/false) parentid: 0, sitekey: params.sitekey,

   // new items
   wo: 2                       Select List in properties modal   (configdata)
   milestone:               Check box in properties modal (true/false)
   deliverable:             Check box in properties modal (true/false)
   financial:                 Check box in properties modal (true/false)
   timesheets:             Check box in properties modal (true/false)
   acttimesheets:             Check box in properties modal (true/false)
   wbstsid: 

   // can remove I think ?    (they are not used)
   aType: '',             // can remove 
   resources: {},   // this will be a separate json file linked by ID to a task  (1 Task -> Many Resources)
    action: '',   
    active : true, 

    // app params
    hidden : false,
    collapsed : false
},
2bitcoder commented 9 years ago

Completed version 1.0