diff --git a/qui/controls/elements/FormList.js b/qui/controls/elements/FormList.js index 7809075f6ba35de96311b5d1866892abc829d3e2..4d45409af411ae2d5898588750692b80034fc378 100644 --- a/qui/controls/elements/FormList.js +++ b/qui/controls/elements/FormList.js @@ -34,7 +34,8 @@ define('qui/controls/elements/FormList', [ ], options: { - entry: '' + entry: '', + buttonText: 'Add entry' }, initialize: function (options) { @@ -65,7 +66,7 @@ define('qui/controls/elements/FormList', [ this.$Buttons = this.$Elm.getElement('.qui-controls-formlist-buttons'); new QUIButton({ - text : 'Eintrag hinzufügen', // #locale + text : this.getAttribute('buttonText'), textimage: 'icon-plus fa fa-add', events : { onClick: this.$createEntry @@ -184,6 +185,8 @@ define('qui/controls/elements/FormList', [ change: this.$refreshData }); + console.log(Child); + QUI.parse(Child).then(function() { this.$refreshData(); this.fireEvent('parsed', [this, Child]);