crazedsanity / cs-battletrack

PHP-Based web application for tracking data in traditional paper-and-pencil role playing games.
http://www.crazedsanity.com/projects/cs-battletrack
Other
1 stars 1 forks source link

Updates reset changes in progress #42

Closed crazedsanity closed 10 years ago

crazedsanity commented 10 years ago

When updating a value in saves (for instance), I can change "magic mod" to one thing, and as I'm updating the next box ("misc mod"), it gets immediately overwritten and the box is marked clean (goes from blue to white).

The server response indicates there's a change in the box I'm working in, so the Javascript overwrites my changes. The status of the input is changed from dirty to clean, so the update is never sent.

crazedsanity commented 10 years ago

This bug will be addressed after #37 is implemented.

crazedsanity commented 10 years ago

The javascript function callback_showUpdatedInput(xmlObj) seems mostly responsible for this problem. One possible fix is to avoid changing any input that has focus.

crazedsanity commented 10 years ago

This is mostly fixed by way of a workaround, implemented early in v0.9.x. Future fixes would require something more sophisticated, and probably converting the data returned by the server to be in the JSON format.

crazedsanity commented 7 years ago

Convert to JSON instead of XML for AJAX

crazedsanity commented 7 years ago

Just as an update to the comment from May 5 2014: I believe this came about during the time when the inputs were getting marked as disabled/readonly (which was intended to prevent changes when an update was processing). This problem as been fully resolved as of v0.4.0 (it was still affecting the notes field).