Simplified status tags: active and inactive
This commit is contained in:
parent
23ecad4f8f
commit
3666378172
@ -107,10 +107,8 @@
|
|||||||
var res = {}, re, matches;
|
var res = {}, re, matches;
|
||||||
if((row.RESOURCENAME) && (matches = row.RESOURCENAME.replace(/\W+/g, '-').replace(/^-+|-+$/g, ''))) res[matches.toLowerCase()] = matches;
|
if((row.RESOURCENAME) && (matches = row.RESOURCENAME.replace(/\W+/g, '-').replace(/^-+|-+$/g, ''))) res[matches.toLowerCase()] = matches;
|
||||||
if(row.WALKIN != '0') res['walkin'] = 'WALKIN';
|
if(row.WALKIN != '0') res['walkin'] = 'WALKIN';
|
||||||
if(row.CANCELLED != '0') res['cancelled'] = 'CANCELLED';
|
if((row.CANCELLED != '0') || (row.NOSHOW != '0')) res['inactive'] = 'INACTIVE';
|
||||||
else if(row.NOSHOW != '0') res['noshow'] = 'NOSHOW';
|
else res['active'] = 'ACTIVE';
|
||||||
else if(row.CHECKOUT) res['checkedout'] = 'CHECKEDOUT';
|
|
||||||
else if(row.CHECKIN) res['checkedin'] = 'CHECKEDIN';
|
|
||||||
if(row.NOTE) {
|
if(row.NOTE) {
|
||||||
re = /#([0-9a-z][\w-]*)/gi;
|
re = /#([0-9a-z][\w-]*)/gi;
|
||||||
while(matches = re.exec(row.NOTE)) res[matches[1].toLowerCase()] = matches[1];
|
while(matches = re.exec(row.NOTE)) res[matches[1].toLowerCase()] = matches[1];
|
||||||
|
Loading…
Reference in New Issue
Block a user