Skip to content

Commit

Permalink
Make sure langauge in session store can be selected
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverroick committed Feb 16, 2017
1 parent 263e847 commit f3205a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cadasta/core/static/js/xlang.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ $(document).ready(function () {
});

const form_lang = sessionStorage.getItem("form_lang");
if (form_lang) {
if (form_lang && $('#form-langs-select option[value="' + form_lang + '"]').length) {
$('#form-langs-select').val(form_lang);
setLabels(form_lang);
}
Expand Down

0 comments on commit f3205a4

Please sign in to comment.