Remove unneeded function
This commit is contained in:
parent
1bb480f6ea
commit
44a31f3ed9
2 changed files with 1 additions and 4 deletions
|
@ -28,6 +28,7 @@
|
||||||
|
|
||||||
$(function() {
|
$(function() {
|
||||||
var phoneView = new Whisper.PhoneInputView({el: $('#phone-number-input')});
|
var phoneView = new Whisper.PhoneInputView({el: $('#phone-number-input')});
|
||||||
|
phoneView.render();
|
||||||
if (textsecure.registration.isDone()) {
|
if (textsecure.registration.isDone()) {
|
||||||
$('#complete-number').text(textsecure.utils.unencodeNumber(textsecure.storage.getUnencrypted("number_id"))[0]);//TODO: no
|
$('#complete-number').text(textsecure.utils.unencodeNumber(textsecure.storage.getUnencrypted("number_id"))[0]);//TODO: no
|
||||||
$('#setup-complete').show().addClass('in');
|
$('#setup-complete').show().addClass('in');
|
||||||
|
|
|
@ -21,10 +21,6 @@ var Whisper = Whisper || {};
|
||||||
tagName: 'div',
|
tagName: 'div',
|
||||||
className: 'phone-input',
|
className: 'phone-input',
|
||||||
template: $('#phone-number').html(),
|
template: $('#phone-number').html(),
|
||||||
initialize: function() {
|
|
||||||
this.render();
|
|
||||||
},
|
|
||||||
|
|
||||||
render: function() {
|
render: function() {
|
||||||
this.$el.html($(Mustache.render(this.template)));
|
this.$el.html($(Mustache.render(this.template)));
|
||||||
this.$el.find('input.number').intlTelInput();
|
this.$el.find('input.number').intlTelInput();
|
||||||
|
|
Loading…
Reference in a new issue