From ac265a89b299e4ef38eb95bc68f90c6361609ee3 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Thu, 12 Apr 2018 02:35:22 +0200 Subject: [PATCH] Fix to get the accept-disclaimer option working --- src/js/yunohost/controllers/tools.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/yunohost/controllers/tools.js b/src/js/yunohost/controllers/tools.js index 05afc6fb..401d3093 100644 --- a/src/js/yunohost/controllers/tools.js +++ b/src/js/yunohost/controllers/tools.js @@ -281,7 +281,7 @@ y18n.t('migrations'), disclaimers.join('
'), function(){ - c.api('/migrations/migrate?accept-disclaimer', + c.api('/migrations/migrate?accept_disclaimer', function (data) { store.clear('slide'); c.redirect('#/tools/migrations'); @@ -299,7 +299,7 @@ function (data) { store.clear('slide'); c.redirect('#/tools/migrations'); - }, 'POST') + }, 'POST'); } }); });