Importing fixes

This commit is contained in:
Jordan Bates 2013-04-26 15:21:07 -07:00
parent 70459850c1
commit ccc090e20c
5 changed files with 28 additions and 0 deletions

View File

@ -1,6 +1,7 @@
seaweedchan:
- Fix emoji and favicon previews not updating on change.
- Fix issue with draggong thread watcher
- Fix some settings not importing when coming from Mayhem's v3
MayhemYDG:
- Fix bug where a thread would freeze on load.

View File

@ -9298,6 +9298,13 @@
});
}
data.Conf.WatchedThreads = data.WatchedThreads;
} else if (version[0] === '3') {
data = Settings.convertSettings(data, {
'Reply Hiding': 'Reply Hiding Buttons',
'Thread Hiding': 'Thread Hiding Buttons',
'Bottom header': 'Bottom Header',
'Unread Tab Icon': 'Unread Favicon'
});
}
return $.set(data.Conf);
},

View File

@ -9321,6 +9321,13 @@
});
}
data.Conf.WatchedThreads = data.WatchedThreads;
} else if (version[0] === '3') {
data = Settings.convertSettings(data, {
'Reply Hiding': 'Reply Hiding Buttons',
'Thread Hiding': 'Thread Hiding Buttons',
'Bottom header': 'Bottom Header',
'Unread Tab Icon': 'Unread Favicon'
});
}
return $.set(data.Conf);
},

View File

@ -9302,6 +9302,13 @@
});
}
data.Conf.WatchedThreads = data.WatchedThreads;
} else if (version[0] === '3') {
data = Settings.convertSettings(data, {
'Reply Hiding': 'Reply Hiding Buttons',
'Thread Hiding': 'Thread Hiding Buttons',
'Bottom header': 'Bottom Header',
'Unread Tab Icon': 'Unread Favicon'
});
}
return $.set(data.Conf);
},

View File

@ -282,6 +282,12 @@ Settings =
data.Conf[key] = data.Conf[key].replace(/ctrl|alt|meta/g, (s) -> "#{s[0].toUpperCase()}#{s[1..]}").replace /(^|.+\+)[A-Z]$/g, (s) ->
"Shift+#{s[0...-1]}#{s[-1..].toLowerCase()}"
data.Conf.WatchedThreads = data.WatchedThreads
else if version[0] is '3'
data = Settings.convertSettings data,
'Reply Hiding': 'Reply Hiding Buttons'
'Thread Hiding': 'Thread Hiding Buttons'
'Bottom header': 'Bottom Header'
'Unread Tab Icon': 'Unread Favicon'
$.set data.Conf
convertSettings: (data, map) ->
for prevKey, newKey of map