Merge pull request #57 from xwiki-labs/order-buttons

display buttons according to their order in application_config.js
pull/1/head
ansuz 8 years ago committed by GitHub
commit 3ce5b615d9

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

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

Loading…
Cancel
Save