Get standalone registration working in development
Whisper.events.trigger('openStandalone') to open the standalone registration view. // FREEBIE
This commit is contained in:
parent
e60111f34d
commit
de3816b094
7 changed files with 185 additions and 126 deletions
|
@ -9,17 +9,13 @@
|
|||
tagName: 'div',
|
||||
className: 'phone-input',
|
||||
templateName: 'phone-number',
|
||||
render: function() {
|
||||
this.$el.html($(Mustache.render(this.template)));
|
||||
initialize: function() {
|
||||
this.$('input.number').intlTelInput();
|
||||
return this;
|
||||
},
|
||||
|
||||
events: {
|
||||
'change': 'validateNumber',
|
||||
'keyup': 'validateNumber'
|
||||
},
|
||||
|
||||
validateNumber: function() {
|
||||
var input = this.$('input.number');
|
||||
var regionCode = this.$('li.active').attr('data-country-code').toUpperCase();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue