Commit 6911352d authored by Dominik Hebeler's avatar Dominik Hebeler

Merge branch '551-bugfix-fur-alte-localstorage-eintrage-mit-neuen-foki' into 'development'

Resolve "Bugfix für alte LocalStorage Einträge mit neuen Foki"

Closes #551

See merge request !983
parents ce3d867c a94af3bd
......@@ -80,8 +80,15 @@ function setActionListeners () {
function setSettings () {
for (var key in localStorage) {
var value = localStorage.getItem(key);
if (key.startsWith('param_') && !key.endsWith('lang') && !key.endsWith('autocomplete')) {
key = key.substring(key.indexOf('param_') + 6);
var acceptedParams = ['autocomplete', 'key', 'lang', 'maps', 'newtab', 'sprueche', 'autocomplete'];
var accepted = false;
for (var i in acceptedParams) {
if (key === 'param_' + acceptedParams[i]) {
accepted = true;
}
}
if (accepted) {
key = key.substring(6);
$('#searchForm').append('<input type="hidden" name="' + key + '" value="' + value + '">');
}
$('#foki input[type=radio]#angepasst').attr('checked', true);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment