Skip to content

Commit

Permalink
OOB: Fix count result on number search (incorrect use of replaceVar h…
Browse files Browse the repository at this point in the history
…elper)
  • Loading branch information
joristirado committed Oct 28, 2016
1 parent 065f594 commit 3205acf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions app.js
Expand Up @@ -1010,9 +1010,7 @@ define(function(require){
isCnamEnabled: monster.util.isNumberFeatureEnabled('cnam'),
isE911Enabled: monster.util.isNumberFeatureEnabled('e911'),
matches: matches,
i18n: {
amountNumbers: matches.length
}
amountNumbers: matches.length
}));
}
else {
Expand Down Expand Up @@ -1097,6 +1095,7 @@ define(function(require){
ev.preventDefault();

var list_numbers = [];

pbxsManager.find('.number-wrapper.selected').each(function() {
list_numbers.push($(this).data('phone_number'));
});
Expand Down
2 changes: 1 addition & 1 deletion i18n/en-US.json
Expand Up @@ -132,7 +132,7 @@
"no_pbx": "No other PBX",
"no_number": "There is currently no number assigned to this PBX, you can add, buy or port numbers to this PBX via the action bar.",
"no_results": "There is currently no number matching your research, make sure you typed the number correctly.",
"count_result": "{{amountNumbers}} phone numbers matched your research.",
"count_result": "{{variable}} phone numbers matched your research.",
"brand_selection": "Change PBX Brand",
"authentication": "Authentication",
"testing": "Settings",
Expand Down
2 changes: 1 addition & 1 deletion views/searchResults.html
@@ -1,4 +1,4 @@
<div id="count_result">{{ i18n.count_result }}</div>
<div id="count_result">{{replaceVar i18n.count_result amountNumbers }}</div>

<div class="numbers-wrapper">
{{#each matches}}
Expand Down

0 comments on commit 3205acf

Please sign in to comment.