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

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