I use ko.js to display a table of places.
In each place there is an edit button, which displays a dialog box with editable data.
When I click the edit button, I snap the meeting point to the dialog box and save a copy of the data in the cancellation object.
When I edit the fields in the dialog, both the dialog and the table are updated.
When I cancel editing, I bind the venue to the state of the cancel objects. This updates the dialog box, but it does not update in the table.
Any idea what I'm doing wrong here?
Here is my model.
VenueViewModel = function(venues) { var self = this; var venueModal = $("#venueModal"); this.venues = ko.mapping.fromJS(venues); this.venue = ko.observable(); this.venueUndo = null;
source share