Prepopulate phone number on standalone page

This commit is contained in:
lilia 2017-05-09 13:53:45 -07:00 committed by Scott Nonnenberg
parent cf9523f1f8
commit 26cece71c6
No known key found for this signature in database
GPG key ID: A4931C09644C654B

View file

@ -12,11 +12,12 @@
initialize: function() { initialize: function() {
this.accountManager = getAccountManager(); this.accountManager = getAccountManager();
this.render();
var number = textsecure.storage.user.getNumber(); var number = textsecure.storage.user.getNumber();
if (number) { if (number) {
$('input.number').val(number); this.$('input.number').val(number);
} }
this.render();
this.phoneView = new Whisper.PhoneInputView({el: this.$('#phone-number-input')}); this.phoneView = new Whisper.PhoneInputView({el: this.$('#phone-number-input')});
this.$('#error').hide(); this.$('#error').hide();
}, },