display buttons according to the order in application_config.js

This commit is contained in:
ansuz 2016-11-07 11:43:49 +01:00
parent 67bf41627d
commit e90ab105aa
2 changed files with 3 additions and 2 deletions

View File

@ -4,7 +4,7 @@ define(function() {
/* Select the buttons displayed on the main page to create new collaborative sessions /* Select the buttons displayed on the main page to create new collaborative sessions
* Existing types : pad, code, poll, slide * Existing types : pad, code, poll, slide
*/ */
config.availablePadTypes = ['pad', 'code', 'poll', 'slide']; config.availablePadTypes = ['pad', 'code', 'slide', 'poll'];
return config; return config;
}); });

View File

@ -28,8 +28,9 @@ define([
var forgetPad = Cryptpad.forgetPad; var forgetPad = Cryptpad.forgetPad;
var displayCreateButtons = function () { var displayCreateButtons = function () {
var $parent = $('#buttons');
Config.availablePadTypes.forEach(function (el) { Config.availablePadTypes.forEach(function (el) {
$('#create-' + el).show(); $('#create-' + el).detach().appendTo($parent).show();
}); });
}; };