Changeset View
Changeset View
Standalone View
Standalone View
webroot/rsrc/js/application/projects/WorkboardBoard.js
| Show First 20 Lines • Show All 740 Lines • ▼ Show 20 Lines | _reloadCards: function() { | ||||
| var cards = columns[column_phid].getCards(); | var cards = columns[column_phid].getCards(); | ||||
| for (var card_phid in cards) { | for (var card_phid in cards) { | ||||
| state[card_phid] = this.getCardTemplate(card_phid).getVersion(); | state[card_phid] = this.getCardTemplate(card_phid).getVersion(); | ||||
| } | } | ||||
| } | } | ||||
| var data = { | var data = { | ||||
| state: JX.JSON.stringify(state), | state: JX.JSON.stringify(state), | ||||
| order: this.getOrder() | |||||
| }; | }; | ||||
| var on_reload = JX.bind(this, this._onReloadResponse); | var on_reload = JX.bind(this, this._onReloadResponse); | ||||
| new JX.Request(this.getController().getReloadURI(), on_reload) | new JX.Request(this.getController().getReloadURI(), on_reload) | ||||
| .setData(data) | .setData(data) | ||||
| .send(); | .send(); | ||||
| }, | }, | ||||
| _onReloadResponse: function(response) { | _onReloadResponse: function(response) { | ||||
| this.updateCard(response); | this.updateCard(response); | ||||
| } | } | ||||
| } | } | ||||
| }); | }); | ||||