this.multilang = [];
this.multilangEnabled = false;
this.fluidbook = fluidbook;
+ this.currentLang;
this.init(lang);
this.initMultilang();
this.load();
lang = 'default';
}
this.lang = lang;
+ if (this.lang === "default") {
+ this.currentLang = this.fluidbook.datas.defaultLang;
+ } else {
+ this.currentLang = this.lang;
+ }
},
load: function () {
var view = '<div class="caption">' + $this.fluidbook.menu.closeButton() + '<h2>' + $this.locale.title + '</h2></div>';
view += '<div class="content">';
view += '<form class="avery-form" action="https://workshop.fluidbook.com/services/subscribe" method="post">';
- view += '<div><input type="hidden" value="avery" name="form"><input type="hidden" value="' + this.fluidbook.l10n.lang + '" name="locale">';
+ view += '<div><input type="hidden" value="avery" name="form"><input type="hidden" value="' + this.fluidbook.l10n.currentLang + '" name="locale">';
view += '<h3>' + this.locale.subtitle + '</h3>';
view += '<div class="line">';
view += '<label>' + $this.locale.company;
view += '<div class="line">';
view += $this.locale.receive;
view += '<div class="radios">';
- view += '<label class="radio"><input type="radio" name="subscribe" value="0" required>' + $this.locale.yes + '</label>';
- view += '<label class="radio"><input type="radio" name="subscribe" value="1" required>' + $this.locale.no + '</label>';
+ view += '<label class="radio"><input type="radio" name="subscribe" value="1" required>' + $this.locale.yes + '</label>';
+ view += '<label class="radio"><input type="radio" name="subscribe" value="0" required>' + $this.locale.no + '</label>';
view += '</div>';
view += '</div>';
view += '<div class="line">';