Changeset View
Changeset View
Standalone View
Standalone View
webroot/rsrc/js/application/projects/WorkboardBoard.js
| Show First 20 Lines • Show All 705 Lines • ▼ Show 20 Lines | updateCard: function(response) { | ||||
| if (card) { | if (card) { | ||||
| card.redraw(); | card.redraw(); | ||||
| column.markForRedraw(); | column.markForRedraw(); | ||||
| } | } | ||||
| // Compare the server state to the client state, and add or remove | // Compare the server state to the client state, and add or remove | ||||
| // cards on the client as necessary to synchronize them. | // cards on the client as necessary to synchronize them. | ||||
| if (update_map[card_phid][column_phid]) { | if (update_map[card_phid] && update_map[card_phid][column_phid]) { | ||||
| if (!card) { | if (!card) { | ||||
| column.newCard(card_phid); | column.newCard(card_phid); | ||||
| column.markForRedraw(); | column.markForRedraw(); | ||||
| } | } | ||||
| } else { | } else { | ||||
| if (card) { | if (card) { | ||||
| column.removeCard(card_phid); | column.removeCard(card_phid); | ||||
| column.markForRedraw(); | column.markForRedraw(); | ||||
| ▲ Show 20 Lines • Show All 73 Lines • Show Last 20 Lines | |||||