Subversion Repositories SmartDukaan

Rev

Rev 37032 | Rev 37038 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 37032 Rev 37034
Line 1455... Line 1455...
1455
function punchEntry(kind, time){ return {_punch:kind, checkInTime:time, markType:(kind==='in'?'PUNCHIN':'PUNCHOUT'), taskType:'attendance'}; }
1455
function punchEntry(kind, time){ return {_punch:kind, checkInTime:time, markType:(kind==='in'?'PUNCHIN':'PUNCHOUT'), taskType:'attendance'}; }
1456
function tlStyle(x){
1456
function tlStyle(x){
1457
  var mt=(x.markType||'').toUpperCase(), tt=(x.taskType||'').toLowerCase();
1457
  var mt=(x.markType||'').toUpperCase(), tt=(x.taskType||'').toLowerCase();
1458
  if(x._punch || tt==='attendance' || mt.indexOf('PUNCH')>=0) return {c:'#7048e8', l:(x._punch==='out'?'Punch out':'Punch in'), ic:'⚑'};
1458
  if(x._punch || tt==='attendance' || mt.indexOf('PUNCH')>=0) return {c:'#7048e8', l:(x._punch==='out'?'Punch out':'Punch in'), ic:'⚑'};
1459
  if(mt.indexOf('CHECKOUT')>=0) return {c:'#2f9e44', l:'Visited', ic:'✓'};
1459
  if(mt.indexOf('CHECKOUT')>=0) return {c:'#2f9e44', l:'Visited', ic:'✓'};
1460
  if(mt==='CHECKIN') return {c:'#1098ad', l:'In store', ic:'📍'};
1460
  if(mt==='CHECKIN') return {c:'#1098ad', l:'In', ic:'📍'};
1461
  if(mt==='DEFERRED') return {c:'#e8590c', l:'Deferred', ic:'↻'};
1461
  if(mt==='DEFERRED') return {c:'#e8590c', l:'Deferred', ic:'↻'};
1462
  if(mt==='PENDING' || !x.checkInTime) return {c:'#97a1b5', l:'Pending', ic:'○'};
1462
  if(mt==='PENDING' || !x.checkInTime) return {c:'#97a1b5', l:'Pending', ic:'○'};
1463
  return {c:'#3b5bdb', l:(mt||'-'), ic:'●'};
1463
  return {c:'#3b5bdb', l:(mt||'-'), ic:'●'};
1464
}
1464
}
1465
function tlTitle(x){
1465
function tlTitle(x){