display buttons according to the order in application_config.js

pull/1/head
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
* Existing types : pad, code, poll, slide
*/
config.availablePadTypes = ['pad', 'code', 'poll', 'slide'];
config.availablePadTypes = ['pad', 'code', 'slide', 'poll'];
return config;
});

View File

@ -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();
});
};