Skip to content

Commit

Permalink
UI-1771: Fix help text not displaying selected faxbox number
Browse files Browse the repository at this point in the history
  • Loading branch information
joristirado committed Aug 7, 2015
1 parent c0407c8 commit 34565b2
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions submodules/users/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -1593,15 +1593,16 @@ define(function(require){
monster.pub('common.numberSelector.render', {
container: featureTemplate.find('.number-select'),
inputName: 'caller_id',
number: data.hasOwnProperty('faxbox') ? data.faxbox.caller_id : undefined
});

featureTemplate.find('#destination_number').on('keyup', function() {
if ($(this).val() === '') {
featureTemplate.find('.number-mirror').text(self.i18n.active().users.faxing.emailToFax.default);
}
else {
featureTemplate.find('.number-mirror').text($(this).val());
number: data.hasOwnProperty('faxbox') ? data.faxbox.caller_id : undefined,
removeCallback: function () {
featureTemplate
.find('.number-mirror')
.text(self.i18n.active().users.faxing.emailToFax.default);
},
globalAddNumberCallback: function (number) {
featureTemplate
.find('.number-mirror')
.text(number);
}
});

Expand Down

0 comments on commit 34565b2

Please sign in to comment.