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() {
api('getPresets', {}, function(response) {
presets = response.result.presets
loadData(presets.map(function(preset) { loadData(presets.map(function(preset) {
return { return {
preset: preset.id, preset: preset.id,
speed: parseInt($('input.default_speed').val(), 10) speed: parseInt($('input.default_speed').val(), 10)
} }
})) }))
})
}}) }})
$('input.import_sequence').on({change: function() { $('input.import_sequence').on({change: function() {