Get standalone registration working in development

Whisper.events.trigger('openStandalone') to open the standalone
registration view.

// FREEBIE
This commit is contained in:
lilia 2017-04-19 10:34:19 -07:00 committed by Scott Nonnenberg
parent e60111f34d
commit de3816b094
No known key found for this signature in database
GPG key ID: A4931C09644C654B
7 changed files with 185 additions and 126 deletions

View file

@ -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();