diff --git a/js/options.js b/js/options.js index 7d7ba174..ba774c26 100644 --- a/js/options.js +++ b/js/options.js @@ -28,6 +28,7 @@ $(function() { var phoneView = new Whisper.PhoneInputView({el: $('#phone-number-input')}); + phoneView.render(); if (textsecure.registration.isDone()) { $('#complete-number').text(textsecure.utils.unencodeNumber(textsecure.storage.getUnencrypted("number_id"))[0]);//TODO: no $('#setup-complete').show().addClass('in'); diff --git a/js/views/phone-input-view.js b/js/views/phone-input-view.js index 46b9fa77..f3fa4c7c 100644 --- a/js/views/phone-input-view.js +++ b/js/views/phone-input-view.js @@ -21,10 +21,6 @@ var Whisper = Whisper || {}; tagName: 'div', className: 'phone-input', template: $('#phone-number').html(), - initialize: function() { - this.render(); - }, - render: function() { this.$el.html($(Mustache.render(this.template))); this.$el.find('input.number').intlTelInput();