diff --git a/submodules/featureCodes/featureCodes.js b/submodules/featureCodes/featureCodes.js index 65b0a0c..b9642b0 100644 --- a/submodules/featureCodes/featureCodes.js +++ b/submodules/featureCodes/featureCodes.js @@ -99,7 +99,9 @@ define(function(require){ _.each(featureCodeData, function(callflow) { // Some old callflows have been created with the feature code key, so we had the check to make sure they also have a name associated if(callflow.featurecode.hasOwnProperty('name')) { - var category = 'misc'; + var category = 'misc', + hasStar = (callflow.hasOwnProperty('numbers') && callflow.numbers.length && callflow.numbers[0].substr(0,1) === '*') || (callflow.hasOwnProperty('patterns') && callflow.patterns.length && callflow.patterns[0].substr(0,3) === '^\\*'); + _.find(self.categories, function(cat, key) { if(cat.indexOf(callflow.featurecode.name) >= 0) { category = key; @@ -115,10 +117,12 @@ define(function(require){ }; } + console.log(hasStar); featureCodes[category].codes.push({ key: callflow.featurecode.name, name: self.i18n.active().featureCodes.labels[callflow.featurecode.name] || callflow.featurecode.name, - number: callflow.featurecode.number ? callflow.featurecode.number.replace(/\\/g,'') : '' + number: callflow.featurecode.number ? callflow.featurecode.number.replace(/\\/g,'') : '', + hasStar: hasStar }); } }); diff --git a/submodules/strategy/strategy.js b/submodules/strategy/strategy.js index 8a09095..793a261 100644 --- a/submodules/strategy/strategy.js +++ b/submodules/strategy/strategy.js @@ -146,7 +146,7 @@ define(function(require){ { name: 'move', number: '6683', - callflowNumber: '*6683', + callflowNumber: '6683', moduleName: 'move' } ], diff --git a/views/featureCodes-layout.html b/views/featureCodes-layout.html index 8cb5e5c..f24da20 100644 --- a/views/featureCodes-layout.html +++ b/views/featureCodes-layout.html @@ -5,16 +5,16 @@
{{#each featureCodes}}
-
{{this.category}}
+
{{category}}
- {{#each this.codes}} + {{#each codes}}
- {{this.name}} + {{name}}
-
*
-
{{this.number}}
+
{{#if hasStar}}*{{/if}}
+
{{number}}
{{/each}}