get latest presets

This commit is contained in:
j 2018-12-05 12:29:49 +01:00
parent 1dd8ac7c16
commit 68ed99df23

View File

@ -481,12 +481,15 @@ $('button.export_presets').on({click: function() {
}); });
}}) }})
$('button.all_presets').on({click: function() { $('button.all_presets').on({click: function() {
loadData(presets.map(function(preset) { api('getPresets', {}, function(response) {
return { presets = response.result.presets
preset: preset.id, loadData(presets.map(function(preset) {
speed: parseInt($('input.default_speed').val(), 10) return {
} preset: preset.id,
})) speed: parseInt($('input.default_speed').val(), 10)
}
}))
})
}}) }})
$('input.import_sequence').on({change: function() { $('input.import_sequence').on({change: function() {