Skip to content

Commit

Permalink
Reload CardList on action response (#214)
Browse files Browse the repository at this point in the history
* Reload CardList on action response
  • Loading branch information
zaucker authored May 8, 2023
1 parent d68b845 commit 08a10d2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
- Reload CardList on action response

0.45.0 2023-03-30 09:13:03 +0200 Tobias Oetiker <[email protected]>

- new widget attribute spellcheck which allows to enable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 08a10d2

Please sign in to comment.