Fix bug causing board configuration to be deleted from Conf on settings export.
This commit is contained in:
parent
d6a6b5d2ac
commit
2f47d49168
@ -206,11 +206,13 @@ Settings =
|
|||||||
$.after $('input[name="Stubs"]', section).parentNode.parentNode, div
|
$.after $('input[name="Stubs"]', section).parentNode.parentNode, div
|
||||||
|
|
||||||
export: ->
|
export: ->
|
||||||
# Make sure to export the most recent data.
|
# Make sure to export the most recent data, but don't overwrite existing `Conf` object.
|
||||||
$.get Conf, (Conf) ->
|
Conf2 = {}
|
||||||
|
$.extend Conf2, Conf
|
||||||
|
$.get Conf2, (Conf2) ->
|
||||||
# Don't export cached JSON data.
|
# Don't export cached JSON data.
|
||||||
delete Conf['boardConfig']
|
delete Conf2['boardConfig']
|
||||||
(Settings.downloadExport {version: g.VERSION, date: Date.now(), Conf})
|
(Settings.downloadExport {version: g.VERSION, date: Date.now(), Conf: Conf2})
|
||||||
|
|
||||||
downloadExport: (data) ->
|
downloadExport: (data) ->
|
||||||
a = $.el 'a',
|
a = $.el 'a',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user