From e90ab105aaf4466770187a2b6940de266d75920f Mon Sep 17 00:00:00 2001 From: ansuz Date: Mon, 7 Nov 2016 11:43:49 +0100 Subject: [PATCH] display buttons according to the order in application_config.js --- customize.dist/application_config.js | 2 +- customize.dist/main.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/customize.dist/application_config.js b/customize.dist/application_config.js index d7e9141c1..e4561df24 100644 --- a/customize.dist/application_config.js +++ b/customize.dist/application_config.js @@ -4,7 +4,7 @@ define(function() { /* Select the buttons displayed on the main page to create new collaborative sessions * Existing types : pad, code, poll, slide */ - config.availablePadTypes = ['pad', 'code', 'poll', 'slide']; + config.availablePadTypes = ['pad', 'code', 'slide', 'poll']; return config; }); diff --git a/customize.dist/main.js b/customize.dist/main.js index 2622eef1b..732bce4b8 100644 --- a/customize.dist/main.js +++ b/customize.dist/main.js @@ -28,8 +28,9 @@ define([ var forgetPad = Cryptpad.forgetPad; var displayCreateButtons = function () { + var $parent = $('#buttons'); Config.availablePadTypes.forEach(function (el) { - $('#create-' + el).show(); + $('#create-' + el).detach().appendTo($parent).show(); }); };