display buttons according to the order in application_config.js

pull/1/head
ansuz 8 years ago
parent 67bf41627d
commit e90ab105aa

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

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

Loading…
Cancel
Save