actually load presets

This commit is contained in:
j 2018-12-06 11:44:52 +01:00
parent 1034fb4b5c
commit fa6092784c

View File

@ -591,7 +591,7 @@ $('input.import_presets').on({change: function() {
reader.onload = function(event) { reader.onload = function(event) {
var data = JSON.parse(reader.result) var data = JSON.parse(reader.result)
api('setPresets', { api('setPresets', {
'presets': presets 'presets': data
}, function(response) { }, function(response) {
presets = response.result.presets presets = response.result.presets
}) })