Skip to content

Commit

Permalink
#53 get Location from Zip, onerror backToSubscripton
Browse files Browse the repository at this point in the history
  • Loading branch information
mwkp committed Aug 28, 2019
1 parent 74b22f1 commit d1eff19
Show file tree
Hide file tree
Showing 6 changed files with 20,998 additions and 30 deletions.
6 changes: 5 additions & 1 deletion app/components/subscription-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,20 @@ import Component from '@ember/component';
import { setDataToSubmit } from 'kursausschreibung/framework/storage';
import { getString } from 'kursausschreibung/framework/translate';
import { getDMY, getYMD, formatDate } from 'kursausschreibung/framework/date-helpers';
import { getZipLocation } from 'kursausschreibung/helpers/zipLocation';

export default Component.extend({
useCompanyAddress: false,
focusIn() {
getZipLocation();
},
actions: {
submit(event) {
event.preventDefault();

subscribe(this.$('form'), this);
this.get('subscribe')();
}
}
}
});

Expand Down
Loading

0 comments on commit d1eff19

Please sign in to comment.