diff --git a/CHANGES b/CHANGES index 091de2b..3143c8f 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,5 @@ + - Reload CardList on action response + 0.45.0 2023-03-30 09:13:03 +0200 Tobias Oetiker - new widget attribute spellcheck which allows to enable diff --git a/lib/CallBackery/qooxdoo/callbackery/source/class/callbackery/ui/plugin/CardList.js b/lib/CallBackery/qooxdoo/callbackery/source/class/callbackery/ui/plugin/CardList.js index 29e4cd3..c8d4e1d 100644 --- a/lib/CallBackery/qooxdoo/callbackery/source/class/callbackery/ui/plugin/CardList.js +++ b/lib/CallBackery/qooxdoo/callbackery/source/class/callbackery/ui/plugin/CardList.js @@ -15,6 +15,16 @@ qx.Class.define("callbackery.ui.plugin.CardList", { // replace setData method of parent class this._form['setData'] = qx.lang.Function.bind(this.setData, this); + + this.addListener('actionResponse', function(e){ + var data = e.getData(); + switch (data.action){ + case 'reload': + case 'dataModified': + this._loadData(); + break; + } + }, this); }, members: { __cards : null,